From nicogrubert at yahoo.de Thu Nov 7 16:13:52 2013 From: nicogrubert at yahoo.de (Nico Grubert) Date: Thu Nov 7 17:13:59 2013 Subject: [egenix-users] InterfaceError: mxODBCursor_FetchMany called, but vars not set Message-ID: <1383840832.71033.YahooMailNeo@web171803.mail.ir2.yahoo.com> Hi there I am trying to get the egenix mxODBC Zope Database adapeter running. I manage to add a "eGenix mxODBC Database Connection" in Zope and can connect to my ODBC data source successfully. When querying the ODBC data source with a simple [ select anycolumn from mytable ] I get the following error: ?? mx.ODBC.Error.InterfaceError: mxODBCursor_FetchMany called, but vars not set? From the command line I can use "isql" to query the ODBC data source without any problem and get the SQL results. My setup: CentOS 6 Python 2.4.6 Zope 2.10.13 egenix-mxodbc-zopeda-1.0.10.linux-x86_64-py2.4_ucs2 Unfortunately I cannot update Python and Zope at the moment because on my Zope instance there are some applications running which require Python 2.4.6 and Zope 2.10.13. Any tips are much appreciated. Regards Nico -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20131107/3a9231ba/attachment.htm From mal at egenix.com Thu Nov 7 18:04:44 2013 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Nov 7 18:04:55 2013 Subject: [egenix-users] InterfaceError: mxODBCursor_FetchMany called, but vars not set In-Reply-To: <1383840832.71033.YahooMailNeo@web171803.mail.ir2.yahoo.com> References: <1383840832.71033.YahooMailNeo@web171803.mail.ir2.yahoo.com> Message-ID: <527BC82C.3040906@egenix.com> On 07.11.2013 17:13, Nico Grubert wrote: > Hi there > > I am trying to get the egenix mxODBC Zope Database adapeter running. > > I manage to add a "eGenix mxODBC Database Connection" in Zope and can connect to my ODBC data source successfully. > When querying the ODBC data source with a simple [ select anycolumn from mytable ] I get the following error: > > mx.ODBC.Error.InterfaceError: mxODBCursor_FetchMany called, but vars not set This error message looks as if there was some other error causing the problem, but which the ODBC driver doesn't report back to mxODBC Zope DA. > From the command line I can use "isql" to query the ODBC data source without any problem and get the SQL results. > > My setup: > CentOS 6 > > Python 2.4.6 > Zope 2.10.13 > egenix-mxodbc-zopeda-1.0.10.linux-x86_64-py2.4_ucs2 > > Unfortunately I cannot update Python and Zope at the moment because on my Zope instance there are some applications running which require Python 2.4.6 and Zope 2.10.13. > > Any tips are much appreciated. Please enable ODBC tracing and send the log to support@egenix.com: In order to enable logging at the ODBC driver manager level, please follow these instructions: 1. edit the odbc.ini file that defines the data source you are using (usually /etc/odbc.ini or ~/.odbc.ini) 2. add two trace options to the data source in question: [MyDataSourceName] Trace = On TraceFile = /tmp/odbc.log ... 3. restart Python and run a query on the connection You should then see the /tmp/odbc.log file fill up with ODBC call trace messages. Error messages from the ODBC driver should also appear in this file. In some cases you also have to edit the file /etc/odbcinst.ini (or ~/.odbcinst.ini) and add a section: [ODBC] Trace = On TraceFile= /tmp/odbc.log We will also need to know which database backend and ODBC driver and ODBC manager you are using. Since you're using a 64-bit OS, it's also possible that you're running into the SQLLEN type issue (unixODBC switched from 32-bit to 64-bit some time ago, without updating the lib version). mxODBC Zope DA 1.0.10 is not compatible with unixODBC versions > 2.2.12 because of this. If you are using unixODBC 2.3.0, please consider upgrading to mxODBC Zope DA 2.0.2: http://www.egenix.com/products/zope/mxODBCZopeDA/2.0.2/ This works with your configuration as well. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Nov 05 2013) >>> Python Projects, Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope/Plone.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2013-11-19: Python Meeting Duesseldorf ... 14 days to go ::::: Try our 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 Tue Nov 12 16:14:28 2013 From: info at egenix.com (eGenix Team: M.-A. Lemburg) Date: Tue Nov 12 16:14:59 2013 Subject: [egenix-users] ANN: Python Meeting =?utf-8?q?D=C3=BCsseldorf_-_19=2E11=2E2013?= Message-ID: <528245D4.3000403@egenix.com> [This announcement is in German since it targets a local user group meeting in D?sseldorf, Germany] ________________________________________________________________________ ANK?NDIGUNG Python Meeting D?sseldorf http://pyddf.de/ Ein Treffen von Python Enthusiasten und Interessierten in ungezwungener Atmosph?re. Dienstag, 19.11.2013, 18:00 Uhr Raum 1, 2.OG im B?rgerhaus Stadtteilzentrum Bilk D?sseldorfer Arcaden, Bachstr. 145, 40217 D?sseldorf Diese Nachricht ist auch online verf?gbar: http://www.egenix.com/company/news/Python-Meeting-Duesseldorf-2013-11-19 ________________________________________________________________________ NEUIGKEITEN * Bereits angemeldete Vortr?ge: Jan Ulrich Hasecke "Was ich beim Schreiben eines Handbuches ?ber Sphinx ?ber Sphinx lernte" Charlie Clark "Openpyxl: Sprint & Danach" Marc-Andre Lemburg "Home-Automation mit Kivy, Mosquitto und Tellstick" Charlie Clark "Paralleles Browser-Testing mit Sauce-Labs" * Neuer Veranstaltungsraum: Wir treffen uns im B?rgerhaus in den D?sseldorfer Arcaden. Da beim letzten Mal einige Teilnehmer Schwierigkeiten hatten, den Raum zu finden, hier eine kurze Beschreibung: Das B?rgerhaus teilt sich den Eingang mit dem Schwimmbad und befindet sich an der Seite der Tiefgarageneinfahrt der D?sseldorfer Arcaden. ?ber dem Eingang steht ein gro?es ?Schwimm?'in Bilk? Logo. Hinter der T?r direkt links zu den zwei Aufz?gen, dann in den 2. Stock hochfahren. Der Eingang zum Raum 1 liegt direkt links, wenn man aus dem Aufzug kommt. Google Street View: http://bit.ly/11sCfiw ________________________________________________________________________ EINLEITUNG Das Python Meeting D?sseldorf ist eine regelm??ige Veranstaltung in D?sseldorf, die sich an Python Begeisterte aus der Region wendet: * http://pyddf.de/ Einen guten ?berblick ?ber die Vortr?ge bietet unser YouTube-Kanal, auf dem wir die Vortr?ge nach den Meetings ver?ffentlichen: * http://www.youtube.com/pyddf/ Veranstaltet wird das Meeting von der eGenix.com GmbH, Langenfeld, in Zusammenarbeit mit Clark Consulting & Research, D?sseldorf: * http://www.egenix.com/ * http://www.clark-consulting.eu/ ________________________________________________________________________ PROGRAMM Das Python Meeting D?sseldorf nutzt eine Mischung aus Open Space und Lightning Talks, wobei die Gewitter bei uns auch schon mal 20 Minuten dauern k?nnen ;-). Lightning Talks k?nnen vorher angemeldet werden, oder auch spontan w?hrend des Treffens eingebracht werden. Ein Beamer mit XGA Aufl?sung steht zur Verf?gung. Folien bitte als PDF auf USB Stick mitbringen. Lightning Talk Anmeldung bitte formlos per EMail an info@pyddf.de ________________________________________________________________________ KOSTENBETEILIGUNG Das Python Meeting D?sseldorf wird von Python Nutzern f?r Python Nutzer veranstaltet. Um die Kosten zumindest teilweise zu refinanzieren, bitten wir die Teilnehmer um einen Beitrag in H?he von EUR 10,00 inkl. 19% Mwst, Sch?ler und Studenten zahlen EUR 5,00 inkl. 19% Mwst. Wir m?chten alle Teilnehmer bitten, den Betrag in bar mitzubringen. ________________________________________________________________________ ANMELDUNG Da wir nur f?r ca. 20 Personen Sitzpl?tze haben, m?chten wir bitten, sich per EMail anzumelden. Damit wird keine Verpflichtung eingegangen. Es erleichtert uns allerdings die Planung. Meeting Anmeldung bitte formlos per EMail an info@pyddf.de ________________________________________________________________________ WEITERE INFORMATIONEN Weitere Informationen finden Sie auf der Webseite des Meetings: http://pyddf.de/ Mit freundlichen Gr??en, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Nov 12 2013) >>> Python Projects, Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope/Plone.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2013-11-19: Python Meeting Duesseldorf ... 7 days to go ::::: Try our 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 Nov 13 14:40:05 2013 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Nov 13 14:40:22 2013 Subject: [egenix-users] InterfaceError: mxODBCursor_FetchMany called, but vars not set In-Reply-To: <527BC82C.3040906@egenix.com> References: <1383840832.71033.YahooMailNeo@web171803.mail.ir2.yahoo.com> <527BC82C.3040906@egenix.com> Message-ID: <52838135.50505@egenix.com> As info for other users in a similar situation: It turned out that the 64-bit issue with unixODBC 2.2 va. 2.3 was the cause of the strange exception. A upgrade to mxODBC Zope DA 2.0.2, which also supports Python 2.4 and Zope 2.10 made the problem go away. On 07.11.2013 18:04, M.-A. Lemburg wrote: > On 07.11.2013 17:13, Nico Grubert wrote: >> Hi there >> >> I am trying to get the egenix mxODBC Zope Database adapeter running. >> >> I manage to add a "eGenix mxODBC Database Connection" in Zope and can connect to my ODBC data source successfully. >> When querying the ODBC data source with a simple [ select anycolumn from mytable ] I get the following error: >> >> mx.ODBC.Error.InterfaceError: mxODBCursor_FetchMany called, but vars not set > > This error message looks as if there was some other error causing > the problem, but which the ODBC driver doesn't report back to > mxODBC Zope DA. > >> From the command line I can use "isql" to query the ODBC data source without any problem and get the SQL results. >> >> My setup: >> CentOS 6 >> >> Python 2.4.6 >> Zope 2.10.13 >> egenix-mxodbc-zopeda-1.0.10.linux-x86_64-py2.4_ucs2 >> >> Unfortunately I cannot update Python and Zope at the moment because on my Zope instance there are some applications running which require Python 2.4.6 and Zope 2.10.13. >> >> Any tips are much appreciated. > > Please enable ODBC tracing and send the log to support@egenix.com: > > In order to enable logging at the ODBC driver manager level, > please follow these instructions: > > > 1. edit the odbc.ini file that defines the data source > you are using (usually /etc/odbc.ini or ~/.odbc.ini) > > 2. add two trace options to the data source in question: > > [MyDataSourceName] > Trace = On > TraceFile = /tmp/odbc.log > ... > > 3. restart Python and run a query on the connection > > You should then see the /tmp/odbc.log file fill up with > ODBC call trace messages. Error messages from the ODBC > driver should also appear in this file. > > In some cases you also have to edit the file > /etc/odbcinst.ini (or ~/.odbcinst.ini) and add a section: > > [ODBC] > Trace = On > TraceFile= /tmp/odbc.log > > > We will also need to know which database backend and ODBC > driver and ODBC manager you are using. > > Since you're using a 64-bit OS, it's also possible that > you're running into the SQLLEN type issue (unixODBC > switched from 32-bit to 64-bit some time ago, without > updating the lib version). mxODBC Zope DA 1.0.10 is not > compatible with unixODBC versions > 2.2.12 because of > this. > > If you are using unixODBC 2.3.0, please consider upgrading > to mxODBC Zope DA 2.0.2: > > http://www.egenix.com/products/zope/mxODBCZopeDA/2.0.2/ > > This works with your configuration as well. > -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Nov 13 2013) >>> Python Projects, Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope/Plone.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2013-11-19: Python Meeting Duesseldorf ... 6 days to go ::::: Try our 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/