From info at egenix.com Tue Sep 1 22:10:31 2009 From: info at egenix.com (eGenix Team: M.-A. Lemburg) Date: Tue Sep 1 21:30:20 2009 Subject: [egenix-users] ANN: eGenix mxODBC - Python ODBC Database Interface 3.0.3 Message-ID: <4A9D71A7.2040908@egenix.com> ________________________________________________________________________ ANNOUNCING eGenix.com mxODBC - Python ODBC Database Interface Version 3.0.3 mxODBC is our commercially supported Python extension providing ODBC database connectivity to Python applications on Windows and Unix platforms This announcement is also available on our web-site for online reading: http://www.egenix.com/company/news/eGenix-mxODBC-3.0.3-GA.html ________________________________________________________________________ INTRODUCTION mxODBC provides an easy-to-use, high-performance, reliable and robust Python interface to ODBC compatible databases such as MS SQL Server, MS Access, Oracle Database, IBM DB2 and Informix , Sybase ASE and Sybase Anywhere, MySQL, PostgreSQL, SAP MaxDB and many more. The "eGenix mxODBC - Python ODBC Database Interface" product is a commercial extension to our open-source eGenix mx Base Distribution. * About Python (http://www.python.org/): Python is an object-oriented Open Source programming language which runs on all modern platforms. By integrating ease-of-use, clarity in coding, enterprise application connectivity and rapid application design, Python establishes an ideal programming platform for today's IT challenges. * About eGenix (http://www.egenix.com/): eGenix is a software project, consulting and product company focusing on expert services and professional quality products for companies, Python users and developers. ________________________________________________________________________ NEWS mxODBC 3.0.3 is a patch-level release and includes the following updates: * Python 2.3 - 2.6 support: mxODBC 3.0 is available for Python 2.3, 2.4, 2.5 and 2.6. We ship binaries for Windows, Linux, Mac OS X, AIX, Solaris, and offer custom porting services for most other platforms. * Enhanced support for using cursors as iterators: mxODBC cursor objects can now be used as iterators to iterate over result sets. While this was already possible in previous versions using wrappers, we have now added direct iterator support to the cursor objects themselves. * Updated work-arounds for various ODBC drivers: eGenix always aims to make using mxODBC as easy and robust as possible. For this reason, we regularly add or update work-arounds for problems found in recent ODBC driver versions. This release includes new work-arounds for the MySQL ODBC driver running on 64-bit Linux, the SQL Server 200 ODBC driver and the FileMaker ODBC driver. For the full set of changes please check the mxODBC change log: http://www.egenix.com/products/python/mxODBC/changelog.html For the full set of features mxODBC has to offer, please see: http://www.egenix.com/products/python/mxODBC/#Features ________________________________________________________________________ DOWNLOADS The download archives and instructions for installing the package can be found at: http://www.egenix.com/products/python/mxODBC/ In order to use the eGenix mxODBC package you will first need to install the eGenix mx Base package: http://www.egenix.com/products/python/mxBase/ ________________________________________________________________________ UPGRADING You are encouraged to upgrade to this latest mxODBC release, especially if you are using MS SQL Server or Informix as database server. Customers who have purchased mxODBC 3.0 licenses can download and install this patch-level release on top of their existing installations. The licenses will continue to work with version 3.0.2. Users of mxODBC 2.0 will have to purchase new licenses from our online shop in order to upgrade to mxODBC 3.0.2. You can request 30-day evaluation licenses by visiting our web-site at http://www.egenix.com/products/python/mxODBC/#Evaluation or writing to sales@egenix.com, stating your name (or the name of the company) and the number of eval licenses that you need. _______________________________________________________________________ SUPPORT Commercial support for this product 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, Sep 01 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 Wed Sep 2 14:33:27 2009 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Sep 2 13:33:31 2009 Subject: [egenix-users] eclipse unresovled import and print_resultset In-Reply-To: <4A9BC279.4050408@egenix.com> References: <8A18C67C0B5B9842BA221D0F1390B6B92913925882@hqw2k3svr108.windows.usmc-mccs.org> <4A9BC279.4050408@egenix.com> Message-ID: <4A9E5807.5000902@egenix.com> M.-A. Lemburg wrote: > Raful CIV Mitchell H wrote: >> 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. FYI: We've just released mxODBC 3.0.3 which fixes the problem that was introduced in 3.0.2. http://www.egenix.com/products/python/mxODBC/ -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Sep 02 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 skloot at gmail.com Wed Sep 9 14:43:38 2009 From: skloot at gmail.com (david) Date: Wed Sep 9 22:43:42 2009 Subject: [egenix-users] Issues building mxBase on OS X 10.6 Message-ID: <1e7b56f10909091343x6fc0fb3ai94ab742e64c9712d@mail.gmail.com> Hello, I'm having problems installing mxBase on my new Snow Leopard system. It doesn't matter if I start with a binary package or from source, the result is the same. Here is the output: $ python setup.py install running install no build data file 'build/build-py2.5_ucs2.pck' found running build running mx_autoconf checking for availability of strptime() gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -D_GNU_SOURCE=1 -I/usr/local/include -I/opt/local/include -I/Library/Frameworks/Python.framework/Versions/2.5/include -c _configtest.c -o _configtest.o cc1: error: unrecognized command line option "-Wno-long-double" cc1: error: unrecognized command line option "-Wno-long-double" lipo: can't figure out the architecture type of: /var/tmp//cc4XyWUa.out failure. removing: _configtest.c _configtest.o checking compiler for bad static forward handling gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -D_GNU_SOURCE=1 -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -I/usr/local/include -I/opt/local/include -I/Library/Frameworks/Python.framework/Versions/2.5/include -c _configtest.c -o _configtest.o cc1: error: unrecognized command line option "-Wno-long-double" cc1: error: unrecognized command line option "-Wno-long-double" lipo: can't figure out the architecture type of: /var/tmp//ccynFFmT.out failure. And so on. I am also having the same "lipo: can't figure out the architecture type..." message when trying to build psycopg2, so I understand this isn't specific to mxBase. I'm new to Mac and am having zero luck figuring this one out. I have found a limited amount of discussion about this error, but it seems to usually come down to "sounds like your build environment is hosed" - which seems odd to me, because this is a brand new install. Thanks for your time, David From mal at egenix.com Thu Sep 10 02:24:19 2009 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Sep 10 01:24:24 2009 Subject: [egenix-users] Issues building mxBase on OS X 10.6 In-Reply-To: <1e7b56f10909091343x6fc0fb3ai94ab742e64c9712d@mail.gmail.com> References: <1e7b56f10909091343x6fc0fb3ai94ab742e64c9712d@mail.gmail.com> Message-ID: <4AA83923.2010606@egenix.com> david wrote: > Hello, > I'm having problems installing mxBase on my new Snow Leopard system. > It doesn't matter if I start with a binary package or from source, the > result is the same. This is a problem with Python and some assumptions made by distutils which are no longer true for Mac OS X 10.6. While I've seen a few patches go in for Python 2.6, I don't think they'll be backported to 2.5. The mention of the 10.4 SDK in the sysroot parameter looks strange. Perhaps that causes the problems ?! > Here is the output: > > $ python setup.py install > running install > no build data file 'build/build-py2.5_ucs2.pck' found > running build > running mx_autoconf > checking for availability of strptime() > gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk > -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd > -fno-common -dynamic -DNDEBUG -g -O3 -D_GNU_SOURCE=1 > -I/usr/local/include -I/opt/local/include > -I/Library/Frameworks/Python.framework/Versions/2.5/include -c > _configtest.c -o _configtest.o > cc1: error: unrecognized command line option "-Wno-long-double" > cc1: error: unrecognized command line option "-Wno-long-double" > lipo: can't figure out the architecture type of: /var/tmp//cc4XyWUa.out > failure. > removing: _configtest.c _configtest.o > checking compiler for bad static forward handling > gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk > -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd > -fno-common -dynamic -DNDEBUG -g -O3 -D_GNU_SOURCE=1 > -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 > -I/usr/local/include -I/opt/local/include > -I/Library/Frameworks/Python.framework/Versions/2.5/include -c > _configtest.c -o _configtest.o > cc1: error: unrecognized command line option "-Wno-long-double" > cc1: error: unrecognized command line option "-Wno-long-double" > lipo: can't figure out the architecture type of: /var/tmp//ccynFFmT.out > failure. > > > And so on. I am also having the same "lipo: can't figure out the > architecture type..." message when trying to build psycopg2, so I > understand this isn't specific to mxBase. I'm new to Mac and am having > zero luck figuring this one out. I have found a limited amount of > discussion about this error, but it seems to usually come down to > "sounds like your build environment is hosed" - which seems odd to me, > because this is a brand new install. > > Thanks for your time, > David > > > _______________________________________________________________________ > eGenix.com User Mailing List http://www.egenix.com/ > https://www.egenix.com/mailman/listinfo/egenix-users -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Sep 09 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 skloot at gmail.com Thu Sep 10 17:17:40 2009 From: skloot at gmail.com (david) Date: Fri Sep 11 01:17:46 2009 Subject: [egenix-users] Issues building mxBase on OS X 10.6 In-Reply-To: <4AA83923.2010606@egenix.com> References: <1e7b56f10909091343x6fc0fb3ai94ab742e64c9712d@mail.gmail.com> <4AA83923.2010606@egenix.com> Message-ID: <1e7b56f10909101617s3c9e58bfj3d32cae1078fb3a@mail.gmail.com> Hi, It turns out that the issue was that 10.6 now uses GCC 4.2 by default, which was causing it to fail for some reason. Setting the CC environment variable to gcc 4.0 allowed it to compile properly. On Wed, Sep 9, 2009 at 4:24 PM, M.-A. Lemburg wrote: > david wrote: >> Hello, >> I'm having problems installing mxBase on my new Snow Leopard system. >> It doesn't matter if I start with a binary package or from source, the >> result is the same. > > This is a problem with Python and some assumptions made by distutils > which are no longer true for Mac OS X 10.6. > > While I've seen a few patches go in for Python 2.6, I don't think they'll > be backported to 2.5. > > The mention of the 10.4 SDK in the sysroot parameter looks strange. > Perhaps that causes the problems ?! > >> Here is the output: >> >> $ python setup.py install >> running install >> no build data file 'build/build-py2.5_ucs2.pck' found >> running build >> running mx_autoconf >> checking for availability of strptime() >> gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk >> -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd >> -fno-common -dynamic -DNDEBUG -g -O3 -D_GNU_SOURCE=1 >> -I/usr/local/include -I/opt/local/include >> -I/Library/Frameworks/Python.framework/Versions/2.5/include -c >> _configtest.c -o _configtest.o >> cc1: error: unrecognized command line option "-Wno-long-double" >> cc1: error: unrecognized command line option "-Wno-long-double" >> lipo: can't figure out the architecture type of: /var/tmp//cc4XyWUa.out >> failure. >> removing: _configtest.c _configtest.o >> checking compiler for bad static forward handling >> gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk >> -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd >> -fno-common -dynamic -DNDEBUG -g -O3 -D_GNU_SOURCE=1 >> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 >> -I/usr/local/include -I/opt/local/include >> -I/Library/Frameworks/Python.framework/Versions/2.5/include -c >> _configtest.c -o _configtest.o >> cc1: error: unrecognized command line option "-Wno-long-double" >> cc1: error: unrecognized command line option "-Wno-long-double" >> lipo: can't figure out the architecture type of: /var/tmp//ccynFFmT.out >> failure. >> >> >> And so on. I am also having the same "lipo: can't figure out the >> architecture type..." message when trying to build psycopg2, so I >> understand this isn't specific to mxBase. I'm new to Mac and am having >> zero luck figuring this one out. I have found a limited amount of >> discussion about this error, but it seems to usually come down to >> "sounds like your build environment is hosed" - which seems odd to me, >> because this is a brand new install. >> >> Thanks for your time, >> David >> >> >> _______________________________________________________________________ >> eGenix.com User Mailing List ? ? ? ? ? ? ? ? ? ? http://www.egenix.com/ >> https://www.egenix.com/mailman/listinfo/egenix-users > > -- > Marc-Andre Lemburg > eGenix.com > > Professional Python Services directly from the Source ?(#1, Sep 09 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 Fri Sep 11 10:51:34 2009 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Sep 11 09:51:38 2009 Subject: [egenix-users] Issues building mxBase on OS X 10.6 In-Reply-To: <1e7b56f10909101617s3c9e58bfj3d32cae1078fb3a@mail.gmail.com> References: <1e7b56f10909091343x6fc0fb3ai94ab742e64c9712d@mail.gmail.com> <4AA83923.2010606@egenix.com> <1e7b56f10909101617s3c9e58bfj3d32cae1078fb3a@mail.gmail.com> Message-ID: <4AAA0186.60509@egenix.com> david wrote: > Hi, > It turns out that the issue was that 10.6 now uses GCC 4.2 by default, > which was causing it to fail for some reason. Setting the CC > environment variable to gcc 4.0 allowed it to compile properly. Strange. We use GCC 4.2 for all prebuilt archives on Linux and have never run into such problems. I can only imagine that the Python binary you are using was built using GCC 4.0 and an old XCode version. This would leave traces of the used GCC options in Python's Makefile (which gets installed as part of the Python install process). The Makefile is then used by distutils to build extensions. > On Wed, Sep 9, 2009 at 4:24 PM, M.-A. Lemburg wrote: >> david wrote: >>> Hello, >>> I'm having problems installing mxBase on my new Snow Leopard system. >>> It doesn't matter if I start with a binary package or from source, the >>> result is the same. >> >> This is a problem with Python and some assumptions made by distutils >> which are no longer true for Mac OS X 10.6. >> >> While I've seen a few patches go in for Python 2.6, I don't think they'll >> be backported to 2.5. >> >> The mention of the 10.4 SDK in the sysroot parameter looks strange. >> Perhaps that causes the problems ?! >> >>> Here is the output: >>> >>> $ python setup.py install >>> running install >>> no build data file 'build/build-py2.5_ucs2.pck' found >>> running build >>> running mx_autoconf >>> checking for availability of strptime() >>> gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk >>> -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd >>> -fno-common -dynamic -DNDEBUG -g -O3 -D_GNU_SOURCE=1 >>> -I/usr/local/include -I/opt/local/include >>> -I/Library/Frameworks/Python.framework/Versions/2.5/include -c >>> _configtest.c -o _configtest.o >>> cc1: error: unrecognized command line option "-Wno-long-double" >>> cc1: error: unrecognized command line option "-Wno-long-double" >>> lipo: can't figure out the architecture type of: /var/tmp//cc4XyWUa.out >>> failure. >>> removing: _configtest.c _configtest.o >>> checking compiler for bad static forward handling >>> gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk >>> -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd >>> -fno-common -dynamic -DNDEBUG -g -O3 -D_GNU_SOURCE=1 >>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 >>> -I/usr/local/include -I/opt/local/include >>> -I/Library/Frameworks/Python.framework/Versions/2.5/include -c >>> _configtest.c -o _configtest.o >>> cc1: error: unrecognized command line option "-Wno-long-double" >>> cc1: error: unrecognized command line option "-Wno-long-double" >>> lipo: can't figure out the architecture type of: /var/tmp//ccynFFmT.out >>> failure. >>> >>> >>> And so on. I am also having the same "lipo: can't figure out the >>> architecture type..." message when trying to build psycopg2, so I >>> understand this isn't specific to mxBase. I'm new to Mac and am having >>> zero luck figuring this one out. I have found a limited amount of >>> discussion about this error, but it seems to usually come down to >>> "sounds like your build environment is hosed" - which seems odd to me, >>> because this is a brand new install. >>> >>> Thanks for your time, >>> David >>> >>> >>> _______________________________________________________________________ >>> eGenix.com User Mailing List http://www.egenix.com/ >>> https://www.egenix.com/mailman/listinfo/egenix-users >> >> -- >> Marc-Andre Lemburg >> eGenix.com >> >> Professional Python Services directly from the Source (#1, Sep 09 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/ >> > > > _______________________________________________________________________ > eGenix.com User Mailing List http://www.egenix.com/ > https://www.egenix.com/mailman/listinfo/egenix-users -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Sep 11 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 charlie at egenix.com Fri Sep 11 12:49:32 2009 From: charlie at egenix.com (Charlie Clark) Date: Fri Sep 11 11:49:49 2009 Subject: [egenix-users] Issues building mxBase on OS X 10.6 In-Reply-To: <4AAA0186.60509@egenix.com> References: <1e7b56f10909091343x6fc0fb3ai94ab742e64c9712d@mail.gmail.com> <4AA83923.2010606@egenix.com> <1e7b56f10909101617s3c9e58bfj3d32cae1078fb3a@mail.gmail.com> <4AAA0186.60509@egenix.com> Message-ID: Am 11.09.2009, 09:51 Uhr, schrieb M.-A. Lemburg : > Strange. We use GCC 4.2 for all prebuilt archives on Linux and > have never run into such problems. > I can only imagine that the Python binary you are using was > built using GCC 4.0 and an old XCode version. This would leave > traces of the used GCC options in Python's Makefile (which gets > installed as part of the Python install process). The Makefile > is then used by distutils to build extensions. Builds out of the box with the MacPorts version of Python 2.6 and I would recommend using this over the Apple hacked version. Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/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/