From a.km.mail at gmail.com Fri May 8 12:47:37 2009 From: a.km.mail at gmail.com (akm) Date: Fri May 8 08:17:44 2009 Subject: [egenix-users] InterfaceError: ('07009', 0, '[Microsoft][SQL Native Client]Invalid Descriptor Index', 6793) Message-ID: <9f7242b30905072317u4a8f588ck3fc46e105f7c9a96@mail.gmail.com> Hi , I am getting an error like this. Can anyone give me a pointer why this occur ? I am using 2.1.0 version of mx.ODBC. >>>import mx >>>mx.ODBC.__version__ '2.1.0' >>> from mx.ODBC import Windows as MS >>> conn = MS.connect(dsn='dsn', user='idn', password='ipasswd) >>> cr = conn.cursor() >>> cr.execute("""SELECT table1.idn, ... table1.crt_dt, ... table1.active ... FROM table1 ... JOIN table2 ... ON table1.claimant_idn = table2.claimant_idn ... AND table1.active = ? ... WHERE ... table1.number = ? ... AND table1.type = ?""", ('Y', '148', 'TEST')) Traceback (most recent call last): File "", line 14, in InterfaceError: ('07009', 0, '[Microsoft][SQL Native Client]Invalid Descriptor Index', 6793) >>> its working fine If i move condition table1.active = ? from JOIN clause to WHERE clause. Thanks, Abdul Kader M From mal at egenix.com Fri May 8 15:23:57 2009 From: mal at egenix.com (M.-A. Lemburg) Date: Fri May 8 14:24:01 2009 Subject: [egenix-users] InterfaceError: ('07009', 0, '[Microsoft][SQL Native Client]Invalid Descriptor Index', 6793) In-Reply-To: <9f7242b30905072317u4a8f588ck3fc46e105f7c9a96@mail.gmail.com> References: <9f7242b30905072317u4a8f588ck3fc46e105f7c9a96@mail.gmail.com> Message-ID: <4A04245D.9050503@egenix.com> akm wrote: > Hi , > > I am getting an error like this. > Can anyone give me a pointer why this occur ? The ODBC driver probably doesn't know how to handle a binding parameter at that position. Try cursor.executedirect(). That pushes the binding logic to the server side. > I am using 2.1.0 version of mx.ODBC. We only ship that version with the mxODBC Zope DA. If you want to use mxODBC stand-alone, then it's better if you upgrade to our latest mxODBC 3.0 release. >>>> import mx >>>> mx.ODBC.__version__ > '2.1.0' >>>> from mx.ODBC import Windows as MS >>>> conn = MS.connect(dsn='dsn', user='idn', password='ipasswd) >>>> cr = conn.cursor() >>>> cr.execute("""SELECT table1.idn, > ... table1.crt_dt, > ... table1.active > ... FROM table1 > ... JOIN table2 > ... ON table1.claimant_idn = table2.claimant_idn > ... AND table1.active = ? > ... WHERE > ... table1.number = ? > ... AND table1.type = ?""", ('Y', '148', 'TEST')) > Traceback (most recent call last): > File "", line 14, in > InterfaceError: ('07009', 0, '[Microsoft][SQL Native Client]Invalid > Descriptor Index', 6793) > > its working fine If i move condition table1.active = ? from JOIN > clause to WHERE clause. > > Thanks, > Abdul Kader M > > > _______________________________________________________________________ > 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, May 08 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/ ________________________________________________________________________ 2009-06-29: EuroPython 2009, Birmingham, UK 51 days to go ::: 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 cliffq at islandwood.org Wed May 13 19:04:37 2009 From: cliffq at islandwood.org (Cliff Quinn) Date: Thu May 14 03:04:44 2009 Subject: [egenix-users] buildout for mxzopeda Message-ID: <7CD69867FCBA0F4694B0C053BF09331302121A55@POSTINO.pselc.internal> I've had a couple of licenses for the mxzopeda for years and have been happy with the robust performance. It has always been a harder product to install tho, and since buildouts, it seems to be worse. This is my situation: I've just upgraded from a 3.1 something plone install to * Plone 3.2.2 * CMF 2.1.2 * Zope (Zope 2.10.7-final, python 2.4.5, linux2) * Python 2.4.5 (#1, Apr 22 2009, 09:47:25) [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] * PIL 1.1.6 using the unified installer. I used the collective.recipe.mxzopeda 0.1 from pypi.python.org, and somewhat followed instructions: I put a mxzopeda section in my buildout.cfg parts parts = zope2 productdistros mxzopeda I copied and pasted the mxzopeda section in the buildout from pypi: [mxzopeda] recipe = collective.recipe.mxzopeda license-key = puty-ourl-icen-seco-dehe-repl-ease licsenses-archive = mxzopeda-licenses.zip When I ran buildout on this (after putting my license-key in the right place), it failed with the message that it couldn't find the license file. NOTE THE TYPO (licsenses) in the instructions! Changed this, and it appears to successfully install. >Updating productdistros. >Installing mxzopeda. >mxzopeda: Installing mx.ODBC.ZopeDA license xxxx-xxxx-xxxx-xxxx-xxxx In the event.log, there is one message: WARNING OFS.Uninstalled Could not import class 'ZopeConnection' from module 'Products.mxODBCZopeDA.ZopeDA' mxZopeDA is not installed in the Zope Products control panel mxZopeDA objects appear broken ((This object from the mxODBCZopeDA product is broken!) We went through something similar when I installed this for the last buildout (Plone 3.1x). The mxzopeda product appears installed in a bit of a strange place (in the $instance/parts directory). That's all that I know. Our databases are broken again. Please help! Thanks very much - Cliff ____________________________________________________ Cliff Quinn, IT Manager IslandWood 4450 Blakely Avenue NE Bainbridge Island WA 98110 206.855.4300 www.IslandWood.org The mission of IslandWood is to provide exceptional learning experiences and to inspire lifelong environmental and community stewardship. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20090513/e638333b/attachment.htm From support at egenix.com Thu May 14 10:47:06 2009 From: support at egenix.com (eGenix Support: Charlie Clark) Date: Thu May 14 09:47:19 2009 Subject: [egenix-users] buildout for mxzopeda In-Reply-To: <7CD69867FCBA0F4694B0C053BF09331302121A55@POSTINO.pselc.internal> References: <7CD69867FCBA0F4694B0C053BF09331302121A55@POSTINO.pselc.internal> Message-ID: Am 14.05.2009, 03:04 Uhr, schrieb Cliff Quinn : > I've had a couple of licenses for the mxzopeda for years and have been > happy with the robust performance. It has always been a harder product > to install tho, and since buildouts, it seems to be worse. Dear Cliff, we didn't write and don't maintain the buildout recipe for the mxODBC Zope DA so we don't support it. Please note that it states at the top of the recipe: "# Download and install mx.ODBC, plus it's license file # Note: Windows is not supported by this recipe" It should still be possible to use the mxODBC Zope DA with a buildout of Plone by putting the mxODBC Zope DA in the src folder of your instance. Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/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 jesus.gi at cm-barcelos.pt Thu May 14 16:12:03 2009 From: jesus.gi at cm-barcelos.pt (Jesus Campos) Date: Thu May 14 16:12:19 2009 Subject: [egenix-users] Install mxodbc on fedora10/python2.4 Message-ID: Hi, I'm with a little problem installing egenix-odbc on my system: fedora 10 with python 2.4. Any tip? Complements, JCampos [root@jesus-plone egenix-mxodbc-3.0.2.linux-i686-py2.4_ucs4.prebuilt]# python2.4 -c "import sys;print(sys.maxunicode<66000)and'UCS2'or'UCS4'" UCS4 [root@jesus-plone egenix-mxodbc-3.0.2.linux-i686-py2.4_ucs4.prebuilt]# python2.4 -c "import mx.DateTime" {No errors} [root@jesus-plone egenix-mxodbc-3.0.2.linux-i686-py2.4_ucs4.prebuilt]# python2.4 setup.py build --skip install running build skipping the build process and reusing the existing build files and data restoring build data from a previous build run running install running install_lib running build_ext writing byte-compilation script '/tmp/tmpBXuHJC.py' /usr/bin/python2.4 -O /tmp/tmpBXuHJC.py removing /tmp/tmpBXuHJC.py running install_data [root@jesus-plone egenix-mxodbc-3.0.2.linux-i686-py2.4_ucs4.prebuilt]# python2.4 -c "import mx.ODBC.iODBC" Traceback (most recent call last): File "", line 1, in ? ImportError: No module named ODBC.iODBC [root@jesus-plone egenix-mxodbc-3.0.2.linux-i686-py2.4_ucs4.prebuilt]# python2.4 -c "import mx.ODBC.unixODBC" Traceback (most recent call last): File "", line 1, in ? ImportError: No module named ODBC.unixODBC -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20090514/e52a7719/attachment.htm From charlie at egenix.com Thu May 14 17:15:51 2009 From: charlie at egenix.com (Charlie Clark) Date: Thu May 14 16:15:56 2009 Subject: [egenix-users] Install mxodbc on fedora10/python2.4 In-Reply-To: References: Message-ID: Am 14.05.2009, 16:12 Uhr, schrieb Jesus Campos : > ImportError: No module named ODBC.iODBC >[root@jesus-plone egenix-mxodbc-3.0.2.linux-i686-py2.4_ucs4.prebuilt]# > python2.4 -c "import mx.ODBC.unixODBC" >Traceback (most recent call last): > File "", line 1, in ? >ImportError: No module named ODBC.unixODBC Have you got unixODBC or iODBC installed on your system and are they visible to your user? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/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 jesus.gi at cm-barcelos.pt Thu May 14 17:00:06 2009 From: jesus.gi at cm-barcelos.pt (Jesus Campos) Date: Thu May 14 17:00:14 2009 Subject: [egenix-users] Install mxodbc on fedora10/python2.4 In-Reply-To: References: Message-ID: <03E249C28C244FE188C7DFA6F0830EDC@informatica11> Hi thanks for reply. Yes I think so: [root@jesus-plone ~]# rpm -q libiodbc libiodbc-3.52.6-1.i386 [root@jesus-plone ~]# rpm -q unixODBC unixODBC-2.2.12-9.fc10.i386 The problem is " ImportError: No module named ODBC.unixODBC" Should I register something? Complements, JCampos -----Mensagem original----- De: Charlie Clark [mailto:charlie@egenix.com] Enviada: quinta-feira, 14 de Maio de 2009 15:16 Para: Jesus Campos; egenix-users@egenix.com Assunto: Re: [egenix-users] Install mxodbc on fedora10/python2.4 Am 14.05.2009, 16:12 Uhr, schrieb Jesus Campos : > ImportError: No module named ODBC.iODBC >[root@jesus-plone egenix-mxodbc-3.0.2.linux-i686-py2.4_ucs4.prebuilt]# > python2.4 -c "import mx.ODBC.unixODBC" >Traceback (most recent call last): > File "", line 1, in ? >ImportError: No module named ODBC.unixODBC Have you got unixODBC or iODBC installed on your system and are they visible to your user? Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/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 Thu May 14 18:08:53 2009 From: charlie at egenix.com (Charlie Clark) Date: Thu May 14 17:08:57 2009 Subject: [egenix-users] Install mxodbc on fedora10/python2.4 In-Reply-To: <03E249C28C244FE188C7DFA6F0830EDC@informatica11> References: <03E249C28C244FE188C7DFA6F0830EDC@informatica11> Message-ID: Am 14.05.2009, 17:00 Uhr, schrieb Jesus Campos : > Hi thanks for reply. >Yes I think so: >[root@jesus-plone ~]# rpm -q libiodbc > libiodbc-3.52.6-1.i386 > [root@jesus-plone ~]# rpm -q unixODBC > unixODBC-2.2.12-9.fc10.i386 >The problem is " ImportError: No module named ODBC.unixODBC" >Should I register something? Yes, mxODBC does a look up for the libraries so you will either have to add the path to these to your system configuration file ld.so.conf or setup LD_LIBRARY_PATH to include them. Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/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 cliffq at islandwood.org Thu May 14 11:49:55 2009 From: cliffq at islandwood.org (Cliff Quinn) Date: Thu May 14 19:50:10 2009 Subject: [egenix-users] buildout for mxzopeda In-Reply-To: Message-ID: <7CD69867FCBA0F4694B0C053BF09331302121A68@POSTINO.pselc.internal> Okay, so you didn't write it and don't maintain it, but can you give me instructions for installing it in the conventional, not modified, current Plone buildout installation? I need some clarification on: > It should still be possible to use the mxODBC Zope DA with a buildout of > Plone by putting the mxODBC Zope DA in the src folder of your instance. Thanks Cliff ____________________________________________________ Cliff Quinn, IT Manager IslandWood 4450 Blakely Avenue NE Bainbridge Island WA 98110 206.855.4300 www.IslandWood.org The mission of IslandWood is to provide exceptional learning experiences and to inspire lifelong environmental and community stewardship. > -----Original Message----- > From: eGenix Support: Charlie Clark [mailto:support@egenix.com] > Sent: Thursday, May 14, 2009 00:47 AM > To: Cliff Quinn; egenix-users@egenix.com > Subject: Re: [egenix-users] buildout for mxzopeda > > Am 14.05.2009, 03:04 Uhr, schrieb Cliff Quinn : > > > I've had a couple of licenses for the mxzopeda for years and have been > > happy with the robust performance. It has always been a harder product > > to install tho, and since buildouts, it seems to be worse. > > Dear Cliff, > > we didn't write and don't maintain the buildout recipe for the mxODBC Zope > DA so we don't support it. Please note that it states at the top of the > recipe: > > "# Download and install mx.ODBC, plus it's license file > # Note: Windows is not supported by this recipe" > > It should still be possible to use the mxODBC Zope DA with a buildout of > Plone by putting the mxODBC Zope DA in the src folder of your instance. > > Charlie > -- > Charlie Clark > eGenix.com > > Professional Python Services directly from the Source > >>> Python/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 Sun May 17 18:37:28 2009 From: charlie at egenix.com (Charlie Clark) Date: Sun May 17 17:37:39 2009 Subject: [egenix-support] RE: [egenix-users] buildout for mxzopeda In-Reply-To: <7CD69867FCBA0F4694B0C053BF09331302121A68@POSTINO.pselc.internal> References: <7CD69867FCBA0F4694B0C053BF09331302121A68@POSTINO.pselc.internal> Message-ID: Am 14.05.2009, 19:49 Uhr, schrieb Cliff Quinn : > Okay, so you didn't write it and don't maintain it, but can you give me > instructions for installing it in the conventional, not modified, > current Plone buildout installation? >I need some clarification on: > >> It should still be possible to use the mxODBC Zope DA with a buildout > of >> Plone by putting the mxODBC Zope DA in the src folder of your > instance. Cliff, from the eGenix mxODBC Zope DA I put the mx folder in C:\Programme\Plone\zope2\lib\python. The licence file then goes in the mx\ODBC folder The mxODBCZopeDA just goes in C:\Programme\Plone\products\ Hope that helps Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/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/