From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 11:13:32 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 13 11:13:32 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 11:13:32 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 13 11:13:32 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 13 11:13:32 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Fri Jan 13 11:13:32 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 11:13:32 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 11:13:32 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Fri Jan 13 11:13:32 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 11:13:32 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 11:13:32 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 13 11:13:32 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 11:13:32 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 13 11:13:32 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Fri Jan 13 11:13:32 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 11:13:32 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 13 11:13:32 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 11:13:32 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 11:13:32 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 13 11:13:32 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 13 11:13:32 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 15:14:02 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 13 15:14:02 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0001.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 15:14:02 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 13 15:14:02 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0001.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 13 15:14:02 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0001.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Fri Jan 13 15:14:02 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 15:14:02 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 15:14:02 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Fri Jan 13 15:14:02 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0001.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 15:14:02 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 15:14:02 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 13 15:14:02 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 15:14:02 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 13 15:14:02 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Fri Jan 13 15:14:02 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 15:14:02 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 13 15:14:02 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 15:14:02 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 15:14:02 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 13 15:14:02 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 13 15:14:02 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 15:21:27 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 13 15:21:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0002.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 15:21:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 13 15:21:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0002.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 13 15:21:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0002.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Fri Jan 13 15:21:27 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 15:21:27 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 15:21:27 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Fri Jan 13 15:21:27 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0002.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 15:21:27 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 15:21:27 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 13 15:21:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 15:21:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 13 15:21:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Fri Jan 13 15:21:27 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 15:21:27 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 13 15:21:27 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 15:21:27 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 15:21:27 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 13 15:21:27 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 13 15:21:27 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 16:00:57 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 13 16:00:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0003.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 16:00:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 13 16:00:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0003.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 13 16:00:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0003.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Fri Jan 13 16:00:58 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 16:00:58 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 16:00:58 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Fri Jan 13 16:00:58 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0003.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 16:00:58 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 16:00:58 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 13 16:00:58 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 16:00:58 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 13 16:00:58 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Fri Jan 13 16:00:58 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 16:00:58 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 13 16:00:58 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 16:00:58 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 16:00:58 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 13 16:00:58 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 13 16:00:58 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 20:01:59 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 13 20:01:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0004.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 20:01:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 13 20:01:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0004.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 13 20:01:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0004.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Fri Jan 13 20:01:59 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 20:01:59 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 20:01:59 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Fri Jan 13 20:01:59 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0004.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 20:01:59 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 20:01:59 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 13 20:01:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 20:01:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 13 20:01:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Fri Jan 13 20:01:59 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 20:02:00 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 13 20:02:00 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 13 20:02:00 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 13 20:02:00 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 13 20:02:00 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 13 20:02:00 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 14 08:02:33 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 14 08:02:33 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0005.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 14 08:02:33 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 14 08:02:33 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0005.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 14 08:02:33 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0005.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sat Jan 14 08:02:33 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 14 08:02:33 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 14 08:02:33 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sat Jan 14 08:02:33 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0005.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 14 08:02:33 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 14 08:02:33 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 14 08:02:33 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 14 08:02:33 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 14 08:02:33 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sat Jan 14 08:02:33 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 14 08:02:33 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 14 08:02:33 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 14 08:02:33 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 14 08:02:33 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 14 08:02:33 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 14 08:02:33 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 14 12:00:56 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 14 12:00:56 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0006.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 14 12:00:56 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 14 12:00:56 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0006.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 14 12:00:56 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0006.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sat Jan 14 12:00:56 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 14 12:00:56 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 14 12:00:56 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sat Jan 14 12:00:56 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0006.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 14 12:00:56 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 14 12:00:56 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 14 12:00:56 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 14 12:00:56 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 14 12:00:56 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sat Jan 14 12:00:57 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 14 12:00:57 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 14 12:00:57 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 14 12:00:57 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 14 12:00:57 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 14 12:00:57 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 14 12:00:57 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 14 16:00:53 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 14 16:00:53 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0007.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 14 16:00:53 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 14 16:00:53 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0007.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 14 16:00:53 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0007.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sat Jan 14 16:00:53 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 14 16:00:53 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 14 16:00:53 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sat Jan 14 16:00:53 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0007.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 14 16:00:54 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 14 16:00:54 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 14 16:00:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 14 16:00:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 14 16:00:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sat Jan 14 16:00:54 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 14 16:00:54 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 14 16:00:54 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 14 16:00:54 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 14 16:00:54 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 14 16:00:54 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 14 16:00:54 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 14 20:00:54 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 14 20:00:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0008.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 14 20:00:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 14 20:00:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0008.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 14 20:00:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0008.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sat Jan 14 20:00:54 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 14 20:00:54 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 14 20:00:54 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sat Jan 14 20:00:54 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0008.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 14 20:00:54 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 14 20:00:54 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 14 20:00:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 14 20:00:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 14 20:00:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sat Jan 14 20:00:54 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 14 20:00:54 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 14 20:00:54 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 14 20:00:54 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 14 20:00:54 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 14 20:00:54 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 14 20:00:54 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 15 08:02:21 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 15 08:02:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0009.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 15 08:02:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 15 08:02:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0009.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 15 08:02:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0009.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sun Jan 15 08:02:21 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 15 08:02:22 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 15 08:02:22 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sun Jan 15 08:02:22 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0009.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 15 08:02:22 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 15 08:02:22 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 15 08:02:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 15 08:02:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 15 08:02:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sun Jan 15 08:02:22 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 15 08:02:22 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 15 08:02:22 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 15 08:02:22 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 15 08:02:22 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 15 08:02:22 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 15 08:02:22 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 15 12:01:01 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 15 12:01:01 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0010.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 15 12:01:01 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 15 12:01:01 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0010.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 15 12:01:01 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0010.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sun Jan 15 12:01:01 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 15 12:01:01 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 15 12:01:01 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sun Jan 15 12:01:01 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0010.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 15 12:01:01 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 15 12:01:01 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 15 12:01:01 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 15 12:01:01 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 15 12:01:01 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sun Jan 15 12:01:01 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 15 12:01:01 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 15 12:01:01 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 15 12:01:01 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 15 12:01:01 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 15 12:01:01 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 15 12:01:01 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 15 16:00:53 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 15 16:00:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0011.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 15 16:00:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 15 16:00:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0011.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 15 16:00:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0011.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sun Jan 15 16:00:54 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 15 16:00:54 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 15 16:00:54 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sun Jan 15 16:00:54 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0011.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 15 16:00:54 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 15 16:00:54 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 15 16:00:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 15 16:00:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 15 16:00:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sun Jan 15 16:00:54 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 15 16:00:54 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 15 16:00:54 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 15 16:00:54 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 15 16:00:54 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 15 16:00:54 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 15 16:00:54 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 15 20:00:53 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 15 20:00:53 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0012.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 15 20:00:53 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 15 20:00:53 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0012.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 15 20:00:53 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0012.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sun Jan 15 20:00:53 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 15 20:00:53 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 15 20:00:53 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sun Jan 15 20:00:53 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0012.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 15 20:00:53 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 15 20:00:53 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 15 20:00:53 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 15 20:00:53 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 15 20:00:53 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sun Jan 15 20:00:53 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 15 20:00:53 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 15 20:00:53 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 15 20:00:53 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 15 20:00:53 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 15 20:00:53 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 15 20:00:53 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 16 08:02:45 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 16 08:02:46 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0013.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 16 08:02:46 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 16 08:02:46 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0013.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 16 08:02:46 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0013.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Mon Jan 16 08:02:46 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 16 08:02:46 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 16 08:02:46 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Mon Jan 16 08:02:46 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0013.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 16 08:02:46 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 16 08:02:46 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 16 08:02:46 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 16 08:02:46 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 16 08:02:46 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Mon Jan 16 08:02:46 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 16 08:02:46 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 16 08:02:46 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 16 08:02:46 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 16 08:02:46 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 16 08:02:46 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 16 08:02:46 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 16 12:00:57 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 16 12:00:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0014.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 16 12:00:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 16 12:00:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0014.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 16 12:00:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0014.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Mon Jan 16 12:00:57 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 16 12:00:57 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 16 12:00:57 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Mon Jan 16 12:00:57 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0014.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 16 12:00:57 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 16 12:00:57 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 16 12:00:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 16 12:00:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 16 12:00:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Mon Jan 16 12:00:58 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 16 12:00:58 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 16 12:00:58 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 16 12:00:58 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 16 12:00:58 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 16 12:00:58 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 16 12:00:58 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 16 16:00:57 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 16 16:00:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0015.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 16 16:00:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 16 16:00:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0015.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 16 16:00:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0015.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Mon Jan 16 16:00:57 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 16 16:00:57 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 16 16:00:57 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Mon Jan 16 16:00:57 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0015.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 16 16:00:57 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 16 16:00:57 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 16 16:00:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 16 16:00:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 16 16:00:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Mon Jan 16 16:00:57 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 16 16:00:57 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 16 16:00:57 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 16 16:00:57 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 16 16:00:57 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 16 16:00:57 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 16 16:00:57 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 16 20:00:54 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 16 20:00:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0016.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 16 20:00:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 16 20:00:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0016.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 16 20:00:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0016.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Mon Jan 16 20:00:55 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 16 20:00:55 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 16 20:00:55 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Mon Jan 16 20:00:55 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0016.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 16 20:00:55 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 16 20:00:55 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 16 20:00:55 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 16 20:00:55 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 16 20:00:55 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Mon Jan 16 20:00:55 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 16 20:00:55 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 16 20:00:55 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 16 20:00:55 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 16 20:00:55 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 16 20:00:55 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 16 20:00:55 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 17 08:02:49 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 17 08:02:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0017.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 17 08:02:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 17 08:02:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0017.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 17 08:02:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0017.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Tue Jan 17 08:02:49 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 17 08:02:49 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 17 08:02:49 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Tue Jan 17 08:02:49 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0017.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 17 08:02:49 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 17 08:02:49 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 17 08:02:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 17 08:02:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 17 08:02:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Tue Jan 17 08:02:49 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 17 08:02:49 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 17 08:02:49 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 17 08:02:49 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 17 08:02:49 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 17 08:02:49 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 17 08:02:49 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 17 12:01:15 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 17 12:01:15 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0018.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 17 12:01:15 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 17 12:01:15 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0018.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 17 12:01:15 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0018.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Tue Jan 17 12:01:15 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 17 12:01:15 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 17 12:01:15 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Tue Jan 17 12:01:15 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0018.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 17 12:01:15 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 17 12:01:15 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 17 12:01:15 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 17 12:01:15 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 17 12:01:15 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Tue Jan 17 12:01:15 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 17 12:01:15 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 17 12:01:15 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 17 12:01:15 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 17 12:01:15 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 17 12:01:15 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 17 12:01:15 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 17 16:01:01 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 17 16:01:01 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0019.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 17 16:01:01 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 17 16:01:01 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0019.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 17 16:01:01 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0019.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Tue Jan 17 16:01:01 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 17 16:01:01 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 17 16:01:01 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Tue Jan 17 16:01:01 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0019.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 17 16:01:01 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 17 16:01:01 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 17 16:01:01 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 17 16:01:01 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 17 16:01:01 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Tue Jan 17 16:01:01 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 17 16:01:01 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 17 16:01:01 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 17 16:01:01 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 17 16:01:01 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 17 16:01:01 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 17 16:01:01 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 17 20:01:00 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 17 20:01:00 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0020.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 17 20:01:00 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 17 20:01:00 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0020.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 17 20:01:00 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0020.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Tue Jan 17 20:01:00 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 17 20:01:00 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 17 20:01:01 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Tue Jan 17 20:01:01 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0020.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 17 20:01:01 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 17 20:01:01 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 17 20:01:01 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 17 20:01:01 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 17 20:01:01 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Tue Jan 17 20:01:01 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 17 20:01:01 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 17 20:01:01 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 17 20:01:01 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 17 20:01:01 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 17 20:01:01 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 17 20:01:01 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 18 08:04:35 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 18 08:04:35 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0021.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 18 08:04:35 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 18 08:04:35 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0021.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 18 08:04:35 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0021.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Wed Jan 18 08:04:35 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 18 08:04:35 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 18 08:04:35 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Wed Jan 18 08:04:35 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0021.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 18 08:04:35 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 18 08:04:35 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Jan 18 08:04:35 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 18 08:04:35 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Jan 18 08:04:35 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Wed Jan 18 08:04:35 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 18 08:04:35 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 18 08:04:35 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 18 08:04:35 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 18 08:04:35 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 18 08:04:35 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 18 08:04:35 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 18 12:01:16 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 18 12:01:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0022.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 18 12:01:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 18 12:01:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0022.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 18 12:01:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0022.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Wed Jan 18 12:01:16 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 18 12:01:16 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 18 12:01:16 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Wed Jan 18 12:01:16 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0022.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 18 12:01:16 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 18 12:01:16 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Jan 18 12:01:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 18 12:01:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Jan 18 12:01:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Wed Jan 18 12:01:16 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 18 12:01:16 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 18 12:01:16 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 18 12:01:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 18 12:01:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 18 12:01:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 18 12:01:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 18 16:01:49 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 18 16:01:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0023.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 18 16:01:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 18 16:01:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0023.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 18 16:01:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0023.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Wed Jan 18 16:01:49 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 18 16:01:50 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 18 16:01:50 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Wed Jan 18 16:01:50 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0023.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 18 16:01:50 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 18 16:01:50 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Jan 18 16:01:50 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 18 16:01:50 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Jan 18 16:01:50 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Wed Jan 18 16:01:50 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 18 16:01:50 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 18 16:01:50 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 18 16:01:50 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 18 16:01:50 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 18 16:01:50 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 18 16:01:50 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 18 20:01:07 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 18 20:01:07 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0024.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 18 20:01:07 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 18 20:01:07 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0024.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 18 20:01:07 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0024.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Wed Jan 18 20:01:07 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 18 20:01:07 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 18 20:01:08 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Wed Jan 18 20:01:08 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0024.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 18 20:01:08 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 18 20:01:08 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Jan 18 20:01:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 18 20:01:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Jan 18 20:01:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Wed Jan 18 20:01:08 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 18 20:01:08 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 18 20:01:08 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 18 20:01:08 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 18 20:01:08 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 18 20:01:08 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 18 20:01:08 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 19 08:04:57 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 19 08:04:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0025.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 19 08:04:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 19 08:04:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0025.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 19 08:04:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0025.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Thu Jan 19 08:04:57 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 19 08:04:57 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 19 08:04:57 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Thu Jan 19 08:04:58 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0025.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 19 08:04:58 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 19 08:04:58 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Jan 19 08:04:58 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 19 08:04:58 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Jan 19 08:04:58 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Thu Jan 19 08:04:58 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 19 08:04:58 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 19 08:04:58 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 19 08:04:58 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 19 08:04:58 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 19 08:04:58 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 19 08:04:58 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 19 12:01:13 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 19 12:01:13 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0026.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 19 12:01:13 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 19 12:01:13 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0026.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 19 12:01:13 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0026.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Thu Jan 19 12:01:13 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 19 12:01:13 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 19 12:01:13 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Thu Jan 19 12:01:13 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0026.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 19 12:01:13 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 19 12:01:13 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Jan 19 12:01:13 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 19 12:01:13 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Jan 19 12:01:13 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Thu Jan 19 12:01:13 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 19 12:01:13 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 19 12:01:13 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 19 12:01:13 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 19 12:01:13 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 19 12:01:13 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 19 12:01:13 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 19 16:03:43 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 19 16:03:43 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0027.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 19 16:03:43 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 19 16:03:43 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0027.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 19 16:03:43 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0027.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Thu Jan 19 16:03:44 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 19 16:03:44 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 19 16:03:44 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Thu Jan 19 16:03:44 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0027.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 19 16:03:44 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 19 16:03:44 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Jan 19 16:03:44 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 19 16:03:44 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Jan 19 16:03:44 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Thu Jan 19 16:03:44 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 19 16:03:45 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 19 16:03:45 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 19 16:03:45 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 19 16:03:45 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 19 16:03:45 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 19 16:03:45 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 19 20:00:58 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 19 20:00:58 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0028.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 19 20:00:58 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 19 20:00:58 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0028.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 19 20:00:58 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0028.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Thu Jan 19 20:00:58 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 19 20:00:58 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 19 20:00:58 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Thu Jan 19 20:00:58 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0028.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 19 20:00:58 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 19 20:00:58 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Jan 19 20:00:58 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 19 20:00:58 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Jan 19 20:00:58 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Thu Jan 19 20:00:58 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 19 20:00:58 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 19 20:00:58 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 19 20:00:58 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 19 20:00:58 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 19 20:00:58 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 19 20:00:58 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 20 08:07:57 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 20 08:07:58 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0029.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 20 08:07:58 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 20 08:07:58 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0029.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 20 08:07:58 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0029.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Fri Jan 20 08:07:58 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 20 08:07:58 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 20 08:07:58 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Fri Jan 20 08:07:58 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0029.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 20 08:07:58 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 20 08:07:58 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 20 08:07:58 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 20 08:07:58 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 20 08:07:58 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Fri Jan 20 08:07:58 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 20 08:07:58 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 20 08:07:58 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 20 08:07:59 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 20 08:07:59 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 20 08:07:59 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 20 08:07:59 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 20 12:02:30 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 20 12:02:30 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0030.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 20 12:02:31 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 20 12:02:31 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0030.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 20 12:02:31 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0030.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Fri Jan 20 12:02:31 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 20 12:02:31 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 20 12:02:31 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Fri Jan 20 12:02:31 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0030.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 20 12:02:31 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 20 12:02:31 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 20 12:02:31 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 20 12:02:31 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 20 12:02:31 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Fri Jan 20 12:02:31 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 20 12:02:31 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 20 12:02:31 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 20 12:02:31 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 20 12:02:31 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 20 12:02:32 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 20 12:02:32 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 20 16:01:03 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 20 16:01:03 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0031.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 20 16:01:03 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 20 16:01:03 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0031.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 20 16:01:03 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0031.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Fri Jan 20 16:01:03 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 20 16:01:03 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 20 16:01:03 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Fri Jan 20 16:01:03 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0031.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 20 16:01:03 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 20 16:01:03 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 20 16:01:03 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 20 16:01:03 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 20 16:01:03 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Fri Jan 20 16:01:03 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 20 16:01:03 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 20 16:01:03 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 20 16:01:03 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 20 16:01:03 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 20 16:01:03 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 20 16:01:03 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 20 20:00:59 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 20 20:00:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0032.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 20 20:00:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 20 20:00:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0032.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 20 20:00:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0032.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Fri Jan 20 20:00:59 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 20 20:00:59 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 20 20:01:00 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Fri Jan 20 20:01:00 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0032.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 20 20:01:00 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 20 20:01:00 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 20 20:01:00 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 20 20:01:00 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 20 20:01:00 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Fri Jan 20 20:01:00 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 20 20:01:00 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 20 20:01:00 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 20 20:01:00 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 20 20:01:00 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 20 20:01:00 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 20 20:01:00 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 21 08:04:15 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 21 08:04:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0033.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 21 08:04:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 21 08:04:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0033.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 21 08:04:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0033.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sat Jan 21 08:04:16 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 21 08:04:16 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 21 08:04:16 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sat Jan 21 08:04:16 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0033.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 21 08:04:16 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 21 08:04:16 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 21 08:04:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 21 08:04:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 21 08:04:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sat Jan 21 08:04:16 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 21 08:04:16 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 21 08:04:16 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 21 08:04:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 21 08:04:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 21 08:04:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 21 08:04:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 21 12:01:13 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 21 12:01:13 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0034.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 21 12:01:13 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 21 12:01:13 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0034.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 21 12:01:13 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0034.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sat Jan 21 12:01:13 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 21 12:01:13 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 21 12:01:13 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sat Jan 21 12:01:13 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0034.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 21 12:01:13 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 21 12:01:14 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 21 12:01:14 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 21 12:01:14 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 21 12:01:14 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sat Jan 21 12:01:14 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 21 12:01:14 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 21 12:01:14 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 21 12:01:14 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 21 12:01:14 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 21 12:01:14 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 21 12:01:14 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 21 16:01:01 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 21 16:01:01 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0035.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 21 16:01:01 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 21 16:01:01 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0035.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 21 16:01:02 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0035.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sat Jan 21 16:01:02 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 21 16:01:02 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 21 16:01:02 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sat Jan 21 16:01:02 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0035.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 21 16:01:02 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 21 16:01:02 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 21 16:01:02 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 21 16:01:02 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 21 16:01:02 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sat Jan 21 16:01:02 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 21 16:01:02 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 21 16:01:02 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 21 16:01:02 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 21 16:01:02 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 21 16:01:02 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 21 16:01:02 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 21 20:00:59 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 21 20:00:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0036.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 21 20:00:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 21 20:00:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0036.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 21 20:00:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0036.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sat Jan 21 20:00:59 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 21 20:00:59 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 21 20:00:59 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sat Jan 21 20:00:59 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0036.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 21 20:00:59 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 21 20:00:59 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 21 20:00:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 21 20:00:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 21 20:00:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sat Jan 21 20:00:59 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 21 20:00:59 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 21 20:00:59 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 21 20:00:59 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 21 20:00:59 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 21 20:00:59 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 21 20:00:59 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 22 08:03:04 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 22 08:03:05 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0037.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 22 08:03:05 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 22 08:03:05 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0037.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 22 08:03:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0037.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sun Jan 22 08:03:06 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 22 08:03:06 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 22 08:03:06 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sun Jan 22 08:03:06 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0037.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 22 08:03:06 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 22 08:03:06 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 22 08:03:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 22 08:03:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 22 08:03:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sun Jan 22 08:03:06 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 22 08:03:06 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 22 08:03:06 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 22 08:03:07 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 22 08:03:07 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 22 08:03:07 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 22 08:03:07 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 22 12:01:02 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 22 12:01:02 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0038.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 22 12:01:02 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 22 12:01:02 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0038.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 22 12:01:02 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0038.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sun Jan 22 12:01:02 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 22 12:01:02 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 22 12:01:02 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sun Jan 22 12:01:02 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0038.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 22 12:01:02 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 22 12:01:02 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 22 12:01:02 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 22 12:01:02 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 22 12:01:02 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sun Jan 22 12:01:02 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 22 12:01:02 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 22 12:01:02 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 22 12:01:02 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 22 12:01:03 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 22 12:01:03 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 22 12:01:03 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 22 16:01:39 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 22 16:01:39 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0039.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 22 16:01:39 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 22 16:01:39 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0039.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 22 16:01:39 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0039.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sun Jan 22 16:01:39 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 22 16:01:40 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 22 16:01:40 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sun Jan 22 16:01:40 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0039.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 22 16:01:40 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 22 16:01:40 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 22 16:01:40 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 22 16:01:40 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 22 16:01:40 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sun Jan 22 16:01:40 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 22 16:01:40 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 22 16:01:40 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 22 16:01:40 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 22 16:01:40 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 22 16:01:40 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 22 16:01:40 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 22 20:01:34 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 22 20:01:34 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0040.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 22 20:01:34 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 22 20:01:35 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0040.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 22 20:01:35 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0040.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sun Jan 22 20:01:35 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 22 20:01:35 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 22 20:01:35 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sun Jan 22 20:01:35 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0040.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 22 20:01:35 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 22 20:01:35 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 22 20:01:35 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 22 20:01:35 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 22 20:01:35 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sun Jan 22 20:01:35 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 22 20:01:35 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 22 20:01:35 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 22 20:01:35 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 22 20:01:35 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 22 20:01:35 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 22 20:01:35 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 23 08:03:01 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 23 08:03:03 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0041.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 23 08:03:03 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 23 08:03:03 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0041.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 23 08:03:03 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0041.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Mon Jan 23 08:03:03 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 23 08:03:03 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 23 08:03:03 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Mon Jan 23 08:03:03 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0041.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 23 08:03:03 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 23 08:03:03 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 23 08:03:03 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 23 08:03:03 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 23 08:03:03 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Mon Jan 23 08:03:03 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 23 08:03:03 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 23 08:03:03 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 23 08:03:03 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 23 08:03:03 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 23 08:03:03 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 23 08:03:03 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 23 12:01:08 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 23 12:01:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0042.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 23 12:01:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 23 12:01:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0042.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 23 12:01:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0042.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Mon Jan 23 12:01:09 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 23 12:01:09 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 23 12:01:09 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Mon Jan 23 12:01:09 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0042.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 23 12:01:09 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 23 12:01:09 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 23 12:01:09 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 23 12:01:09 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 23 12:01:09 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Mon Jan 23 12:01:09 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 23 12:01:09 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 23 12:01:09 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 23 12:01:09 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 23 12:01:09 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 23 12:01:09 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 23 12:01:09 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 23 16:02:15 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 23 16:02:15 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0043.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 23 16:02:15 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 23 16:02:15 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0043.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 23 16:02:15 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0043.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Mon Jan 23 16:02:15 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 23 16:02:15 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 23 16:02:15 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Mon Jan 23 16:02:15 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0043.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 23 16:02:15 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 23 16:02:16 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 23 16:02:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 23 16:02:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 23 16:02:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Mon Jan 23 16:02:16 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 23 16:02:16 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 23 16:02:16 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 23 16:02:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 23 16:02:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 23 16:02:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 23 16:02:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 23 20:01:04 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 23 20:01:04 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0044.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 23 20:01:04 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 23 20:01:04 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0044.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 23 20:01:04 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0044.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Mon Jan 23 20:01:04 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 23 20:01:04 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 23 20:01:04 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Mon Jan 23 20:01:04 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0044.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 23 20:01:04 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 23 20:01:04 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 23 20:01:04 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 23 20:01:04 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 23 20:01:04 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Mon Jan 23 20:01:04 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 23 20:01:04 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 23 20:01:04 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 23 20:01:04 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 23 20:01:04 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 23 20:01:04 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 23 20:01:04 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 24 08:03:34 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 24 08:03:34 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0045.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 24 08:03:34 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 24 08:03:34 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0045.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 24 08:03:34 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0045.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Tue Jan 24 08:03:34 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 24 08:03:34 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 24 08:03:34 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Tue Jan 24 08:03:35 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0045.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 24 08:03:35 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 24 08:03:35 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 24 08:03:35 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 24 08:03:35 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 24 08:03:35 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Tue Jan 24 08:03:35 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 24 08:03:35 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 24 08:03:35 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 24 08:03:35 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 24 08:03:35 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 24 08:03:35 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 24 08:03:35 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 24 12:03:45 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 24 12:03:45 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0046.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 24 12:03:45 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 24 12:03:46 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0046.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 24 12:03:46 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0046.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Tue Jan 24 12:03:46 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 24 12:03:46 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 24 12:03:46 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Tue Jan 24 12:03:46 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0046.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 24 12:03:46 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 24 12:03:46 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 24 12:03:47 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 24 12:03:47 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 24 12:03:47 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Tue Jan 24 12:03:47 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 24 12:03:47 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 24 12:03:47 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 24 12:03:47 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 24 12:03:47 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 24 12:03:47 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 24 12:03:47 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 24 16:01:43 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 24 16:01:43 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0047.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 24 16:01:43 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 24 16:01:43 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0047.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 24 16:01:43 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0047.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Tue Jan 24 16:01:44 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 24 16:01:44 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 24 16:01:44 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Tue Jan 24 16:01:44 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0047.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 24 16:01:44 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 24 16:01:44 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 24 16:01:44 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 24 16:01:44 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 24 16:01:44 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Tue Jan 24 16:01:44 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 24 16:01:44 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 24 16:01:44 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 24 16:01:44 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 24 16:01:44 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 24 16:01:44 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 24 16:01:44 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 24 20:02:10 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 24 20:02:11 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0048.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 24 20:02:11 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 24 20:02:11 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0048.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 24 20:02:11 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0048.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Tue Jan 24 20:02:11 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 24 20:02:11 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 24 20:02:11 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Tue Jan 24 20:02:11 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0048.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 24 20:02:11 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 24 20:02:11 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 24 20:02:11 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 24 20:02:11 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 24 20:02:11 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Tue Jan 24 20:02:11 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 24 20:02:11 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 24 20:02:11 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 24 20:02:11 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 24 20:02:11 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 24 20:02:11 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 24 20:02:11 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 25 08:02:26 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 25 08:02:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0049.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 25 08:02:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 25 08:02:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0049.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 25 08:02:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0049.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Wed Jan 25 08:02:27 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 25 08:02:27 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 25 08:02:27 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Wed Jan 25 08:02:27 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0049.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 25 08:02:27 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 25 08:02:27 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Jan 25 08:02:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 25 08:02:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Jan 25 08:02:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Wed Jan 25 08:02:27 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 25 08:02:27 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 25 08:02:27 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 25 08:02:28 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 25 08:02:28 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 25 08:02:28 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 25 08:02:29 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 25 12:01:20 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 25 12:01:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0050.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 25 12:01:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 25 12:01:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0050.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 25 12:01:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0050.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Wed Jan 25 12:01:21 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 25 12:01:21 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 25 12:01:21 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Wed Jan 25 12:01:21 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0050.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 25 12:01:21 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 25 12:01:21 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Jan 25 12:01:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 25 12:01:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Jan 25 12:01:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Wed Jan 25 12:01:21 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 25 12:01:21 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 25 12:01:21 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 25 12:01:21 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 25 12:01:21 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 25 12:01:21 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 25 12:01:21 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 25 16:01:15 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 25 16:01:15 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0051.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 25 16:01:15 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 25 16:01:15 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0051.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 25 16:01:15 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0051.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Wed Jan 25 16:01:16 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 25 16:01:16 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 25 16:01:16 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Wed Jan 25 16:01:16 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0051.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 25 16:01:16 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 25 16:01:16 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Jan 25 16:01:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 25 16:01:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Jan 25 16:01:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Wed Jan 25 16:01:16 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 25 16:01:16 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 25 16:01:16 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 25 16:01:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 25 16:01:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 25 16:01:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 25 16:01:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 25 20:01:08 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 25 20:01:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0052.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 25 20:01:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 25 20:01:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0052.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Jan 25 20:01:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0052.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Wed Jan 25 20:01:08 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 25 20:01:08 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 25 20:01:08 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Wed Jan 25 20:01:08 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0052.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 25 20:01:08 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 25 20:01:08 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Jan 25 20:01:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 25 20:01:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Jan 25 20:01:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Wed Jan 25 20:01:08 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 25 20:01:08 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 25 20:01:08 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Jan 25 20:01:08 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jan 25 20:01:08 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 25 20:01:08 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Jan 25 20:01:08 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 26 08:06:51 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 26 08:06:52 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0053.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 26 08:06:52 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 26 08:06:52 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0053.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 26 08:06:52 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0053.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Thu Jan 26 08:06:52 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 26 08:06:52 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 26 08:06:52 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Thu Jan 26 08:06:52 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0053.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 26 08:06:52 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 26 08:06:52 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Jan 26 08:06:53 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 26 08:06:53 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Jan 26 08:06:53 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Thu Jan 26 08:06:53 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 26 08:06:53 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 26 08:06:53 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 26 08:06:53 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 26 08:06:53 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 26 08:06:54 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 26 08:06:54 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 26 12:01:21 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 26 12:01:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0054.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 26 12:01:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 26 12:01:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0054.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 26 12:01:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0054.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Thu Jan 26 12:01:22 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 26 12:01:22 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 26 12:01:22 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Thu Jan 26 12:01:23 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0054.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 26 12:01:23 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 26 12:01:23 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Jan 26 12:01:23 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 26 12:01:23 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Jan 26 12:01:23 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Thu Jan 26 12:01:23 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 26 12:01:23 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 26 12:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 26 12:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 26 12:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 26 12:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 26 12:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 26 16:01:05 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 26 16:01:05 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0055.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 26 16:01:05 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 26 16:01:05 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0055.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 26 16:01:05 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0055.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Thu Jan 26 16:01:05 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 26 16:01:05 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 26 16:01:05 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Thu Jan 26 16:01:05 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0055.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 26 16:01:05 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 26 16:01:05 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Jan 26 16:01:05 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 26 16:01:05 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Jan 26 16:01:05 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Thu Jan 26 16:01:05 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 26 16:01:05 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 26 16:01:05 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 26 16:01:05 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 26 16:01:05 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 26 16:01:05 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 26 16:01:05 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 26 20:00:56 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 26 20:00:56 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0056.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 26 20:00:56 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 26 20:00:56 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0056.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Jan 26 20:00:56 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0056.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Thu Jan 26 20:00:57 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 26 20:00:57 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 26 20:00:57 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Thu Jan 26 20:00:57 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0056.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 26 20:00:57 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 26 20:00:57 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Jan 26 20:00:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 26 20:00:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Jan 26 20:00:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Thu Jan 26 20:00:57 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 26 20:00:57 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 26 20:00:57 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Jan 26 20:00:57 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Jan 26 20:00:57 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 26 20:00:57 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Jan 26 20:00:57 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 27 08:07:48 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 27 08:07:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0057.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 27 08:07:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 27 08:07:50 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0057.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 27 08:07:50 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0057.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Fri Jan 27 08:07:50 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 27 08:07:50 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 27 08:07:50 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Fri Jan 27 08:07:50 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0057.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 27 08:07:50 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 27 08:07:51 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 27 08:07:51 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 27 08:07:51 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 27 08:07:51 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Fri Jan 27 08:07:51 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 27 08:07:51 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 27 08:07:51 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 27 08:07:51 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 27 08:07:51 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 27 08:07:51 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 27 08:07:51 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 27 12:02:28 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 27 12:02:28 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0058.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 27 12:02:28 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 27 12:02:28 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0058.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 27 12:02:29 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0058.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Fri Jan 27 12:02:29 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 27 12:02:29 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 27 12:02:29 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Fri Jan 27 12:02:29 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0058.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 27 12:02:29 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 27 12:02:29 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 27 12:02:29 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 27 12:02:29 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 27 12:02:29 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Fri Jan 27 12:02:29 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 27 12:02:29 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 27 12:02:29 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 27 12:02:29 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 27 12:02:30 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 27 12:02:30 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 27 12:02:30 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 27 16:01:20 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 27 16:01:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0059.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 27 16:01:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 27 16:01:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0059.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 27 16:01:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0059.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Fri Jan 27 16:01:20 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 27 16:01:20 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 27 16:01:20 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Fri Jan 27 16:01:20 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0059.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 27 16:01:20 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 27 16:01:20 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 27 16:01:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 27 16:01:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 27 16:01:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Fri Jan 27 16:01:20 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 27 16:01:20 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 27 16:01:20 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 27 16:01:20 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 27 16:01:20 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 27 16:01:20 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 27 16:01:20 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 27 20:01:12 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 27 20:01:12 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0060.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 27 20:01:12 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 27 20:01:12 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0060.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Jan 27 20:01:12 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0060.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Fri Jan 27 20:01:12 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 27 20:01:12 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 27 20:01:12 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Fri Jan 27 20:01:12 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0060.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 27 20:01:12 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 27 20:01:12 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 27 20:01:12 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 27 20:01:12 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Jan 27 20:01:12 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Fri Jan 27 20:01:12 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 27 20:01:12 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 27 20:01:12 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Jan 27 20:01:12 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Jan 27 20:01:12 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 27 20:01:12 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Jan 27 20:01:12 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 28 08:06:27 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 28 08:06:29 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0061.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 28 08:06:29 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 28 08:06:29 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0061.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 28 08:06:30 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0061.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sat Jan 28 08:06:30 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 28 08:06:30 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 28 08:06:30 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sat Jan 28 08:06:30 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0061.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 28 08:06:30 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 28 08:06:30 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 28 08:06:30 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 28 08:06:30 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 28 08:06:30 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sat Jan 28 08:06:30 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 28 08:06:30 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 28 08:06:30 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 28 08:06:30 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 28 08:06:31 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 28 08:06:31 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 28 08:06:31 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 28 12:02:08 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 28 12:02:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0062.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 28 12:02:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 28 12:02:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0062.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 28 12:02:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0062.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sat Jan 28 12:02:08 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 28 12:02:08 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 28 12:02:08 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sat Jan 28 12:02:08 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0062.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 28 12:02:08 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 28 12:02:08 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 28 12:02:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 28 12:02:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 28 12:02:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sat Jan 28 12:02:08 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 28 12:02:08 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 28 12:02:08 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 28 12:02:08 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 28 12:02:08 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 28 12:02:08 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 28 12:02:08 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 28 16:01:07 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 28 16:01:07 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0063.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 28 16:01:07 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 28 16:01:07 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0063.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 28 16:01:07 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0063.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sat Jan 28 16:01:07 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 28 16:01:07 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 28 16:01:07 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sat Jan 28 16:01:07 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0063.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 28 16:01:07 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 28 16:01:07 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 28 16:01:07 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 28 16:01:07 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 28 16:01:07 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sat Jan 28 16:01:07 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 28 16:01:07 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 28 16:01:07 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 28 16:01:07 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 28 16:01:07 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 28 16:01:07 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 28 16:01:07 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 28 20:01:06 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 28 20:01:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0064.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 28 20:01:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 28 20:01:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0064.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Jan 28 20:01:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0064.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sat Jan 28 20:01:06 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 28 20:01:06 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 28 20:01:06 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sat Jan 28 20:01:06 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0064.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 28 20:01:06 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 28 20:01:06 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 28 20:01:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 28 20:01:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Jan 28 20:01:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sat Jan 28 20:01:06 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 28 20:01:06 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 28 20:01:06 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Jan 28 20:01:06 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jan 28 20:01:06 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 28 20:01:06 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Jan 28 20:01:07 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 29 08:07:56 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 29 08:07:56 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0065.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 29 08:07:56 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 29 08:07:56 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0065.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 29 08:07:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0065.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sun Jan 29 08:07:57 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 29 08:07:57 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 29 08:07:57 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sun Jan 29 08:07:57 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0065.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 29 08:07:57 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 29 08:07:57 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 29 08:07:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 29 08:07:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 29 08:07:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sun Jan 29 08:07:57 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 29 08:07:57 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 29 08:07:57 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 29 08:07:57 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 29 08:07:57 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 29 08:07:57 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 29 08:07:57 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 29 12:01:17 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 29 12:01:17 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0066.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 29 12:01:17 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 29 12:01:17 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0066.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 29 12:01:17 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0066.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sun Jan 29 12:01:17 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 29 12:01:17 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 29 12:01:17 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sun Jan 29 12:01:17 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0066.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 29 12:01:17 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 29 12:01:17 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 29 12:01:17 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 29 12:01:17 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 29 12:01:17 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sun Jan 29 12:01:17 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 29 12:01:18 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 29 12:01:18 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 29 12:01:18 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 29 12:01:18 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 29 12:01:18 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 29 12:01:18 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 29 16:01:06 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 29 16:01:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0067.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 29 16:01:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 29 16:01:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0067.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 29 16:01:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0067.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sun Jan 29 16:01:06 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 29 16:01:06 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 29 16:01:06 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sun Jan 29 16:01:06 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0067.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 29 16:01:06 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 29 16:01:06 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 29 16:01:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 29 16:01:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 29 16:01:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sun Jan 29 16:01:06 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 29 16:01:06 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 29 16:01:06 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 29 16:01:06 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 29 16:01:06 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 29 16:01:06 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 29 16:01:06 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 29 20:01:08 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 29 20:01:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0068.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 29 20:01:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 29 20:01:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0068.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Jan 29 20:01:08 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0068.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sun Jan 29 20:01:08 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 29 20:01:08 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 29 20:01:08 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sun Jan 29 20:01:08 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0068.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 29 20:01:08 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 29 20:01:09 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 29 20:01:09 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 29 20:01:09 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Jan 29 20:01:09 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sun Jan 29 20:01:09 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 29 20:01:09 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 29 20:01:09 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Jan 29 20:01:09 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Jan 29 20:01:09 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 29 20:01:09 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Jan 29 20:01:09 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 30 08:10:43 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 30 08:10:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0069.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 30 08:10:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 30 08:10:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0069.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 30 08:10:50 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0069.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Mon Jan 30 08:10:50 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 30 08:10:50 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 30 08:10:50 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Mon Jan 30 08:10:50 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0069.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 30 08:10:50 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 30 08:10:50 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 30 08:10:50 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 30 08:10:50 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 30 08:10:51 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Mon Jan 30 08:10:51 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 30 08:10:51 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 30 08:10:51 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 30 08:10:51 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 30 08:10:51 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 30 08:10:51 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 30 08:10:51 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 30 12:04:22 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 30 12:04:25 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0070.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 30 12:04:26 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 30 12:04:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0070.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 30 12:04:28 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0070.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Mon Jan 30 12:04:28 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 30 12:04:28 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 30 12:04:28 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Mon Jan 30 12:04:28 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0070.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 30 12:04:28 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 30 12:04:28 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 30 12:04:29 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 30 12:04:29 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 30 12:04:29 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Mon Jan 30 12:04:29 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 30 12:04:29 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 30 12:04:29 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 30 12:04:29 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 30 12:04:29 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 30 12:04:30 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 30 12:04:30 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 30 16:04:43 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 30 16:04:44 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0071.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 30 16:04:44 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 30 16:04:44 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0071.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 30 16:04:44 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0071.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Mon Jan 30 16:04:44 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 30 16:04:44 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 30 16:04:44 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Mon Jan 30 16:04:44 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0071.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 30 16:04:44 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 30 16:04:44 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 30 16:04:44 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 30 16:04:44 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 30 16:04:44 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Mon Jan 30 16:04:44 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 30 16:04:44 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 30 16:04:44 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 30 16:04:45 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 30 16:04:45 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 30 16:04:45 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 30 16:04:45 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 30 20:02:36 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 30 20:02:37 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0072.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 30 20:02:37 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 30 20:02:37 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0072.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Jan 30 20:02:37 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0072.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Mon Jan 30 20:02:37 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 30 20:02:37 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 30 20:02:38 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Mon Jan 30 20:02:38 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0072.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 30 20:02:38 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 30 20:02:38 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 30 20:02:38 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 30 20:02:38 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Jan 30 20:02:38 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Mon Jan 30 20:02:38 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 30 20:02:38 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 30 20:02:38 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Jan 30 20:02:38 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jan 30 20:02:38 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 30 20:02:38 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Jan 30 20:02:38 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 31 08:08:40 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 31 08:08:41 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0073.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 31 08:08:41 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 31 08:08:41 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0073.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 31 08:08:41 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0073.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Tue Jan 31 08:08:41 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 31 08:08:41 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 31 08:08:41 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Tue Jan 31 08:08:42 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0073.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 31 08:08:42 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 31 08:08:42 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 31 08:08:42 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 31 08:08:42 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 31 08:08:42 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Tue Jan 31 08:08:42 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 31 08:08:42 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 31 08:08:42 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 31 08:08:42 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 31 08:08:42 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 31 08:08:42 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 31 08:08:42 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 31 12:04:51 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 31 12:04:52 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0074.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 31 12:04:52 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 31 12:04:52 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0074.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 31 12:04:52 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0074.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Tue Jan 31 12:04:53 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 31 12:04:53 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 31 12:04:53 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Tue Jan 31 12:04:53 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0074.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 31 12:04:53 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 31 12:04:53 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 31 12:04:53 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 31 12:04:53 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 31 12:04:53 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Tue Jan 31 12:04:53 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 31 12:04:53 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 31 12:04:53 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 31 12:04:53 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 31 12:04:53 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 31 12:04:53 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 31 12:04:53 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 31 16:02:43 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 31 16:02:44 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0075.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 31 16:02:44 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 31 16:02:44 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0075.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 31 16:02:46 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0075.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Tue Jan 31 16:02:46 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 31 16:02:46 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 31 16:02:46 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Tue Jan 31 16:02:46 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0075.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 31 16:02:46 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 31 16:02:46 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 31 16:02:46 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 31 16:02:46 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 31 16:02:46 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Tue Jan 31 16:02:46 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 31 16:02:46 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 31 16:02:46 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 31 16:02:46 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 31 16:02:46 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 31 16:02:46 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 31 16:02:47 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 31 20:01:22 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 31 20:01:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0076.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 31 20:01:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 31 20:01:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0076.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Jan 31 20:01:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0076.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Tue Jan 31 20:01:22 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 31 20:01:23 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 31 20:01:23 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Tue Jan 31 20:01:23 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0076.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 31 20:01:23 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 31 20:01:23 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 31 20:01:23 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 31 20:01:23 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Jan 31 20:01:23 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Tue Jan 31 20:01:23 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 31 20:01:23 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 31 20:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Jan 31 20:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Jan 31 20:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 31 20:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Jan 31 20:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 1 08:10:58 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 1 08:10:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0077.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 1 08:10:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 1 08:11:00 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0077.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 1 08:11:00 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0077.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Wed Feb 1 08:11:00 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 1 08:11:00 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 1 08:11:00 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Wed Feb 1 08:11:00 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0077.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 1 08:11:00 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 1 08:11:00 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 1 08:11:00 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 1 08:11:00 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 1 08:11:00 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Wed Feb 1 08:11:00 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 1 08:11:00 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 1 08:11:00 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 1 08:11:00 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 1 08:11:00 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 1 08:11:00 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 1 08:11:00 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 1 12:03:09 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 1 12:03:10 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0078.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 1 12:03:10 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 1 12:03:10 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0078.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 1 12:03:10 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0078.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Wed Feb 1 12:03:10 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 1 12:03:10 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 1 12:03:10 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Wed Feb 1 12:03:10 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0078.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 1 12:03:11 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 1 12:03:11 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 1 12:03:11 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 1 12:03:11 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 1 12:03:11 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Wed Feb 1 12:03:11 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 1 12:03:11 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 1 12:03:11 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 1 12:03:11 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 1 12:03:12 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 1 12:03:12 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 1 12:03:12 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 1 16:01:21 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 1 16:01:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0079.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 1 16:01:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 1 16:01:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0079.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 1 16:01:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0079.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Wed Feb 1 16:01:21 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 1 16:01:21 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 1 16:01:21 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Wed Feb 1 16:01:21 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0079.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 1 16:01:21 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 1 16:01:21 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 1 16:01:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 1 16:01:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 1 16:01:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Wed Feb 1 16:01:21 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 1 16:01:21 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 1 16:01:22 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 1 16:01:22 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 1 16:01:22 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 1 16:01:22 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 1 16:01:22 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 1 20:01:16 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 1 20:01:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0080.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 1 20:01:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 1 20:01:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0080.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 1 20:01:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0080.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Wed Feb 1 20:01:16 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 1 20:01:16 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 1 20:01:16 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Wed Feb 1 20:01:16 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0080.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 1 20:01:16 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 1 20:01:16 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 1 20:01:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 1 20:01:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 1 20:01:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Wed Feb 1 20:01:16 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 1 20:01:16 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 1 20:01:16 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 1 20:01:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 1 20:01:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 1 20:01:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 1 20:01:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 2 08:14:57 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 2 08:15:01 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0081.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 2 08:15:01 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 2 08:15:02 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0081.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 2 08:15:02 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0081.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Thu Feb 2 08:15:02 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 2 08:15:02 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 2 08:15:02 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Thu Feb 2 08:15:03 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0081.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 2 08:15:03 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 2 08:15:03 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Feb 2 08:15:03 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 2 08:15:03 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Feb 2 08:15:04 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Thu Feb 2 08:15:04 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 2 08:15:04 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 2 08:15:04 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 2 08:15:04 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 2 08:15:04 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 2 08:15:04 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 2 08:15:04 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 2 12:03:17 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 2 12:03:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0082.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 2 12:03:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 2 12:03:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0082.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 2 12:03:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0082.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Thu Feb 2 12:03:21 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 2 12:03:21 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 2 12:03:21 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Thu Feb 2 12:03:21 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0082.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 2 12:03:21 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 2 12:03:21 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Feb 2 12:03:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 2 12:03:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Feb 2 12:03:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Thu Feb 2 12:03:21 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 2 12:03:21 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 2 12:03:21 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 2 12:03:21 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 2 12:03:21 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 2 12:03:21 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 2 12:03:21 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 2 16:01:27 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 2 16:01:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0083.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 2 16:01:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 2 16:01:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0083.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 2 16:01:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0083.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Thu Feb 2 16:01:27 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 2 16:01:27 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 2 16:01:27 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Thu Feb 2 16:01:27 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0083.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 2 16:01:27 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 2 16:01:27 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Feb 2 16:01:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 2 16:01:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Feb 2 16:01:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Thu Feb 2 16:01:27 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 2 16:01:27 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 2 16:01:27 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 2 16:01:27 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 2 16:01:27 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 2 16:01:27 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 2 16:01:27 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 2 20:01:18 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 2 20:01:18 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0084.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 2 20:01:18 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 2 20:01:18 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0084.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 2 20:01:18 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0084.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Thu Feb 2 20:01:18 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 2 20:01:18 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 2 20:01:19 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Thu Feb 2 20:01:19 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0084.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 2 20:01:19 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 2 20:01:19 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Feb 2 20:01:19 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 2 20:01:19 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Feb 2 20:01:19 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Thu Feb 2 20:01:19 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 2 20:01:19 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 2 20:01:19 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 2 20:01:19 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 2 20:01:19 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 2 20:01:19 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 2 20:01:19 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 3 08:14:09 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 3 08:14:12 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0085.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 3 08:14:13 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 3 08:14:13 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0085.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 3 08:14:14 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0085.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Fri Feb 3 08:14:15 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 3 08:14:15 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 3 08:14:15 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Fri Feb 3 08:14:15 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0085.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 3 08:14:15 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 3 08:14:15 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Feb 3 08:14:15 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 3 08:14:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Feb 3 08:14:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Fri Feb 3 08:14:16 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 3 08:14:16 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 3 08:14:16 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 3 08:14:17 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 3 08:14:17 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 3 08:14:17 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 3 08:14:17 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 3 12:03:12 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 3 12:03:13 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0086.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 3 12:03:13 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 3 12:03:13 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0086.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 3 12:03:13 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0086.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Fri Feb 3 12:03:13 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 3 12:03:13 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 3 12:03:13 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Fri Feb 3 12:03:13 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0086.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 3 12:03:13 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 3 12:03:13 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Feb 3 12:03:13 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 3 12:03:13 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Feb 3 12:03:13 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Fri Feb 3 12:03:13 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 3 12:03:13 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 3 12:03:13 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 3 12:03:13 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 3 12:03:13 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 3 12:03:13 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 3 12:03:13 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 3 16:01:18 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 3 16:01:18 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0087.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 3 16:01:18 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 3 16:01:19 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0087.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 3 16:01:19 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0087.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Fri Feb 3 16:01:19 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 3 16:01:19 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 3 16:01:19 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Fri Feb 3 16:01:19 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0087.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 3 16:01:19 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 3 16:01:19 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Feb 3 16:01:19 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 3 16:01:19 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Feb 3 16:01:19 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Fri Feb 3 16:01:19 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 3 16:01:19 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 3 16:01:19 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 3 16:01:19 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 3 16:01:19 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 3 16:01:19 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 3 16:01:19 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 3 20:01:23 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 3 20:01:23 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0088.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 3 20:01:23 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 3 20:01:23 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0088.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 3 20:01:24 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0088.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Fri Feb 3 20:01:24 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 3 20:01:24 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 3 20:01:24 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Fri Feb 3 20:01:24 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0088.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 3 20:01:24 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 3 20:01:24 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Feb 3 20:01:24 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 3 20:01:24 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Feb 3 20:01:24 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Fri Feb 3 20:01:24 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 3 20:01:24 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 3 20:01:24 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 3 20:01:24 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 3 20:01:24 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 3 20:01:24 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 3 20:01:24 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 4 08:09:36 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 4 08:09:41 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0089.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 4 08:09:41 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 4 08:09:41 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0089.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 4 08:09:42 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0089.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sat Feb 4 08:09:42 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 4 08:09:42 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 4 08:09:43 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sat Feb 4 08:09:43 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0089.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 4 08:09:43 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 4 08:09:43 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Feb 4 08:09:43 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 4 08:09:43 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Feb 4 08:09:43 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sat Feb 4 08:09:43 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 4 08:09:43 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 4 08:09:43 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 4 08:09:43 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 4 08:09:43 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 4 08:09:43 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 4 08:09:44 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 4 12:03:14 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 4 12:03:15 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0090.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 4 12:03:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 4 12:03:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0090.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 4 12:03:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0090.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sat Feb 4 12:03:16 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 4 12:03:16 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 4 12:03:16 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sat Feb 4 12:03:16 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0090.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 4 12:03:16 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 4 12:03:16 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Feb 4 12:03:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 4 12:03:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Feb 4 12:03:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sat Feb 4 12:03:16 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 4 12:03:16 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 4 12:03:16 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 4 12:03:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 4 12:03:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 4 12:03:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 4 12:03:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 4 16:01:28 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 4 16:01:28 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0091.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 4 16:01:28 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 4 16:01:28 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0091.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 4 16:01:28 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0091.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sat Feb 4 16:01:28 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 4 16:01:28 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 4 16:01:28 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sat Feb 4 16:01:29 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0091.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 4 16:01:29 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 4 16:01:29 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Feb 4 16:01:29 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 4 16:01:29 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Feb 4 16:01:29 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sat Feb 4 16:01:29 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 4 16:01:29 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 4 16:01:29 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 4 16:01:29 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 4 16:01:29 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 4 16:01:29 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 4 16:01:29 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 4 20:01:21 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 4 20:01:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0092.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 4 20:01:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 4 20:01:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0092.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 4 20:01:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0092.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sat Feb 4 20:01:21 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 4 20:01:21 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 4 20:01:21 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sat Feb 4 20:01:21 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0092.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 4 20:01:21 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 4 20:01:21 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Feb 4 20:01:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 4 20:01:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Feb 4 20:01:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sat Feb 4 20:01:21 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 4 20:01:21 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 4 20:01:21 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 4 20:01:21 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 4 20:01:21 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 4 20:01:21 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 4 20:01:21 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 5 08:08:24 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 5 08:08:25 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0093.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 5 08:08:25 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 5 08:08:25 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0093.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 5 08:08:25 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0093.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sun Feb 5 08:08:26 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 5 08:08:26 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 5 08:08:26 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sun Feb 5 08:08:26 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0093.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 5 08:08:26 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 5 08:08:26 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Feb 5 08:08:26 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 5 08:08:26 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Feb 5 08:08:26 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sun Feb 5 08:08:26 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 5 08:08:26 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 5 08:08:26 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 5 08:08:26 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 5 08:08:26 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 5 08:08:26 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 5 08:08:26 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 5 12:03:11 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 5 12:03:13 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0094.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 5 12:03:13 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 5 12:03:14 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0094.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 5 12:03:14 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0094.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sun Feb 5 12:03:14 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 5 12:03:14 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 5 12:03:14 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sun Feb 5 12:03:14 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0094.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 5 12:03:14 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 5 12:03:14 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Feb 5 12:03:14 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 5 12:03:14 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Feb 5 12:03:14 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sun Feb 5 12:03:14 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 5 12:03:14 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 5 12:03:14 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 5 12:03:14 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 5 12:03:14 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 5 12:03:14 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 5 12:03:14 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 5 16:01:25 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 5 16:01:25 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0095.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 5 16:01:25 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 5 16:01:25 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0095.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 5 16:01:25 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0095.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sun Feb 5 16:01:25 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 5 16:01:25 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 5 16:01:25 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sun Feb 5 16:01:25 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0095.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 5 16:01:25 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 5 16:01:25 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Feb 5 16:01:25 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 5 16:01:25 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Feb 5 16:01:25 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sun Feb 5 16:01:25 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 5 16:01:25 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 5 16:01:25 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 5 16:01:25 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 5 16:01:25 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 5 16:01:25 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 5 16:01:25 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 5 20:01:17 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 5 20:01:17 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0096.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 5 20:01:17 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 5 20:01:17 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0096.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 5 20:01:17 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0096.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sun Feb 5 20:01:17 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 5 20:01:17 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 5 20:01:17 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sun Feb 5 20:01:17 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0096.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 5 20:01:17 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 5 20:01:17 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Feb 5 20:01:17 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 5 20:01:17 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Feb 5 20:01:17 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sun Feb 5 20:01:17 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 5 20:01:17 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 5 20:01:17 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 5 20:01:17 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 5 20:01:17 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 5 20:01:17 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 5 20:01:17 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 6 08:17:14 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 6 08:17:19 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0097.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 6 08:17:19 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 6 08:17:19 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0097.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 6 08:17:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0097.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Mon Feb 6 08:17:20 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 6 08:17:20 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 6 08:17:20 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Mon Feb 6 08:17:21 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0097.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 6 08:17:21 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 6 08:17:21 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Feb 6 08:17:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 6 08:17:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Feb 6 08:17:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Mon Feb 6 08:17:21 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 6 08:17:21 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 6 08:17:21 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 6 08:17:21 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 6 08:17:22 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 6 08:17:22 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 6 08:17:22 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 6 12:03:18 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 6 12:03:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0098.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 6 12:03:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 6 12:03:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0098.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 6 12:03:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0098.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Mon Feb 6 12:03:21 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 6 12:03:21 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 6 12:03:21 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Mon Feb 6 12:03:21 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0098.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 6 12:03:21 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 6 12:03:21 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Feb 6 12:03:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 6 12:03:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Feb 6 12:03:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Mon Feb 6 12:03:21 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 6 12:03:21 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 6 12:03:21 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 6 12:03:21 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 6 12:03:21 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 6 12:03:21 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 6 12:03:21 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 6 16:01:22 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 6 16:01:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0099.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 6 16:01:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 6 16:01:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0099.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 6 16:01:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0099.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Mon Feb 6 16:01:22 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 6 16:01:22 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 6 16:01:22 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Mon Feb 6 16:01:22 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0099.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 6 16:01:23 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 6 16:01:23 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Feb 6 16:01:23 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 6 16:01:23 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Feb 6 16:01:23 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Mon Feb 6 16:01:23 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 6 16:01:23 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 6 16:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 6 16:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 6 16:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 6 16:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 6 16:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 6 20:01:20 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 6 20:01:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0100.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 6 20:01:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 6 20:01:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0100.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 6 20:01:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0100.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Mon Feb 6 20:01:20 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 6 20:01:20 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 6 20:01:20 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Mon Feb 6 20:01:20 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0100.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 6 20:01:20 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 6 20:01:20 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Feb 6 20:01:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 6 20:01:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Feb 6 20:01:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Mon Feb 6 20:01:20 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 6 20:01:20 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 6 20:01:20 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 6 20:01:20 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 6 20:01:20 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 6 20:01:20 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 6 20:01:20 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 7 08:27:35 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 7 08:27:48 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0101.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 7 08:27:48 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 7 08:27:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0101.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 7 08:27:50 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0101.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Tue Feb 7 08:27:50 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 7 08:27:50 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 7 08:27:50 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Tue Feb 7 08:27:51 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0101.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 7 08:27:51 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 7 08:27:51 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Feb 7 08:27:51 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 7 08:27:51 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Feb 7 08:27:51 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Tue Feb 7 08:27:51 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 7 08:27:51 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 7 08:27:51 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 7 08:27:51 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 7 08:27:51 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 7 08:27:51 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 7 08:27:52 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 7 12:03:51 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 7 12:03:52 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0102.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 7 12:03:52 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 7 12:03:52 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0102.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 7 12:03:53 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0102.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Tue Feb 7 12:03:53 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 7 12:03:53 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 7 12:03:53 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Tue Feb 7 12:03:53 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0102.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 7 12:03:53 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 7 12:03:53 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Feb 7 12:03:53 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 7 12:03:53 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Feb 7 12:03:53 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Tue Feb 7 12:03:53 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 7 12:03:53 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 7 12:03:53 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 7 12:03:54 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 7 12:03:54 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 7 12:03:54 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 7 12:03:54 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 7 16:01:29 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 7 16:01:29 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0103.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 7 16:01:29 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 7 16:01:29 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0103.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 7 16:01:29 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0103.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Tue Feb 7 16:01:29 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 7 16:01:29 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 7 16:01:29 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Tue Feb 7 16:01:29 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0103.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 7 16:01:29 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 7 16:01:29 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Feb 7 16:01:29 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 7 16:01:29 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Feb 7 16:01:29 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Tue Feb 7 16:01:29 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 7 16:01:30 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 7 16:01:30 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 7 16:01:30 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 7 16:01:30 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 7 16:01:30 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 7 16:01:30 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 7 20:01:22 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 7 20:01:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0104.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 7 20:01:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 7 20:01:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0104.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 7 20:01:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0104.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Tue Feb 7 20:01:22 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 7 20:01:23 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 7 20:01:23 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Tue Feb 7 20:01:23 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0104.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 7 20:01:23 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 7 20:01:23 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Feb 7 20:01:23 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 7 20:01:23 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Feb 7 20:01:23 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Tue Feb 7 20:01:23 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 7 20:01:23 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 7 20:01:24 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 7 20:01:24 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 7 20:01:24 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 7 20:01:24 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 7 20:01:24 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 8 08:26:41 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 8 08:26:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0105.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 8 08:26:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 8 08:26:55 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0105.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 8 08:26:55 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0105.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Wed Feb 8 08:26:55 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 8 08:26:56 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 8 08:26:56 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Wed Feb 8 08:26:56 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0105.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 8 08:26:56 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 8 08:26:56 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 8 08:26:56 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 8 08:26:56 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 8 08:26:56 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Wed Feb 8 08:26:57 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 8 08:26:57 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 8 08:26:59 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 8 08:26:59 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 8 08:26:59 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 8 08:26:59 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 8 08:26:59 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 8 12:04:04 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 8 12:04:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0106.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 8 12:04:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 8 12:04:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0106.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 8 12:04:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0106.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Wed Feb 8 12:04:06 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 8 12:04:06 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 8 12:04:06 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Wed Feb 8 12:04:06 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0106.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 8 12:04:06 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 8 12:04:06 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 8 12:04:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 8 12:04:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 8 12:04:06 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Wed Feb 8 12:04:06 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 8 12:04:06 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 8 12:04:06 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 8 12:04:07 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 8 12:04:07 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 8 12:04:07 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 8 12:04:07 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 8 16:01:34 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 8 16:01:34 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0107.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 8 16:01:34 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 8 16:01:34 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0107.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 8 16:01:34 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0107.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Wed Feb 8 16:01:34 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 8 16:01:34 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 8 16:01:34 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Wed Feb 8 16:01:34 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0107.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 8 16:01:34 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 8 16:01:34 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 8 16:01:34 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 8 16:01:34 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 8 16:01:34 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Wed Feb 8 16:01:34 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 8 16:01:34 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 8 16:01:34 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 8 16:01:34 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 8 16:01:34 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 8 16:01:34 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 8 16:01:34 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 8 20:01:22 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 8 20:01:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0108.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 8 20:01:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 8 20:01:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0108.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 8 20:01:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0108.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Wed Feb 8 20:01:22 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 8 20:01:22 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 8 20:01:22 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Wed Feb 8 20:01:22 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0108.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 8 20:01:22 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 8 20:01:22 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 8 20:01:23 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 8 20:01:23 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 8 20:01:23 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Wed Feb 8 20:01:23 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 8 20:01:23 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 8 20:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 8 20:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 8 20:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 8 20:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 8 20:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 9 08:10:28 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 9 08:10:29 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0109.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 9 08:10:30 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 9 08:10:30 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0109.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 9 08:10:31 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0109.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Thu Feb 9 08:10:31 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 9 08:10:31 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 9 08:10:31 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Thu Feb 9 08:10:31 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0109.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 9 08:10:31 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 9 08:10:31 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Feb 9 08:10:31 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 9 08:10:31 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Feb 9 08:10:31 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Thu Feb 9 08:10:31 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 9 08:10:31 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 9 08:10:31 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 9 08:10:31 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 9 08:10:31 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 9 08:10:31 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 9 08:10:31 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 9 12:03:48 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 9 12:03:50 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0110.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 9 12:03:50 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 9 12:03:51 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0110.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 9 12:03:51 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0110.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Thu Feb 9 12:03:51 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 9 12:03:51 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 9 12:03:51 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Thu Feb 9 12:03:51 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0110.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 9 12:03:51 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 9 12:03:51 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Feb 9 12:03:51 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 9 12:03:51 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Feb 9 12:03:51 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Thu Feb 9 12:03:51 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 9 12:03:51 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 9 12:03:51 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 9 12:03:51 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 9 12:03:51 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 9 12:03:51 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 9 12:03:51 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 9 16:01:34 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 9 16:01:34 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0111.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 9 16:01:35 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 9 16:01:35 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0111.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 9 16:01:35 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0111.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Thu Feb 9 16:01:35 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 9 16:01:35 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 9 16:01:35 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Thu Feb 9 16:01:35 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0111.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 9 16:01:35 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 9 16:01:35 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Feb 9 16:01:35 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 9 16:01:35 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Feb 9 16:01:35 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Thu Feb 9 16:01:35 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 9 16:01:35 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 9 16:01:35 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 9 16:01:35 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 9 16:01:35 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 9 16:01:35 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 9 16:01:35 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 9 20:01:31 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 9 20:01:31 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0112.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 9 20:01:31 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 9 20:01:31 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0112.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 9 20:01:31 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0112.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Thu Feb 9 20:01:31 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 9 20:01:31 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 9 20:01:31 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Thu Feb 9 20:01:31 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0112.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 9 20:01:31 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 9 20:01:31 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Feb 9 20:01:31 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 9 20:01:31 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Feb 9 20:01:31 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Thu Feb 9 20:01:31 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 9 20:01:31 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 9 20:01:31 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 9 20:01:31 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 9 20:01:31 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 9 20:01:31 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 9 20:01:31 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 10 08:26:14 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 10 08:26:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0113.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 10 08:26:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 10 08:26:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0113.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 10 08:26:28 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0113.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Fri Feb 10 08:26:28 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 10 08:26:29 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 10 08:26:29 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Fri Feb 10 08:26:29 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0113.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 10 08:26:29 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 10 08:26:29 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Feb 10 08:26:29 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 10 08:26:29 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Feb 10 08:26:30 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Fri Feb 10 08:26:30 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 10 08:26:30 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 10 08:26:30 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 10 08:26:30 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 10 08:26:30 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 10 08:26:30 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 10 08:26:30 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 10 12:04:16 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 10 12:04:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0114.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 10 12:04:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 10 12:04:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0114.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 10 12:04:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0114.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Fri Feb 10 12:04:21 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 10 12:04:21 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 10 12:04:22 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Fri Feb 10 12:04:22 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0114.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 10 12:04:22 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 10 12:04:22 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Feb 10 12:04:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 10 12:04:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Feb 10 12:04:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Fri Feb 10 12:04:22 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 10 12:04:22 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 10 12:04:22 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 10 12:04:22 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 10 12:04:22 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 10 12:04:22 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 10 12:04:22 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 10 16:01:28 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 10 16:01:28 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0115.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 10 16:01:28 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 10 16:01:28 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0115.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 10 16:01:28 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0115.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Fri Feb 10 16:01:28 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 10 16:01:28 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 10 16:01:28 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Fri Feb 10 16:01:28 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0115.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 10 16:01:28 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 10 16:01:28 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Feb 10 16:01:28 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 10 16:01:28 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Feb 10 16:01:28 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Fri Feb 10 16:01:28 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 10 16:01:28 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 10 16:01:28 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 10 16:01:28 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 10 16:01:28 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 10 16:01:28 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 10 16:01:28 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 10 20:01:25 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 10 20:01:26 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0116.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 10 20:01:26 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 10 20:01:26 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0116.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Feb 10 20:01:26 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0116.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Fri Feb 10 20:01:26 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 10 20:01:26 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 10 20:01:26 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Fri Feb 10 20:01:26 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0116.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 10 20:01:26 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 10 20:01:26 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Feb 10 20:01:26 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 10 20:01:26 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Feb 10 20:01:26 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Fri Feb 10 20:01:26 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 10 20:01:26 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 10 20:01:26 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Feb 10 20:01:26 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Feb 10 20:01:26 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 10 20:01:26 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Feb 10 20:01:26 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 11 08:14:13 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 11 08:14:17 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0117.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 11 08:14:17 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 11 08:14:17 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0117.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 11 08:14:18 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0117.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sat Feb 11 08:14:18 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 11 08:14:18 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 11 08:14:18 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sat Feb 11 08:14:18 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0117.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 11 08:14:18 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 11 08:14:18 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Feb 11 08:14:18 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 11 08:14:19 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Feb 11 08:14:19 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sat Feb 11 08:14:19 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 11 08:14:19 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 11 08:14:19 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 11 08:14:19 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 11 08:14:19 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 11 08:14:19 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 11 08:14:19 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 11 12:03:13 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 11 12:03:15 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0118.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 11 12:03:15 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 11 12:03:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0118.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 11 12:03:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0118.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sat Feb 11 12:03:16 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 11 12:03:16 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 11 12:03:16 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sat Feb 11 12:03:16 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0118.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 11 12:03:16 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 11 12:03:16 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Feb 11 12:03:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 11 12:03:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Feb 11 12:03:16 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sat Feb 11 12:03:16 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 11 12:03:16 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 11 12:03:16 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 11 12:03:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 11 12:03:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 11 12:03:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 11 12:03:16 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 11 16:01:22 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 11 16:01:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0119.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 11 16:01:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 11 16:01:23 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0119.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 11 16:01:23 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0119.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sat Feb 11 16:01:23 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 11 16:01:23 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 11 16:01:23 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sat Feb 11 16:01:23 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0119.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 11 16:01:23 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 11 16:01:23 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Feb 11 16:01:23 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 11 16:01:23 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Feb 11 16:01:23 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sat Feb 11 16:01:23 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 11 16:01:23 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 11 16:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 11 16:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 11 16:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 11 16:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 11 16:01:23 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 11 20:01:14 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 11 20:01:14 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0120.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 11 20:01:14 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 11 20:01:14 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0120.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sat Feb 11 20:01:14 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0120.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sat Feb 11 20:01:14 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 11 20:01:14 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 11 20:01:14 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sat Feb 11 20:01:14 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0120.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 11 20:01:14 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 11 20:01:14 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Feb 11 20:01:14 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 11 20:01:14 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sat Feb 11 20:01:14 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sat Feb 11 20:01:14 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 11 20:01:14 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 11 20:01:14 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sat Feb 11 20:01:14 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Feb 11 20:01:14 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 11 20:01:14 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sat Feb 11 20:01:14 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 12 08:10:46 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 12 08:10:48 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0121.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 12 08:10:48 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 12 08:10:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0121.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 12 08:10:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0121.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sun Feb 12 08:10:49 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 12 08:10:49 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 12 08:10:49 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sun Feb 12 08:10:49 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0121.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 12 08:10:49 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 12 08:10:49 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Feb 12 08:10:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 12 08:10:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Feb 12 08:10:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sun Feb 12 08:10:49 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 12 08:10:49 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 12 08:10:49 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 12 08:10:49 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 12 08:10:49 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 12 08:10:49 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 12 08:10:49 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 12 12:03:19 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 12 12:03:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0122.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 12 12:03:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 12 12:03:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0122.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 12 12:03:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0122.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sun Feb 12 12:03:21 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 12 12:03:21 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 12 12:03:21 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sun Feb 12 12:03:21 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0122.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 12 12:03:21 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 12 12:03:21 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Feb 12 12:03:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 12 12:03:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Feb 12 12:03:21 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sun Feb 12 12:03:21 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 12 12:03:21 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 12 12:03:21 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 12 12:03:21 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 12 12:03:21 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 12 12:03:21 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 12 12:03:21 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 12 16:01:27 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 12 16:01:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0123.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 12 16:01:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 12 16:01:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0123.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 12 16:01:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0123.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sun Feb 12 16:01:27 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 12 16:01:27 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 12 16:01:27 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sun Feb 12 16:01:27 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0123.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 12 16:01:27 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 12 16:01:27 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Feb 12 16:01:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 12 16:01:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Feb 12 16:01:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sun Feb 12 16:01:27 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 12 16:01:27 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 12 16:01:27 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 12 16:01:27 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 12 16:01:27 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 12 16:01:27 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 12 16:01:27 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 12 20:01:19 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 12 20:01:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0124.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 12 20:01:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 12 20:01:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0124.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Sun Feb 12 20:01:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0124.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Sun Feb 12 20:01:20 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 12 20:01:20 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 12 20:01:20 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Sun Feb 12 20:01:20 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0124.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 12 20:01:20 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 12 20:01:20 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Feb 12 20:01:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 12 20:01:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Sun Feb 12 20:01:20 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Sun Feb 12 20:01:20 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 12 20:01:20 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 12 20:01:20 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Sun Feb 12 20:01:20 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Sun Feb 12 20:01:20 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 12 20:01:20 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Sun Feb 12 20:01:20 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 13 08:19:37 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 13 08:19:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0125.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 13 08:19:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 13 08:19:51 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0125.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 13 08:19:51 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0125.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Mon Feb 13 08:19:51 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 13 08:19:51 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 13 08:19:51 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Mon Feb 13 08:19:54 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0125.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 13 08:19:54 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 13 08:19:54 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Feb 13 08:19:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 13 08:19:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Feb 13 08:19:55 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Mon Feb 13 08:19:55 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 13 08:19:55 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 13 08:19:55 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 13 08:19:55 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 13 08:19:55 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 13 08:19:55 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 13 08:19:55 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 13 12:03:43 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 13 12:03:45 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0126.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 13 12:03:45 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 13 12:03:45 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0126.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 13 12:03:45 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0126.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Mon Feb 13 12:03:45 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 13 12:03:45 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 13 12:03:45 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Mon Feb 13 12:03:45 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0126.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 13 12:03:45 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 13 12:03:45 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Feb 13 12:03:45 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 13 12:03:45 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Feb 13 12:03:45 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Mon Feb 13 12:03:45 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 13 12:03:45 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 13 12:03:45 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 13 12:03:45 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 13 12:03:45 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 13 12:03:45 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 13 12:03:45 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 13 16:01:45 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 13 16:01:45 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0127.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 13 16:01:45 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 13 16:01:45 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0127.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 13 16:01:45 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0127.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Mon Feb 13 16:01:46 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 13 16:01:46 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 13 16:01:46 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Mon Feb 13 16:01:46 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0127.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 13 16:01:46 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 13 16:01:46 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Feb 13 16:01:46 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 13 16:01:46 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Feb 13 16:01:46 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Mon Feb 13 16:01:47 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 13 16:01:47 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 13 16:01:47 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 13 16:01:47 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 13 16:01:47 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 13 16:01:47 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 13 16:01:47 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 13 20:01:24 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 13 20:01:24 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0128.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 13 20:01:24 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 13 20:01:24 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0128.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Mon Feb 13 20:01:24 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0128.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Mon Feb 13 20:01:24 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 13 20:01:24 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 13 20:01:24 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Mon Feb 13 20:01:24 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0128.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 13 20:01:24 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 13 20:01:24 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Feb 13 20:01:24 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 13 20:01:24 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Mon Feb 13 20:01:24 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Mon Feb 13 20:01:24 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 13 20:01:24 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 13 20:01:24 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Mon Feb 13 20:01:24 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Feb 13 20:01:24 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 13 20:01:24 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Mon Feb 13 20:01:24 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 14 08:21:49 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 14 08:21:53 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0129.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 14 08:21:53 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 14 08:21:55 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0129.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 14 08:21:56 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0129.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Tue Feb 14 08:21:56 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 14 08:21:56 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 14 08:21:56 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Tue Feb 14 08:21:57 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0129.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 14 08:21:57 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 14 08:21:57 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Feb 14 08:21:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 14 08:21:57 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Feb 14 08:21:58 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Tue Feb 14 08:21:58 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 14 08:21:58 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 14 08:21:58 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 14 08:21:58 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 14 08:21:58 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 14 08:21:58 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 14 08:21:58 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 14 12:03:57 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 14 12:03:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0130.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 14 12:03:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 14 12:03:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0130.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 14 12:03:59 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0130.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Tue Feb 14 12:03:59 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 14 12:03:59 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 14 12:03:59 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Tue Feb 14 12:04:00 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0130.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 14 12:04:00 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 14 12:04:00 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Feb 14 12:04:00 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 14 12:04:00 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Feb 14 12:04:00 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Tue Feb 14 12:04:00 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 14 12:04:00 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 14 12:04:00 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 14 12:04:00 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 14 12:04:00 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 14 12:04:00 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 14 12:04:00 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 14 16:02:00 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 14 16:02:00 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0131.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 14 16:02:00 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 14 16:02:00 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0131.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 14 16:02:00 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0131.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Tue Feb 14 16:02:00 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 14 16:02:00 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 14 16:02:00 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Tue Feb 14 16:02:00 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0131.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 14 16:02:00 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 14 16:02:00 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Feb 14 16:02:00 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 14 16:02:00 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Feb 14 16:02:00 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Tue Feb 14 16:02:00 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 14 16:02:00 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 14 16:02:00 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 14 16:02:00 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 14 16:02:00 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 14 16:02:00 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 14 16:02:00 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 14 20:01:30 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 14 20:01:30 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0132.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 14 20:01:30 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 14 20:01:30 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0132.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Tue Feb 14 20:01:30 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0132.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Tue Feb 14 20:01:30 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 14 20:01:30 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 14 20:01:30 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Tue Feb 14 20:01:30 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0132.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 14 20:01:30 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 14 20:01:30 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Feb 14 20:01:30 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 14 20:01:30 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Tue Feb 14 20:01:30 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Tue Feb 14 20:01:30 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 14 20:01:30 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 14 20:01:30 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Tue Feb 14 20:01:30 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Tue Feb 14 20:01:30 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 14 20:01:30 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Tue Feb 14 20:01:30 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 08:33:35 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 15 08:33:47 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0133.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 08:33:48 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 15 08:33:49 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0133.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 15 08:33:51 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0133.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Wed Feb 15 08:33:52 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 08:33:52 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 08:33:53 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Wed Feb 15 08:33:55 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0133.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 08:33:55 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 08:33:55 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 15 08:33:56 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 08:33:56 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 15 08:33:56 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Wed Feb 15 08:33:56 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 08:33:57 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 15 08:33:57 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 08:33:57 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 08:33:57 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 15 08:34:00 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 15 08:34:00 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 12:06:14 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 15 12:06:15 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0134.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 12:06:15 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 15 12:06:17 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0134.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 15 12:06:17 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0134.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Wed Feb 15 12:06:17 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 12:06:17 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 12:06:17 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Wed Feb 15 12:06:17 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0134.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 12:06:17 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 12:06:17 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 15 12:06:17 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 12:06:17 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 15 12:06:17 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Wed Feb 15 12:06:17 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 12:06:18 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 15 12:06:18 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 12:06:18 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 12:06:18 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 15 12:06:18 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 15 12:06:18 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 16:01:52 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 15 16:01:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0135.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 16:01:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 15 16:01:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0135.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 15 16:01:54 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0135.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Wed Feb 15 16:01:55 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 16:01:55 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 16:01:55 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Wed Feb 15 16:01:55 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0135.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 16:01:55 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 16:01:55 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 15 16:01:55 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 16:01:55 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 15 16:01:55 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Wed Feb 15 16:01:55 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 16:01:55 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 15 16:01:55 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 16:01:55 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 16:01:55 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 15 16:01:55 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 15 16:01:55 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 19:28:32 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 15 19:28:32 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0136.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 19:28:32 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 15 19:28:32 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0136.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 15 19:28:32 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0136.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Wed Feb 15 19:28:32 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 19:28:32 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 19:28:32 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Wed Feb 15 19:28:32 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0136.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 19:28:32 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 19:28:32 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 15 19:28:32 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 19:28:32 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 15 19:28:32 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Wed Feb 15 19:28:32 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 19:28:32 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 15 19:28:32 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 19:28:32 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 19:28:33 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 15 19:28:33 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 15 19:28:33 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 20:15:32 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 15 20:15:39 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0137.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 20:15:39 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 15 20:15:41 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0137.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Wed Feb 15 20:15:43 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0137.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Wed Feb 15 20:15:43 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 20:15:43 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 20:15:43 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Wed Feb 15 20:15:44 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0137.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 20:15:44 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 20:15:44 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 15 20:15:44 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 20:15:44 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Wed Feb 15 20:15:44 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Wed Feb 15 20:15:44 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 20:15:44 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 15 20:15:44 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Wed Feb 15 20:15:44 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Feb 15 20:15:44 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 15 20:15:44 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Wed Feb 15 20:15:44 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 16 08:50:39 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 16 08:50:47 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0138.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 16 08:50:47 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 16 08:50:48 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0138.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Thu Feb 16 08:50:48 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0138.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Thu Feb 16 08:50:48 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 16 08:50:48 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 16 08:50:48 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Thu Feb 16 08:50:51 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0138.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 16 08:50:51 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 16 08:50:51 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Feb 16 08:50:51 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 16 08:50:51 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Thu Feb 16 08:50:52 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Thu Feb 16 08:50:56 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 16 08:50:56 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 16 08:50:56 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Thu Feb 16 08:50:56 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Feb 16 08:50:56 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 16 08:50:56 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Thu Feb 16 08:50:56 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From mal at egenix.com Thu Oct 6 12:25:03 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Mar 31 16:34:16 2006 Subject: [egenix-users] mxODBC Zope DA and unixODBC Message-ID: <4345098B.5020501@egenix.com> Hello, I thought this might be interesting to some of you using our mxODBC Zope DA product with Zope or Plone: When using mxODBC Zope DA with the unixODBC ODBC manager providing the connection to the ODBC driver, Zope appears to hang whenever a long running query is initiated on one of the Zope connections. This is due to the unixODBC manager applying a very restrictive thread isolation protection which basically serializes all requests to the drivers on a per process scope. For references, have a look at these links: http://www.unixodbc.org/odbcinst.html http://archives.postgresql.org/pgsql-odbc/2004-03/msg00060.php These are the available unixODBC Thread Levels (taken from the __handle.c file of unixODBC): * Level 0 - Only the DM internal structures are protected * the driver is assumed to take care of it's self * * Level 1 - The driver is protected down to the statement level * each statement will be protected, and the same for the connect * level for connect functions, note that descriptors are considered * equal to statements when it comes to thread protection. * * Level 2 - The driver is protected at the connection level. only * one thread can be in a particular driver at one time * * Level 3 - The driver is protected at the env level, only one thing * at a time. * * By default the driver open connections with a lock level of 3, * this can be changed by adding the line * * Threading = N * * to the driver entry in odbcinst.ini, where N is the locking level * (0-3) Fortunately, the fix is easy: just add the line Threading = 0 to the section in odbcinst.ini for the driver you are using, e.g. [PostgreSQL] Description = PostgreSQL driver for Linux & Win32 Driver = /usr/local/lib/libodbcpsql.so Setup = /usr/local/lib/libodbcpsqlS.so Threading = 0 Note that "Threading = 0" is normally only allowed for ODBC drivers which are fully multi-threaded, however, since the mxODBC Zope DA already provides the necessary thread protection at the connection level, you can get some added performance by disabling the additional protection in the unixODBC manager. The iODBC manager does not seem to have this problem. So this is a second alternative to solve the problem. Best Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 06 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:06:58 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Mar 31 16:34:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 Message-ID: <200510101406.48902.edwardam@interlix.com> A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 (version 1.0.8). Whenever the zope server gets restarted we get the following error when trying to access the mxODBC connection in the ZMI: Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the error log. If the error persists please contact the site maintainer. Thank you for your patience. Any ideas? FYI: This works fine in Zope 2.7.6 with the Zope 2.7 version. -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/a5353505/attachment-0139.bin From charlie at egenix.com Mon Oct 10 20:12:12 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Mar 31 16:34:22 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101406.48902.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> Message-ID: <20051010211213.3243.4@Zeta.1128977473.fake> On 10.10.05 at 19:06:45 [+0000], Edward Muller wrote: > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on Zope > 2.8.1 (version 1.0.8). > > Whenever the zope server gets restarted we get the following error when > trying > to access the mxODBC connection in the ZMI: > > Site Error > > An error was encountered while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' Yes, this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix which is valid for all platforms. http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py2.3-Hotfix-2005-08-16.zip We will soon be releasing a version 1.0.9 which solves this problem and will announce it on this list and the main Zope list. Sincerely Charlie Clark -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From edwardam at interlix.com Mon Oct 10 20:26:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Mar 31 16:34:24 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <20051010211213.3243.4@Zeta.1128977473.fake> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> Message-ID: <200510101426.27384.edwardam@interlix.com> That doesn't seem to fix the problem. On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > wrote: > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > Zope 2.8.1 (version 1.0.8). > > > > Whenever the zope server gets restarted we get the following error when > > trying > > to access the mxODBC connection in the ZMI: > > > > Site Error > > > > An error was encountered while publishing this resource. > > > > Error Type: AttributeError > > Error Value: 'NoneType' object has no attribute 'get' > > Yes, > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > which is valid for all platforms. > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease-py >2.3-Hotfix-2005-08-16.zip > > We will soon be releasing a version 1.0.9 which solves this problem and > will announce it on this list and the main Zope list. > > Sincerely > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/147d78e6/attachment-0139.bin From edwardam at interlix.com Mon Oct 10 20:30:37 2005 From: edwardam at interlix.com (Edward Muller) Date: Fri Mar 31 16:34:24 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Python 2.3 UCS2 on Zope 2.8.1 In-Reply-To: <200510101426.27384.edwardam@interlix.com> References: <200510101406.48902.edwardam@interlix.com> <20051010211213.3243.4@Zeta.1128977473.fake> <200510101426.27384.edwardam@interlix.com> Message-ID: <200510101430.29162.edwardam@interlix.com> Wait. I lied. It does. I just unzipped it in the directory it should have been in and it was put in /Products/.... Anyway. Thx. On Monday 10 October 2005 02:26 pm, Edward Muller wrote: > That doesn't seem to fix the problem. > > On Monday 10 October 2005 04:12 pm, Charlie Clark wrote: > > On 10.10.05 at 19:06:45 [+0000], Edward Muller > > > > wrote: > > > A customer of ours is using the mxODBC Zope DA for Python 2.3 UCS2 on > > > Zope 2.8.1 (version 1.0.8). > > > > > > Whenever the zope server gets restarted we get the following error when > > > trying > > > to access the mxODBC connection in the ZMI: > > > > > > Site Error > > > > > > An error was encountered while publishing this resource. > > > > > > Error Type: AttributeError > > > Error Value: 'NoneType' object has no attribute 'get' > > > > Yes, > > > > this is a known problem with 1.0.8 and Zope 2.8. Please use our hotfix > > which is valid for all platforms. > > > > http://www.egenix.com/files/python/egenix-mxodbc-zopeda-1.0.9-prerelease- > >py 2.3-Hotfix-2005-08-16.zip > > > > We will soon be releasing a version 1.0.9 which solves this problem and > > will announce it on this list and the main Zope list. > > > > Sincerely > > > > Charlie Clark -- Edward Muller - Interlix edwardam@interlix.com 417-862-0573 PGP Key: http://interlix.com/Members/edwardam/pgpkeys -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20051010/772fa0eb/attachment-0139.bin From erich.birrer at birrer-edv.ch Mon Oct 17 10:42:34 2005 From: erich.birrer at birrer-edv.ch (Erich Birrer-Uster) Date: Fri Mar 31 16:34:24 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <43135D3C.2080800@egenix.com> Message-ID: <000001c5d2ee$56f603e0$0300000a@NB1> Dear Mr. Lemburg Thank you for your reply. The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. - is a release where HY000 is a OperationalError already available? - can you provide a patch that does this? - are there any other solutions (like periodically reconnect with a script) possible? Sincerely yours Erich Birrer-Uster Birrer EDV-Beratung Strategie > Organisation > Betrieb Oberd?rntnerstrasse 5a 8635 D?rnten 055 240 44 12 erich.birrer@birrer-edv.ch www.birrer-edv.ch -----Urspr?ngliche Nachricht----- Von: M.-A. Lemburg [mailto:mal@egenix.com] Gesendet: Montag, 29. August 2005 21:09 An: Erich Birrer-Uster Cc: egenix-users@lists.egenix.com Betreff: Re: [egenix-users] ProgrammingError [egenix-users ist eine englischsprachige Liste, daher die Anwort in Englisch] > Ab und zu (aber leider immer wieder) tritt bei einer Anwendung folgender Fehler auf: > > Site Error > An error was encountered while publishing this resource. > mx.ODBC.Error.ProgrammingError > Sorry, a site error occurred. > Traceback (innermost last): > ? Module ZPublisher.Publish, line 163, in publish_module_standard > ? Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish > ? Module ZPublisher.Publish, line 108, in publish > ? Module Zope.App.startup, line 226, in abort > ? Module ZODB.Transaction, line 134, in abort > ? Module Shared.DC.ZRDB.TM, line 63, in abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 1064, in _abort > ? Module Products.mxODBCZopeDA.ZopeDA, line 939, in errorhandler > ProgrammingError: ('HY000', 9114, '[Pervasive][ODBC Client Interface][Client LNA]Your connection to the server is no longer working. > To continue, disconnect from the data source and re-connect again. Contact your system administrator if you still need assistance.', > 1094) We have had similar reports from users with other driver/database combinations. Unfortunately, there's nothing much we can do about it since these errors are usually related to network or timeout problems with the ODBC driver and database. In the next release, we'll map the HY000 error to an OperationalError which will then cause the Zope DA to try an automatic reconnect. ________________________________________ > Troubleshooting Suggestions > ? The URL may be incorrect. > ? The parameters passed to this resource may be incorrect. > ? A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to error log. > If the error persists please contact the site maintainer. Thank you for your patience. > > > Meine Installation sieht wie folgt aus: > > Zope Version (unreleased version, python 2.3.3, win32) > Python Version 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] > System Platform win32 > SOFTWARE_HOME C:\Programme\Plone 2\Zope\lib\python > ZOPE_HOME C:\Programme\Plone 2\Zope > INSTANCE_HOME C:\Programme\Plone 2\Data > CLIENT_HOME C:\Programme\Plone 2\Data\var > Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) ZServer.HTTPServer.zhttp_server (Port: 80) > > Connection Id w-e3000 > Connection Title e3000-DB > Database Connection Source DSN=webudc01 > ODBC Manager/Driver Platform Default > Connection Information Connected database: Pervasive.SQL, 7.94 > ODBC driver: W3ODBCCI.DLL, 7.82.197 > Database Timezone Local Time Zone > Connection Options > * Database Warnings are reported as Python exceptions. > * Connection uses transactions. > * Time columns are returned as DateTime values. > * Date/time columns are returned as Zope DateTime values. > * Short integers are fetched as short integers. > * NULL values are returned as None. > * Scale 0 floats are converted to integers. > * The first available result set is fetched in queries. > Connection Pool Pool size: 20 > Physical connections: 1 open > Connection State connected (since 2005/08/29 20:07:46.640 GMT+2) > mxODBC Zope DA 1.0.8 > > Wo beginne ich am Besten mit der Fehlersuche? > > Besten Dank f?r eure Tipps -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 29 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 17 12:17:46 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Mar 31 16:34:24 2006 Subject: AW: [egenix-users] ProgrammingError In-Reply-To: <000001c5d2ee$56f603e0$0300000a@NB1> References: <000001c5d2ee$56f603e0$0300000a@NB1> Message-ID: <43536C3A.1010001@egenix.com> Erich Birrer-Uster wrote: > Dear Mr. Lemburg > > Thank you for your reply. > The application is now in the productive state and the error is very bothering so I have to present a solution to the customer. > - is a release where HY000 is a OperationalError already available? > - can you provide a patch that does this? > - are there any other solutions (like periodically reconnect with a script) possible? We will be releasing version 1.0.9 of the Zope DA today, which includes the hotfix for Zope 2.8 and also the change that turns HY000 errors into OperationalErrors (so that the Zope DA tries to automatcially reconnect). Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Tue Oct 18 00:59:10 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Mar 31 16:34:24 2006 Subject: [egenix-users] ANN: eGenix mxODBC Zope Database Adapter 1.0.9 Message-ID: <43541EAE.5070609@egenix.com> ________________________________________________________________________ ANNOUNCEMENT EGENIX.COM mxODBC Zope Database Adapter Version 1.0.9 Usable with Zope and the Plone CMS. Available for Zope 2.3 through 2.8 on Windows, Linux, Mac OS X, Solaris and FreeBSD ________________________________________________________________________ INTRODUCTION The eGenix mxODBC Zope Database Adapter allows you to easily connect your Zope or Plone installation to just about any database backend on the market today, giving you the reliability of the commercially supported eGenix product mxODBC and the flexibility of the ODBC standard as middle-tier architecture. The mxODBC Zope Database Adapter is highly portable, just like Zope itself and provides a high performance interface to all your ODBC data sources, using a single well-supported interface on Windows, Linux, Mac OS X, Solaris and FreeBSD. This makes it ideal for deployment in ZEO Clusters and Zope hosting environments where stability and high performance are a top priority, establishing an excellent basis and scalable solution for your Plone CMS. ________________________________________________________________________ NEWS The new version includes a number of enhancements which make the mxODBC Zope Database Adapter even more robust and reliable. The adapter includes a new, more careful connection pool management and options to adjust the result set size in a more flexible way. We are very pleased to also include a build for Mac OS X with this release. This will make connecting your Zope or Plone installation on Mac OS X to local or remote databases a breeze. Starting with this release, we will now ship binaries for both Unicode build variants of Zope: UCS2 and UCS4. Most recent Linux distributions come pre-built with the UCS4 variant, e.g. SuSE 9 and 10, RedHat 9. ________________________________________________________________________ UPGRADING If you have already bought mxODBC Zope DA 1.0.x licenses, you can use these license for the 1.0.9 version as well. There is no need to buy new licenses. The same is true for evaluation license users. ________________________________________________________________________ MORE INFORMATION For more information on the mxODBC Zope Database Adapter, licensing and download instructions, please visit our web-site: http://zope.egenix.com/ You can buy mxODBC Zope DA licenses online from the eGenix.com shop at: http://shop.egenix.com/ ________________________________________________________________________ Thank you, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 17 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From jacques.brunel at interieur.gouv.fr Tue Oct 18 11:26:28 2005 From: jacques.brunel at interieur.gouv.fr (BRUNEL Jacques SZSIC13-BEI) Date: Fri Mar 31 16:34:26 2006 Subject: [egenix-users] mxODBC Message-ID: Error encountered : Zope Error Zope has encountered an error while publishing this resource. Error Type: ImportError Error Value: No module named mx.ODBC.Windows while using the instruction : import mx.ODBC.Windows as odbc in a Python script (called by an External-Mehod) Notes : - this Python script runs normally when used under SPE or Edit, on a work-station Windows-XP - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed on a server Windows-NT4 Could someone help me ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20051018/2682cd1d/attachment-0139.htm From charlie at egenix.com Tue Oct 18 11:30:37 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Mar 31 16:34:26 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018103037.5475.5@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:26:28 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > Error encountered : > > Zope Error > > > Zope has encountered an error while publishing this resource. > > Error Type: ImportError > Error Value: No module named mx.ODBC.Windows > > > while using the instruction : > > import mx.ODBC.Windows as odbc > in a Python script (called by an External-Mehod) > > Notes : > - this Python script runs normally when used under SPE or Edit, on a > work-station Windows-XP > - Zope-2.6.4, Python-2.3, wxPython2.6 and mxODBC have been installed > on > a server Windows-NT4 > > Could someone help me ? You need to check the documentation for PythonScripts. Modules to be imported have to be declared explicitly. You should, however, have no need to have this statement in either a PythonScript or an ExternalMethod as you can always use the methods provided by the mxODBCZopeDA. What are you trying to do? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From charlie at egenix.com Tue Oct 18 13:03:20 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Mar 31 16:34:27 2006 Subject: [egenix-users] mxODBC In-Reply-To: References: Message-ID: <20051018120320.6090.8@gorgmenghast.1129619973.fake> On 2005-10-18 at 10:42:58 [+0200], BRUNEL Jacques SZSIC13-BEI wrote: > I'm trying to access an ORACLE database, the DSN of which is not > known (the Python script knows this DSN only by reading a file), so I > cannot use mxODBCZopeDA (which implies the declaration of this DSN in the > code). The DSNs are configurated by an other team. > I suppose there has been a problem while installing mxODBC or when > using mxODBC in a Python script called by Zope. Please keep this kind of communication on the list. You will not be able to do it a PythonScript due to Zope's security mechanism. You should have no problem doing everything you need in an ExternalMethod which is how you should tackle this. You might then be able to instantiate the mxODBCZopeDA with the retrieved DSN but I'm not sure if this is a satisfactory solution... Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 12:45:26 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Mar 31 16:34:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi, Problem with Zope DA on Zope 2.8.1 I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with the mxODBC Zope DA: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: 'NoneType' object has no attribute 'get' Anybody experienced the same problem? Thanks for any advice. From charlie at egenix.com Fri Oct 21 12:49:05 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Mar 31 16:34:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope In-Reply-To: References: Message-ID: <20051021114905.548.2@Zeta.1129887923.fake> On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem with > the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From tom.deprez at uz.kuleuven.ac.be Fri Oct 21 14:41:23 2005 From: tom.deprez at uz.kuleuven.ac.be (Tom Deprez) Date: Fri Mar 31 16:34:27 2006 Subject: [egenix-users] eGenix mxODBC Zope DA for Zope Message-ID: Hi Charlie, Where can I find this hotfix or the new version? The latest version seems to be from 2005-07-18 (and it is this one I used) Thanks, Tom. -----Oorspronkelijk bericht----- Van: Charlie Clark [mailto:charlie@egenix.com] Verzonden: vrijdag 21 oktober 2005 11:49 Aan: Tom Deprez CC: egenix-users@egenix.com Onderwerp: Re: [egenix-users] eGenix mxODBC Zope DA for Zope On 21.10.05 at 11:45:26 [+0200], Tom Deprez wrote: > Hi, > > Problem with Zope DA on Zope 2.8.1 > > I'm upgrading to Zope 2.8.1 (from 2.7.3), but get a strange problem > with the mxODBC Zope DA: > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: 'NoneType' object has no attribute 'get' > > Anybody experienced the same problem? > > Thanks for any advice. Hi Tom, this is a known issue please use either the hotfix or even better our new version. The cause was a minor change in the Zope architecture from 2.7 to 2.8 which involved removing a hack! Charlie From fuf at mageo.cz Fri Oct 21 18:08:53 2005 From: fuf at mageo.cz (Michal Vitecek) Date: Fri Mar 31 16:34:27 2006 Subject: [egenix-users] OperationalError 08S01 Message-ID: <20051021150853.GE1318@foof.i3.cz> hello everyone, i am using mxODBC version 2.1.0b2 directly connected to Solid (so no FreeTDS or unixODBC in between). now when my code tries to update a column with a long string (64252 characters) i get the following: OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] i'm positive the connection to the DB hasn't timed out, the column updated is defined as LONG VARCHAR (262144) (256kb). when the length of the string is decreased all goes well but with a string of length 64252 the above exception is raised all the time. is there any 64kb limit in mxODBC? thank you, Michal Vitecek -- fuf (fuf@mageo.cz) From mal at egenix.com Fri Oct 21 19:59:06 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Mar 31 16:34:27 2006 Subject: [egenix-users] OperationalError 08S01 In-Reply-To: <20051021150853.GE1318@foof.i3.cz> References: <20051021150853.GE1318@foof.i3.cz> Message-ID: <43591E5A.20706@egenix.com> Michal Vitecek wrote: > hello everyone, > > i am using mxODBC version 2.1.0b2 directly connected to Solid (so no > FreeTDS or unixODBC in between). now when my code tries to update a > column with a long string (64252 characters) i get the following: > > OperationalError ('08S01', 0, 'Communication link failure', 5835): [traceback] > > i'm positive the connection to the DB hasn't timed out, the column > updated is defined as LONG VARCHAR (262144) (256kb). when the length of > the string is decreased all goes well but with a string of length 64252 > the above exception is raised all the time. > > is there any 64kb limit in mxODBC? No, but this sounds a lot like a bug in the Solid ODBC driver or a missing setting in its configuration. Some database drivers limit the network paket size to 64kB and this will then cause errors like the one you are seeing. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 21 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 09:39:57 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Mar 31 16:34:27 2006 Subject: [egenix-users] mxODBC hanging Zope Message-ID: <1130758797.17087.4.camel@localhost.localdomain> Hi, I update my site last weekend but I have some problems with mxODBC. I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC 1.0.9-UCS-4. I could create connections, open it and test. But, after that, zope hangs. I cant even see the zope root content. Also, it doesnt log anything :-( Someone have a clue? Thanks in advance, Luis Flavio Rocha From charlie at egenix.com Mon Oct 31 12:48:58 2005 From: charlie at egenix.com (Charlie Clark) Date: Fri Mar 31 16:34:27 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <20051031124858.21174.10@Zeta.1130750468.fake> On 2005-10-31 at 12:39:57 [+0100], Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Without additional information this could be anything but we suspect it is unlikely to the mxODBCZopeDA. Have you checked your log settings? Does anything get written to your syslog? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From mal at egenix.com Mon Oct 31 14:14:24 2005 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Mar 31 16:34:27 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <1130758797.17087.4.camel@localhost.localdomain> References: <1130758797.17087.4.camel@localhost.localdomain> Message-ID: <436618B0.5040700@egenix.com> Luis Flavio Loreto da Rocha wrote: > Hi, > > I update my site last weekend but I have some problems with mxODBC. > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > 1.0.9-UCS-4. > > I could create connections, open it and test. But, after that, zope > hangs. I cant even see the zope root content. > > Also, it doesnt log anything :-( > > Someone have a clue? Perhaps this is what's happening on your machine: https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Oct 31 2005) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2005-10-17: Released mxODBC.Zope.DA 1.0.9 http://zope.egenix.com/ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: From luis.rocha at bsb.politec.com.br Mon Oct 31 15:02:23 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Mar 31 16:34:27 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778144.17087.13.camel@localhost.localdomain> Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html > From luis.rocha at bsb.politec.com.br Mon Oct 31 15:03:51 2005 From: luis.rocha at bsb.politec.com.br (Luis Flavio Loreto da Rocha) Date: Fri Mar 31 16:34:27 2006 Subject: [egenix-users] mxODBC hanging Zope In-Reply-To: <436618B0.5040700@egenix.com> References: <1130758797.17087.4.camel@localhost.localdomain> <436618B0.5040700@egenix.com> Message-ID: <1130778232.17087.16.camel@localhost.localdomain> Hi, its exactly that! Thank you very much! Luis Em Seg, 2005-10-31 ?s 14:14 +0100, M.-A. Lemburg escreveu: > Luis Flavio Loreto da Rocha wrote: > > Hi, > > > > I update my site last weekend but I have some problems with mxODBC. > > > > I'm using Debian sarge (i386), zope 2.8.3, plone 2.1.1 and mxODBC > > 1.0.9-UCS-4. > > > > I could create connections, open it and test. But, after that, zope > > hangs. I cant even see the zope root content. > > > > Also, it doesnt log anything :-( > > > > Someone have a clue? > > Perhaps this is what's happening on your machine: > > https://www.egenix.com/mailman-archives/egenix-users/2005-October/002237.html >