RE: [Sqlrelay-discussion] error loading libraries
Brought to you by:
mused
|
From: Pedro B. <pba...@in...> - 2006-04-11 09:37:24
|
Davide i change every line in that file that had __getRow and __getRowRange to self.__getRow and self.__getRowRange and recompile just like you said. I then reboot my zope instance and my sqlrelay conection but the errors remain :( It still states : Module Products.ZSQLRelayDA.SQLRelay.PySQLRDB, line 166, in fetchmany NameError: global name '_SQLRCursor__getRowRange' is not defined Is there anything else I have to do? Pedro Barbosa -----Original Message----- From: sql...@li... [mailto:sql...@li...] On Behalf Of Davide Corio Sent: segunda-feira, 10 de Abril de 2006 17:49 To: sql...@li... Subject: RE: [Sqlrelay-discussion] error loading libraries Il giorno lun, 10/04/2006 alle 17.28 +0100, Pedro Barbosa ha scritto: > I already solved the problem, thanks to anyone who where about to help :) > > Does anyone ever had this error when querying a db: global name > '_SQLRCursor__getRowRange' is not defined ?? Hi Pedro, I had the same problem. 1. edit /usr/lib/python2.3/site-packages/SQLRelay/PySQLRDB.py (this is the path on my debian servers) 2. search for this line: rc=__getRowRange(self.cur_row, size) end change it in: rc=self.__getRowRange(self.cur_row, size) PS: you have to do the same for __getRow and similar method 3. recompile with: cd /usr/lib/python2.3/site-packages python ../compileall.py SQLRelay/ -- Davide Corio dav...@re... Redomino S.r.l. C.so Monte Grappa 90/b - 10145 Torino - Italy Tel: +39 011 19502871 - Fax: +39 011 19791122 - http://www.redomino.com/ |