From phil at yax.org.uk Tue Dec 1 05:54:01 2009 From: phil at yax.org.uk (Philip Rooke) Date: Tue Dec 1 06:54:08 2009 Subject: [egenix-users] Cannot build debug version of mx-base In-Reply-To: <4B13AD05.2090805@egenix.com> References: <4B116FE6.4040806@egenix.com> <4B13AD05.2090805@egenix.com> Message-ID: > > > > Further investigation has revealed the real cause of the problem > (I think): > > This is not related to tar or zip, it's related to running the > setup.py script twice within the same extracted source archive. > > The first time runs through fine, the second time you get the > error. This appears to be related to the build pickle that we > use to save build information between runs: > > I guess this is possible. I first installed the base package using the Macports infrastructure. But the Macports package does not expose the debug configure option as, what they call, a variant of the package build. So at that point I installed it by hand, first with the tar.gz download from your web site. That produced the error you have seen. I tried the .zip download on your suggestion and that did work although that was perhaps a timing coincidence. Anyway it all seems fine now. Thanks, Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20091201/0c698ab5/attachment.htm From mal at egenix.com Thu Dec 10 19:56:07 2009 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Dec 10 19:56:34 2009 Subject: [egenix-users] Cannot build debug version of mx-base In-Reply-To: References: <4B116FE6.4040806@egenix.com> <4B13AD05.2090805@egenix.com> Message-ID: <4B214447.1090508@egenix.com> Philip Rooke wrote: >> >> >> >> Further investigation has revealed the real cause of the problem >> (I think): >> >> This is not related to tar or zip, it's related to running the >> setup.py script twice within the same extracted source archive. >> >> The first time runs through fine, the second time you get the >> error. This appears to be related to the build pickle that we >> use to save build information between runs: >> >> > I guess this is possible. I first installed the base package using the > Macports infrastructure. But the Macports package does not expose the > debug configure option as, what they call, a variant of the package build. > So at that point I installed it by hand, first with the tar.gz download > from your web site. That produced the error you have seen. I tried the > .zip download on your suggestion and that did work although that was perhaps > a timing coincidence. > > Anyway it all seems fine now. BTW, there's also another way to debug tag tables you might want to use. You can insert function calls into the table which then output the current state using the CallArg command: def debug(data, x, end, *args): print ... table = ( ... (None, CallArg, (debug, 'parsing number'), +1), ... ) After debugging, you then just comment them out to get full speed again. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Dec 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 Wed Dec 16 19:58:11 2009 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Dec 16 19:58:15 2009 Subject: [egenix-users] mxBeeBase has problems on Mac OS X and FreeBSD Message-ID: <4B292DC3.6030209@egenix.com> We have received a note from a user today that mxBeeBase has problems on Mac OS X. Here's the error message: mx.BeeBase.BeeStorage.Error: invalid header at 62144: 'Kj.U\x80C' So far, we have confirmed the issue on Mac OS X and also on FreeBSD. It doesn't occur on Linux or Windows, which suggests that there's some issue related to BSD-based file system code. Since we don't want you to lose your data, we advise you *not* to use mxBeeBase on these platforms until we've found and fixed the problem. Thanks, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Dec 16 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 mbaiju at zeomega.com Fri Dec 18 15:19:58 2009 From: mbaiju at zeomega.com (Baiju M) Date: Fri Dec 18 10:50:02 2009 Subject: [egenix-users] Error from mxODBCZopeDA for Zope 2.12 with Python 2.6 on x86_64 Message-ID: Hi, I am using beta version of mxODBCZopeDA for Zope 2.12 with Python 2.6 on x86_64. File: egenix-mxodbc-zopeda-1.0.10.linux-x86_64-py2.4_ucs4.zip When I am trying to make a query, it shows "ODBC driver sent negative string size" error. This is the output from Zope's debug prompt: >>> app.db._v_database_connection.query("select * from tbl_name") Traceback (most recent call last): File "", line 1, in File "Products/mxODBCZopeDA/ZopeDA.py", line 1534, in query File "Products/mxODBCZopeDA/ZopeDA.py", line 1409, in run_cursor_callback mx.ODBC.Error.InterfaceError: ODBC driver sent negative string size I am using "unixODBC 2.2.15pre". With unixODBC 2.2.14 also this error is raised. But in 2.2.14 I cann't even get any result from "isql" command line prompt. I am connecting to Oracle using instant_client 10.2.0.4 for x86_64 Few other details: $ uname -a Linux xxxxxxxxxx 2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 x86_64 x86_64 x86_64 GNU/Linux $ cat /etc/redhat-release CentOS release 5.3 (Final) Please let me know if any more details required Regards, Baiju M From mal at egenix.com Fri Dec 18 10:58:34 2009 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Dec 18 10:58:38 2009 Subject: [egenix-users] Error from mxODBCZopeDA for Zope 2.12 with Python 2.6 on x86_64 In-Reply-To: References: Message-ID: <4B2B524A.2080509@egenix.com> Baiju M wrote: > Hi, > I am using beta version of mxODBCZopeDA for Zope 2.12 with Python > 2.6 on x86_64. > File: egenix-mxodbc-zopeda-1.0.10.linux-x86_64-py2.4_ucs4.zip > > When I am trying to make a query, it shows "ODBC driver sent negative > string size" error. > This is the output from Zope's debug prompt: > >>>> app.db._v_database_connection.query("select * from tbl_name") > Traceback (most recent call last): > File "", line 1, in > File "Products/mxODBCZopeDA/ZopeDA.py", line 1534, in query > File "Products/mxODBCZopeDA/ZopeDA.py", line 1409, in run_cursor_callback > mx.ODBC.Error.InterfaceError: ODBC driver sent negative string size > > I am using "unixODBC 2.2.15pre". With unixODBC 2.2.14 also this error > is raised. > But in 2.2.14 I cann't even get any result from "isql" command line prompt. > > I am connecting to Oracle using instant_client 10.2.0.4 for x86_64 > > Few other details: > > $ uname -a > Linux xxxxxxxxxx 2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 > x86_64 x86_64 x86_64 GNU/Linux > $ cat /etc/redhat-release > CentOS release 5.3 (Final) > > Please let me know if any more details required This appears to be a bug in unixODBC 2.2.14. We've had similar reports for the MySQL ODBC driver used in combination with unixODBC 2.2.14. Please try unixODBC 2.2.12 and see if the problem goes away. Thanks, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Dec 18 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 mbaiju at zeomega.com Fri Dec 18 16:52:31 2009 From: mbaiju at zeomega.com (Baiju M) Date: Fri Dec 18 12:22:38 2009 Subject: [egenix-users] Error from mxODBCZopeDA for Zope 2.12 with Python 2.6 on x86_64 In-Reply-To: <4B2B524A.2080509@egenix.com> References: <4B2B524A.2080509@egenix.com> Message-ID: On Fri, Dec 18, 2009 at 3:28 PM, M.-A. Lemburg wrote: > Baiju M wrote: >> Hi, >> ? ? I am using beta version of mxODBCZopeDA for Zope 2.12 with Python >> 2.6 on x86_64. >> File: egenix-mxodbc-zopeda-1.0.10.linux-x86_64-py2.4_ucs4.zip >> >> When I am trying to make a query, it shows "ODBC driver sent negative >> string size" error. >> This is the output from Zope's debug prompt: >> >>>>> app.db._v_database_connection.query("select * from tbl_name") >> Traceback (most recent call last): >> ? File "", line 1, in >> ? File "Products/mxODBCZopeDA/ZopeDA.py", line 1534, in query >> ? File "Products/mxODBCZopeDA/ZopeDA.py", line 1409, in run_cursor_callback >> mx.ODBC.Error.InterfaceError: ODBC driver sent negative string size >> >> I am using "unixODBC 2.2.15pre". ?With unixODBC 2.2.14 also this error >> is raised. >> But in 2.2.14 I cann't even get any result from "isql" command line prompt. >> >> I am connecting to Oracle using instant_client 10.2.0.4 for x86_64 >> >> Few other details: >> >> $ uname -a >> Linux xxxxxxxxxx 2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 >> x86_64 x86_64 x86_64 GNU/Linux >> $ cat /etc/redhat-release >> CentOS release 5.3 (Final) >> >> Please let me know if any more details required > > This appears to be a bug in unixODBC 2.2.14. We've had similar > reports for the MySQL ODBC driver used in combination with > unixODBC 2.2.14. > > Please try unixODBC 2.2.12 and see if the problem goes away. I forgot to mention, I have tried 2.2.12 also. It was showing the same error. FYI, In 2.2.12 & 2.2.14 we are getting this error from "isql": [ISQL]ERROR: Could not SQLAllocStmt I can see this error mentioned in Oracle forum: http://forums.oracle.com/forums/thread.jspa?threadID=340030&tstart=0 Regards, Baiju M From mal at egenix.com Fri Dec 18 18:28:31 2009 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Dec 18 18:28:35 2009 Subject: [egenix-users] mxBeeBase has problems on Mac OS X and FreeBSD In-Reply-To: <4B292DC3.6030209@egenix.com> References: <4B292DC3.6030209@egenix.com> Message-ID: <4B2BBBBF.5010601@egenix.com> M.-A. Lemburg wrote: > We have received a note from a user today that mxBeeBase has problems > on Mac OS X. > > Here's the error message: > > mx.BeeBase.BeeStorage.Error: invalid header at 62144: 'Kj.U\x80C' > > So far, we have confirmed the issue on Mac OS X and also on FreeBSD. > It doesn't occur on Linux or Windows, which suggests that there's > some issue related to BSD-based file system code. > > Since we don't want you to lose your data, we advise you *not* to > use mxBeeBase on these platforms until we've found and fixed the > problem. We've tracked down the problem to a synchronization error that only appears to affect BSD-based systems: When using a file in r+ mode, you have to insert a dummy file.seek() whenever switching from reading to writing, in order to get the file buffers synchronized again. Since mxBeeBase reads and writes to the file storage frequently, it was possible for the file buffers to get out of sync on those platforms that require this extra synchronization fseek() call. We've fixed that now in mxBeeBase and will do a full release of egenix-mx-base to address this problem on Monday. Until then, here's the source archive: http://downloads.egenix.com/python/egenix-mx-base-3.1.3.zip Thanks to Ernesto Picardi for bringing this to our attention. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Dec 18 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 info at egenix.com Mon Dec 21 20:51:18 2009 From: info at egenix.com (eGenix Team: M.-A. Lemburg) Date: Mon Dec 21 20:52:26 2009 Subject: [egenix-users] ANN: eGenix mx Base Distribution 3.1.3 Message-ID: <4B2FD1B6.6000204@egenix.com> ________________________________________________________________________ ANNOUNCING eGenix.com mx Base Distribution Version 3.1.3 for Python 2.3 - 2.6 Open Source Python extensions providing important and useful services for Python programmers. This announcement is also available on our web-site for online reading: http://www.egenix.com/company/news/eGenix-mx-Base-Distribution-3.1.3-GA.html ________________________________________________________________________ ABOUT The eGenix.com mx Base Distribution for Python is a collection of professional quality software tools which enhance Python's usability in many important areas such as fast text searching, date/time processing and high speed data types. The tools have a proven record of being portable across many Unix and Windows platforms. You can write applications which use the tools on Windows and then run them on Unix platforms without change due to the consistent platform independent interfaces. Contents of the distribution: * mxDateTime - Date/Time Library for Python * mxTextTools - Fast Text Parsing and Processing Tools for Python * mxProxy - Object Access Control for Python * mxBeeBase - On-disk B+Tree Based Database Kit for Python * mxURL - Flexible URL Data-Type for Python * mxUID - Fast Universal Identifiers for Python * mxStack - Fast and Memory-Efficient Stack Type for Python * mxQueue - Fast and Memory-Efficient Queue Type for Python * mxTools - Fast Everyday Helpers for Python All available packages have proven their stability and usefulness in many mission critical applications and various commercial settings all around the world. For more information, please see the distribution page: http://www.egenix.com/products/python/mxBase/ ________________________________________________________________________ NEWS The 3.1.3 release of the eGenix mx Base Distribution is the latest release of our open-source Python extensions. The new version addresses a serious problem with mxBeeBase on BSD-based platforms such as FreeBSD and Mac OS X. We encourage all users to upgrade to this new release. As always, we are providing pre-built binaries for all supported platforms: Windows 32-bit, Linux 32/64-bit, FreeBSD 32/64-bit, Mac OS X 32-bit Intel and PPC. Whether you are using a pre-built package or the source distribution, installation is a simple "python setup.py install" command in all cases. The only difference is that the pre-built packages do not require a compiler to be installed. For a list of changes, please refer to the eGenix mx Base Distribution change log at http://www.egenix.com/products/python/mxBase/changelog.html and the change logs of the various included Python packages. ________________________________________________________________________ DOWNLOADS The download archives and instructions for installing the packages can be found on the eGenix mx Base Distribution page: http://www.egenix.com/products/python/mxBase/ ________________________________________________________________________ LICENSE The eGenix mx Base package is distributed under the eGenix.com Public License 1.1.0 which is an Open Source license similar to the Python license. You can use the packages in both commercial and non-commercial settings without fee or charge. The package comes with full source code ________________________________________________________________________ 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, Dec 21 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/