From info at egenix.com Tue Aug 4 23:03:36 2009 From: info at egenix.com (eGenix Team: M.-A. Lemburg) Date: Tue Aug 4 22:37:36 2009 Subject: [egenix-users] ANN: eGenix pyOpenSSL Distribution 0.9.0-0.9.8k now also in .egg format Message-ID: <4A789418.5000903@egenix.com> ________________________________________________________________________ ANNOUNCING eGenix.com pyOpenSSL Distribution Version 0.9.0-0.9.8k An easy to install and use repackaged distribution of the pyOpenSSL Python interface for OpenSSL - available on Windows, Mac OS X and Unix platforms This announcement is also available on our web-site for online reading: http://www.egenix.com/company/news/eGenix-pyOpenSSL-Distribution-0.9.0-0.9.8k-1-Update.html ________________________________________________________________________ INTRODUCTION The eGenix.com pyOpenSSL Distribution includes everything you need to get started with SSL in Python. It comes with an easy to use installer that includes the most recent OpenSSL library versions in pre-compiled form. pyOpenSSL is an open-source Python add-on (http://pyopenssl.sf.net/) that allows writing SSL aware networking applications as well as certificate management tools. OpenSSL is an open-source implementation of the SSL protocol (http://www.openssl.org/). For more information, please see the product page: http://www.egenix.com/products/python/pyOpenSSL/ ________________________________________________________________________ NEWS Due to popular demand, we've added .egg file versions for Windows and Linux to the available download options. This should make things easier for people using e.g. zc.buildout and other egg-file based installers. As always, binaries include both pyOpenSSL and the necessary OpenSSL libraries. ________________________________________________________________________ DOWNLOADS The download archives and instructions for installing the package can be found at: http://www.egenix.com/products/python/pyOpenSSL/ ________________________________________________________________________ UPGRADING Before installing this version of pyOpenSSL, please make sure that you uninstall any previously installed pyOpenSSL version. Otherwise, you could end up not using the included OpenSSL libs. _______________________________________________________________________ SUPPORT Commercial support for these packages is available from eGenix.com. Please see http://www.egenix.com/services/support/ for details about our support offerings. Enjoy, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 04 2009) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try our new mxODBC.Connect Python Database Interface for free ! :::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ From mobiledreamers at gmail.com Wed Aug 5 14:33:50 2009 From: mobiledreamers at gmail.com (mobiledreamers@gmail.com) Date: Wed Aug 5 22:34:00 2009 Subject: [egenix-users] error installing egenix mx-base please help out Message-ID: [mark@colo4 egenix-mx-base-3.1.2.linux-i686-py2.6_ucs4.prebuilt]$ sudo python setup.py install running install no build data file 'build/build-py2.5_ucs4.pck' found running build running mx_autoconf checking for availability of strptime() gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -D_GNU_SOURCE=1 -I/usr/local/include -I/usr/include -c _configtest.c -o _configtest.o gcc -pthread _configtest.o -L/usr/local/lib -L/usr/lib -o _configtest success! removing: _configtest.c _configtest.o _configtest checking compiler for bad static forward handling gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -D_GNU_SOURCE=1 -I/usr/include/python2.5 -I/usr/local/include -I/usr/include -c _configtest.c -o _configtest.o success! removing: _configtest.c _configtest.o macros to define: [('HAVE_STRPTIME', '1')] macros to undefine: [] running build_ext building extension "mx.DateTime.mxDateTime.mxDateTime" (required) checking for optional libraries gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -DHAVE_STRPTIME=1 -I/usr/include/python2.5 -I/usr/local/include -I/usr/include -c _configtest.c -o _configtest.o gcc -pthread _configtest.o -L/usr/lib -L/usr/local/lib -lm -o _configtest success! removing: _configtest.c _configtest.o _configtest found optional library 'm' -- defining HAVE_M_LIB building 'mx.DateTime.mxDateTime.mxDateTime' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -DUSE_FAST_GETCURRENTTIME -DHAVE_M_LIB=1 -DHAVE_STRPTIME=1 -Imx/DateTime/mxDateTime -I/usr/include/python2.5 -I/usr/local/include -I/usr/include -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.linux-i686-2.5_ucs4/mx-DateTime-mxDateTime-mxDateTime/mx/DateTime/mxDateTime/mxDateTime.o gcc: mx/DateTime/mxDateTime/mxDateTime.c: No such file or directory gcc: no input files error: command 'gcc' failed with exit status 1 [mark@colo4 egenix-mx-base-3.1.2.linux-i686-py2.6_ucs4.prebuilt]$ -- Bidegg worlds best auction site http://bidegg.com -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20090805/4649e417/attachment.htm From mobiledreamers at gmail.com Wed Aug 5 14:34:03 2009 From: mobiledreamers at gmail.com (mobiledreamers@gmail.com) Date: Wed Aug 5 22:34:07 2009 Subject: [egenix-users] Re: error installing egenix mx-base please help out In-Reply-To: References: Message-ID: [mark@colo4 egenix-mx-base-3.1.2.linux-i686-py2.6_ucs4.prebuilt]$ sudo python setup.py install running install no build data file 'build/build-py2.5_ucs4.pck' found running build running mx_autoconf checking for availability of strptime() gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -D_GNU_SOURCE=1 -I/usr/local/include -I/usr/include -c _configtest.c -o _configtest.o gcc -pthread _configtest.o -L/usr/local/lib -L/usr/lib -o _configtest success! removing: _configtest.c _configtest.o _configtest checking compiler for bad static forward handling gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -D_GNU_SOURCE=1 -I/usr/include/python2.5 -I/usr/local/include -I/usr/include -c _configtest.c -o _configtest.o success! removing: _configtest.c _configtest.o macros to define: [('HAVE_STRPTIME', '1')] macros to undefine: [] running build_ext building extension "mx.DateTime.mxDateTime.mxDateTime" (required) checking for optional libraries gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -DHAVE_STRPTIME=1 -I/usr/include/python2.5 -I/usr/local/include -I/usr/include -c _configtest.c -o _configtest.o gcc -pthread _configtest.o -L/usr/lib -L/usr/local/lib -lm -o _configtest success! removing: _configtest.c _configtest.o _configtest found optional library 'm' -- defining HAVE_M_LIB building 'mx.DateTime.mxDateTime.mxDateTime' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -DUSE_FAST_GETCURRENTTIME -DHAVE_M_LIB=1 -DHAVE_STRPTIME=1 -Imx/DateTime/mxDateTime -I/usr/include/python2.5 -I/usr/local/include -I/usr/include -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.linux-i686-2.5_ucs4/mx-DateTime-mxDateTime-mxDateTime/mx/DateTime/mxDateTime/mxDateTime.o gcc: mx/DateTime/mxDateTime/mxDateTime.c: No such file or directory gcc: no input files error: command 'gcc' failed with exit status 1 [mark@colo4 egenix-mx-base-3.1.2.linux-i686-py2.6_ucs4.prebuilt]$ -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20090805/5b59ecd4/attachment.htm From support at egenix.com Wed Aug 5 23:36:45 2009 From: support at egenix.com (eGenix Support: Charlie Clark) Date: Wed Aug 5 22:36:50 2009 Subject: [egenix-users] Re: error installing egenix mx-base please help out In-Reply-To: References: Message-ID: Am 05.08.2009, 22:33 Uhr, schrieb : > [mark@colo4 egenix-mx-base-3.1.2.linux-i686-py2.6_ucs4.prebuilt]$ sudo > python setup.py install You are having problems but you are trying to compile the files. Please follow the correct instructions for installing the pre-built binaries and if you require further assistance please register for the egenix-users mailing list. Yours 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 our new mxODBC.Connect Python Database Interface for free ! :::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ From mal at egenix.com Wed Aug 5 23:42:49 2009 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Aug 5 22:42:53 2009 Subject: [egenix-users] Re: error installing egenix mx-base please help out In-Reply-To: References: Message-ID: <4A79EEC9.6020601@egenix.com> mobiledreamers@gmail.com wrote: > [mark@colo4 egenix-mx-base-3.1.2.linux-i686-py2.6_ucs4.prebuilt]$ sudo > python setup.py install > running install > no build data file 'build/build-py2.5_ucs4.pck' found The system python is obviously a Python 2.5 version. Please download and use the Python 2.5 prebuilt archive of egenix-mx-base. Thanks, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 05 2009) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try our new mxODBC.Connect Python Database Interface for free ! :::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ From mobiledreamers at gmail.com Wed Aug 5 23:29:42 2009 From: mobiledreamers at gmail.com (mobiledreamers@gmail.com) Date: Thu Aug 6 07:29:48 2009 Subject: [egenix-users] Re: error installing egenix mx-base please help out In-Reply-To: <4A79EEC9.6020601@egenix.com> References: <4A79EEC9.6020601@egenix.com> Message-ID: once i got the windows installer it worked thanks On Wed, Aug 5, 2009 at 1:42 PM, M.-A. Lemburg wrote: > mobiledreamers@gmail.com wrote: > > [mark@colo4 egenix-mx-base-3.1.2.linux-i686-py2.6_ucs4.prebuilt]$ sudo > > python setup.py install > > running install > > no build data file 'build/build-py2.5_ucs4.pck' found > > The system python is obviously a Python 2.5 version. Please > download and use the Python 2.5 prebuilt archive of > egenix-mx-base. > > Thanks, > -- > Marc-Andre Lemburg > eGenix.com > > Professional Python Services directly from the Source (#1, Aug 05 2009) > >>> Python/Zope Consulting and Support ... http://www.egenix.com/ > >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ > >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ > ________________________________________________________________________ > > ::: Try our new mxODBC.Connect Python Database Interface for free ! :::: > > > eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 > D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg > Registered at Amtsgericht Duesseldorf: HRB 46611 > http://www.egenix.com/company/contact/ > -- Bidegg worlds best auction site http://bidegg.com -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20090805/27f3f531/attachment.htm From steve at onebrightspace.com Mon Aug 10 15:08:15 2009 From: steve at onebrightspace.com (Steven Coleman-Williams) Date: Mon Aug 10 15:08:37 2009 Subject: [egenix-users] error installing mx base Message-ID: <000901ca19bb$9f2b3c30$dd81b490$@com> I am trying to transport a system from a development server to production one, and need mx.DateTime installed to do so. When trying to install it I get the following output and errors. If anyone can shed some light on this for me I would be most thankful!! Can anyone please help and suggest why I am unable to install the package please. I have provided the command I?ve used and the output given. Command: python setup.py install Output: running install no build data file 'build/build-py2.4_ucs2.pck' found running build running mx_autoconf could not open ./pyconfig.h file checking for availability of strftime() gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -D_GNU_SOURCE=1 -I/usr/local/include -c _configtest.c -o _configtest.o gcc -pthread _configtest.o -L/usr/local/lib -L/usr/local/lib64 -o _configtest success! removing: _configtest.c _configtest.o _configtest checking for availability of strptime() gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -D_GNU_SOURCE=1 -I/usr/local/include -c _configtest.c -o _configtest.o gcc -pthread _configtest.o -L/usr/local/lib -L/usr/local/lib64 -o _configtest success! removing: _configtest.c _configtest.o _configtest checking for availability of timegm() gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -D_GNU_SOURCE=1 -I/usr/local/include -c _configtest.c -o _configtest.o gcc -pthread _configtest.o -L/usr/local/lib -L/usr/local/lib64 -o _configtest success! removing: _configtest.c _configtest.o _configtest checking compiler for bad static forward handling gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -D_GNU_SOURCE=1 -I/opt/Zope-2.10.6-final/Python-2.4.5/Include -I/usr/local/include -c _configtest.c -o _configtest.o In file included from _configtest.c:1: /opt/Zope-2.10.6-final/Python-2.4.5/Include/Python.h:8:22: error: pyconfig.h: No such file or directory In file included from /opt/Zope-2.10.6-final/Python-2.4.5/Include/Python.h:55, from _configtest.c:1: /opt/Zope-2.10.6-final/Python-2.4.5/Include/pyport.h:616:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." failure. removing: _configtest.c _configtest.o macros to define: [('HAVE_STRFTIME', '1'), ('HAVE_STRPTIME', '1'), ('HAVE_TIMEGM', '1'), ('BAD_STATIC_FORWARD', '1')] macros to undefine: [] running build_ext building extension "mx.DateTime.mxDateTime.mxDateTime" (required) checking for optional libraries gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_STRFTIME=1 -DHAVE_STRPTIME=1 -DHAVE_TIMEGM=1 -DBAD_STATIC_FORWARD=1 -I/opt/Zope-2.10.6-final/Python-2.4.5/Inc lude -I/opt/Zope-2.10.6-final/Python-2.4.5 -I/usr/local/include -c _configtest.c -o _configtest.o gcc -pthread _configtest.o -L/usr/local/lib -L/usr/local/lib64 -lm -o _configtest success! removing: _configtest.c _configtest.o _configtest found optional library 'm' -- defining HAVE_M_LIB building 'mx.DateTime.mxDateTime.mxDateTime' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DUSE_FAST_GETCURRENTTIME -DHAVE_M_LIB=1 -DHAVE_STRFTIME=1 -DHAVE_STRPTIME=1 -DHAVE_TIMEGM=1 -DBAD_STATIC_FORWARD=1 -Imx/DateTime/mxDateTime -I/opt/Zope-2.10.6-final/Python-2.4.5/Include -I/opt/Zope-2.10.6-final/Python-2.4.5 -I/usr/local/include -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.linux-x86_64-2. 4_ucs2/mx-DateTime-mxDateTime-mxDateTime/mxDateTime.o mx/DateTime/mxDateTime/mxDateTime.c:2502: error: static declaration of ?mxDateTime_Methods? follows non-static declaration mx/DateTime/mxDateTime/mxDateTime.c:229: error: previous declaration of ?mxDateTime_Methods? was here mx/DateTime/mxDateTime/mxDateTime.c:3373: error: static declaration of ?mxDateTime_Type? follows non-static declaration mx/DateTime/mxDateTime/mxDateTime.c:228: error: previous declaration of ?mxDateTime_Type? was here mx/DateTime/mxDateTime/mxDateTime.c:3575: error: static declaration of ?mxDateTimeDelta_FromDaysEx? follows non-static declaration mx/DateTime/mxDateTime/mxDateTime.c:236: error: previous declaration of ?mxDateTimeDelta_FromDaysEx? was here mx/DateTime/mxDateTime/mxDateTime.c:3593: error: static declaration of ?mxDateTimeDelta_FromSeconds? follows non-static declaration mx/DateTime/mxDateTime/mxDateTime.c:239: error: previous declaration of ?mxDateTimeDelta_FromSeconds? was here mx/DateTime/mxDateTime/mxDateTime.c:4453: error: static declaration of ?mxDateTimeDelta_Type? follows non-static declaration mx/DateTime/mxDateTime/mxDateTime.c:231: error: previous declaration of ?mxDateTimeDelta_Type? was here mx/DateTime/mxDateTime/mxDateTime.c:4482: error: static declaration of ?mxDateTimeDelta_Methods? follows non-static declaration mx/DateTime/mxDateTime/mxDateTime.c:232: error: previous declaration of ?mxDateTimeDelta_Methods? was here error: command 'gcc' failed with exit status 1 Steve Coleman-Williams E-mail: steve@onebrightspace.com Phone (work): (01970) 613438 Please do not print this e-mail unless absolutely necessary - SAVE ENERGY and PAPER --- non facias malum ut inde fiat bonum -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20090810/34357b4e/attachment.htm From mathias.gibbens at gmail.com Mon Aug 10 09:26:40 2009 From: mathias.gibbens at gmail.com (Mathias Gibbens) Date: Mon Aug 10 15:28:02 2009 Subject: [egenix-users] Products.mxODBCZopeDA.ZopeDA.ReplayTransaction question Message-ID: <1249910800.16448.14.camel@linux6521> Hi list, I have a long running program that is occasionally getting this error: ReplayTransaction: OperationalError on : ('HYT00', 2006, '[unixODBC][MySQL][ODBC 3.51 Driver][mysqld-5.0.22-standard]MySQL server has gone away', 6113) When I recall the method that connects to MySQL, it returns normally. I looked at the documentation for the ReplayTransaction exception: '5.2.2 Class "Products.mxODBCZopeDA.ZopeDA.ReplayTransaction" Replay the current transaction after having rolled back any changes. Raising this exception will cause Zope to retry the complete transaction. This can be useful in case a database connection was lost.' However, I'm not sure from the short description exactly what happens when the exception is thrown. Does A) Zope automatically reconnect to MySQL, and only raise this exception so I know that Zope had to reconnect to MySQL, or B) is this exception thrown so I know that I need to actually do something about the dropped connection? To boil it down, can I just catch this exception, and continue in my program knowing that the database has been successfully updated, or do I have to do something in addition to make sure the changes have been committed? (Just so it's out there, I can't increase the MySQL server timeout.) Thanks, Mathias Gibbens From charlie at egenix.com Mon Aug 10 16:38:45 2009 From: charlie at egenix.com (Charlie Clark) Date: Mon Aug 10 15:38:51 2009 Subject: [egenix-users] Products.mxODBCZopeDA.ZopeDA.ReplayTransaction question In-Reply-To: <1249910800.16448.14.camel@linux6521> References: <1249910800.16448.14.camel@linux6521> Message-ID: Am 10.08.2009, 15:26 Uhr, schrieb Mathias Gibbens : > > (Just so it's out there, I can't increase the MySQL server timeout.) I think this the problem. I've seen the same error with MySQL with different drivers. I think the default timeout is 12 hours. Unfortunately databases do not inform clients when they shut connections. Have you got "connect on demand" set? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try our new mxODBC.Connect Python Database Interface for free ! :::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ From mathias.gibbens at gmail.com Mon Aug 10 10:08:24 2009 From: mathias.gibbens at gmail.com (Mathias Gibbens) Date: Mon Aug 10 16:09:48 2009 Subject: [egenix-users] Products.mxODBCZopeDA.ZopeDA.ReplayTransaction question In-Reply-To: References: <1249910800.16448.14.camel@linux6521> Message-ID: <1249913304.16448.21.camel@linux6521> Charlie, Thanks for the suggestion. It was not, so I've tried enabling it, and will let you know if this resolves the problem. Thanks, Mathias Gibbens On Mon, 2009-08-10 at 15:38 +0200, Charlie Clark wrote: > Am 10.08.2009, 15:26 Uhr, schrieb Mathias Gibbens > : > > > > > (Just so it's out there, I can't increase the MySQL server timeout.) > > I think this the problem. I've seen the same error with MySQL with > different drivers. I think the default timeout is 12 hours. Unfortunately > databases do not inform clients when they shut connections. Have you got > "connect on demand" set? > > Charlie From mal at egenix.com Mon Aug 10 20:46:35 2009 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Aug 10 19:46:38 2009 Subject: [egenix-users] error installing mx base In-Reply-To: <000901ca19bb$9f2b3c30$dd81b490$@com> References: <000901ca19bb$9f2b3c30$dd81b490$@com> Message-ID: <4A805CFB.6090308@egenix.com> Steven Coleman-Williams wrote: > I am trying to transport a system from a development server to production > one, and need mx.DateTime installed to do so. When trying to install it I > get the following output and errors. If anyone can shed some light on this > for me I would be most thankful!! > > > > Can anyone please help and suggest why I am unable to install the package > please. I have provided the command I?ve used and the output given. > > > > Command: python setup.py install > > > > Output: > > running install > > no build data file 'build/build-py2.4_ucs2.pck' found If you downloaded a prebuilt archive, then please check whether the Python version you are using with Zope matches the archive you've downloaded. The above line should not print and the setup.py should not try to build anything if you are using the correct prebuilt archive. These combinations are possible for Python on Linux: * UCS2 vs. UCS4 * 32-bit vs. 64-bit If you're not using a prebuilt archive, please check your Python installation, since these lines suggests that something is wrong with it: > checking compiler for bad static forward handling > > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes > -fPIC -D_GNU_SOURCE=1 -I/opt/Zope-2.10.6-final/Python-2.4.5/Include > -I/usr/local/include -c _configtest.c -o _configtest.o > > In file included from _configtest.c:1: > > /opt/Zope-2.10.6-final/Python-2.4.5/Include/Python.h:8:22: error: > pyconfig.h: No such file or directory > > In file included from > /opt/Zope-2.10.6-final/Python-2.4.5/Include/Python.h:55, > > from _configtest.c:1: > > /opt/Zope-2.10.6-final/Python-2.4.5/Include/pyport.h:616:2: error: #error > "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." > > failure. > > removing: _configtest.c _configtest.o pyconfig.h should always be available. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 10 2009) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try our new mxODBC.Connect Python Database Interface for free ! :::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ From mal at egenix.com Mon Aug 10 20:54:08 2009 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Aug 10 19:54:11 2009 Subject: [egenix-users] Products.mxODBCZopeDA.ZopeDA.ReplayTransaction question In-Reply-To: <1249910800.16448.14.camel@linux6521> References: <1249910800.16448.14.camel@linux6521> Message-ID: <4A805EC0.9000908@egenix.com> Mathias Gibbens wrote: > Hi list, > > I have a long running program that is occasionally getting this error: > > ReplayTransaction: OperationalError on > 40041360/40041360 at 0x12544eac>: ('HYT00', 2006, > '[unixODBC][MySQL][ODBC 3.51 Driver][mysqld-5.0.22-standard]MySQL server > has gone away', 6113) > > When I recall the method that connects to MySQL, it returns normally. > I looked at the documentation for the ReplayTransaction exception: > > '5.2.2 Class "Products.mxODBCZopeDA.ZopeDA.ReplayTransaction" > Replay the current transaction after having rolled back any changes. > > Raising this exception will cause Zope to retry the complete > transaction. This can be useful in case a database connection was lost.' > > However, I'm not sure from the short description exactly what happens > when the exception is thrown. Does A) Zope automatically reconnect to > MySQL, and only raise this exception so I know that Zope had to > reconnect to MySQL, or B) is this exception thrown so I know that I need > to actually do something about the dropped connection? To boil it down, > can I just catch this exception, and continue in my program knowing that > the database has been successfully updated, or do I have to do something > in addition to make sure the changes have been committed? > > (Just so it's out there, I can't increase the MySQL server timeout.) If the Zope DA finds a broken connection, it will reconnect and then raise the above Zope exception in order to have the Zope transaction/request machinery replay the current transaction. Zope will allow for such replays to happen 2 or 3 times (IIRC) before it returns an error to the user. Since databases roll back the transaction on connection loss, this kind of setup will significantly increase the availability of the Zope system even during temporary database connection problems. If you wrap a Zope DA connection yourself, you have to reraise the exception, so that Zope can process it. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 10 2009) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try our new mxODBC.Connect Python Database Interface for free ! :::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ From RAFULMH at usmc-mccs.org Fri Aug 28 18:58:51 2009 From: RAFULMH at usmc-mccs.org (Raful CIV Mitchell H) Date: Fri Aug 28 23:59:20 2009 Subject: [egenix-users] eclipse unresovled import and print_resultset Message-ID: <8A18C67C0B5B9842BA221D0F1390B6B92913925882@hqw2k3svr108.windows.usmc-mccs.org> In Eclipse, I get an unresolved import using mx.ODBC.unixODBC. I also noticed that the install placed everything in /usr/local/lib64/site-packages instead of the system wide '/usr/lib64/python 2.6/site-packages'. Is there something I can do to configure the install directory in advance. While I have a result set and can loop through it, the print_result set returns and error which states that the global variable string in Helpers.py is not defined. ( I am querying against MS Sql Server 2000.) Thanks, Mitch -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20090828/6e4d4be5/attachment.htm From RAFULMH at usmc-mccs.org Sat Aug 29 00:08:25 2009 From: RAFULMH at usmc-mccs.org (Raful CIV Mitchell H) Date: Sat Aug 29 05:10:19 2009 Subject: [egenix-users] RE: eclipse unresovled import and print_resultset In-Reply-To: <8A18C67C0B5B9842BA221D0F1390B6B92913925882@hqw2k3svr108.windows.usmc-mccs.org> References: <8A18C67C0B5B9842BA221D0F1390B6B92913925882@hqw2k3svr108.windows.usmc-mccs.org> Message-ID: <8A18C67C0B5B9842BA221D0F1390B6B92913924453@hqw2k3svr108.windows.usmc-mccs.org> Ok, the unresolved import is peculiar to eclipse, Netbeans behavs much better. Still wondered about a change in install directory and sting not defined error. Mitch ________________________________________ From: egenix-users-bounces@egenix.com [egenix-users-bounces@egenix.com] On Behalf Of Raful CIV Mitchell H [RAFULMH@usmc-mccs.org] Sent: Friday, August 28, 2009 5:58 PM To: 'egenix-users@egenix.com' Subject: [egenix-users] eclipse unresovled import and print_resultset In Eclipse, I get an unresolved import using mx.ODBC.unixODBC. I also noticed that the install placed everything in /usr/local/lib64/site-packages instead of the system wide ?/usr/lib64/python 2.6/site-packages?. Is there something I can do to configure the install directory in advance. While I have a result set and can loop through it, the print_result set returns and error which states that the global variable string in Helpers.py is not defined. ( I am querying against MS Sql Server 2000.) Thanks, Mitch From charlie at egenix.com Sat Aug 29 13:01:15 2009 From: charlie at egenix.com (Charlie Clark) Date: Sat Aug 29 12:01:23 2009 Subject: [egenix-users] RE: eclipse unresovled import and print_resultset In-Reply-To: <8A18C67C0B5B9842BA221D0F1390B6B92913924453@hqw2k3svr108.windows.usmc-mccs.org> References: <8A18C67C0B5B9842BA221D0F1390B6B92913925882@hqw2k3svr108.windows.usmc-mccs.org> <8A18C67C0B5B9842BA221D0F1390B6B92913924453@hqw2k3svr108.windows.usmc-mccs.org> Message-ID: Am 29.08.2009, 05:08 Uhr, schrieb Raful CIV Mitchell H : > In Eclipse, I get an unresolved import using mx.ODBC.unixODBC. I also > noticed that the install placed everything in > /usr/local/lib64/site-packages instead of the system wide > ?/usr/lib64/python 2.6/site-packages?. Is there something I can do to > configure the install directory in advance. Both /usr/lib and /usr/local/lib (or /opt/local on some systems) are system-wide. The convention is that user installed packages go into /usr/local rather than straight /usr to avoid conflicts with system installs. Install directories can be configured but I'm slightly confused as to where your Python 2.6 is. What OS and distribution are you using? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try our new mxODBC.Connect Python Database Interface for free ! :::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ From mal at egenix.com Mon Aug 31 15:30:49 2009 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Aug 31 14:30:53 2009 Subject: [egenix-users] eclipse unresovled import and print_resultset In-Reply-To: <8A18C67C0B5B9842BA221D0F1390B6B92913925882@hqw2k3svr108.windows.usmc-mccs.org> References: <8A18C67C0B5B9842BA221D0F1390B6B92913925882@hqw2k3svr108.windows.usmc-mccs.org> Message-ID: <4A9BC279.4050408@egenix.com> Raful CIV Mitchell H wrote: > In Eclipse, I get an unresolved import using mx.ODBC.unixODBC. I also noticed that the install placed everything in /usr/local/lib64/site-packages instead of the system wide '/usr/lib64/python 2.6/site-packages'. Is there something I can do to configure the install directory in advance. On Linux, you typically only have one of the two popular ODBC managers iODBC and unixODBC installed. Consequently, mxODBC will only find one of them and raise an ImportError for the other. You only have an installation problem if both mx.ODBC.iODBC and mx.ODBC.unixODBC fail to import. Regarding the installation location defaults: you can change the location of the installation using the --prefix option of the "install" command: python setup.py install --prefix=/usr should install everything under the system Python installation path on your system. If you want to test this prior to running the real installation, you should use a temporary directory as target, e.g. python setup.py install --prefix=/tmp/usr > While I have a result set and can loop through it, the print_result set returns and error which states that the global variable string in Helpers.py is not defined. ( I am querying against MS Sql Server 2000.) This is a regression that was introduced in mxODBC 3.0.2 due to some refactoring we've done. It will be fixed in version 3.0.3 which is due to be released this week. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Aug 31 2009) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try our new mxODBC.Connect Python Database Interface for free ! :::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/