Problems using Python API and resolution (RuntimeError: maximum recursion depth exceeded)

Monday, 31 January 2011 · 2 messages
JC
Jan Vlčinský (CAD)31 Jan 2011 01:00 #
Hi I was trying to use new Python API, looking forward to use binding variables, but all my calls were failing File "D:\var\projects\BaseXFilter\TomTom\BaseXClient.py", line 96, in receive return self.receive() File "D:\var\projects\BaseXFilter\TomTom\BaseXClient.py", line 96, in receive return self.receive() File "D:\var\projects\BaseXFilter\TomTom\BaseXClient.py", line 96, in receive return self.receive() File "D:\var\projects\BaseXFilter\TomTom\BaseXClient.py", line 96, in receive return self.receive() File "D:\var\projects\BaseXFilter\TomTom\BaseXClient.py", line 95, in receive self.init() RuntimeError: maximum recursion depth exceeded I compared old and new version of BaseXClient.py and noticed, that old calls readString() were changed to receive() And on line 96 is call to self.receive() inside of class method receive() so never ending call is here. Renaming receive call to readString as it used to be resolved the problem. Attached is corrected Python file. If you want to call it as usual, you shall rename it to BaseXClient.py Jan
-- *Ing. Jan Vlčinský* CAD programy Slunečnicová 338/3, 734 01 Karviná Ráj, Czech Republic tel: +420-597 602 024; mob: +420-608 979 040 skype: janvlcinsky; GoogleTalk: jan.vlcinsky at gmail.com http://cz.linkedin.com/in/vlcinsky
AW
Andreas Weiler31 Jan 2011 08:47 #
Hi Jan, thanks for your message. The bug has been fixed and a new version is in the repository. Andreas
Quoted text · Jan Vlčinský (CAD) · 38 lines
Am 31.01.2011 um 01:00 schrieb Jan Vlčinský (CAD): > Hi > I was trying to use new Python API, looking forward to use binding variables, but all my calls were failing > > File "D:\var\projects\BaseXFilter\TomTom\BaseXClient.py", line 96, in receive > return self.receive() > File "D:\var\projects\BaseXFilter\TomTom\BaseXClient.py", line 96, in receive > return self.receive() > File "D:\var\projects\BaseXFilter\TomTom\BaseXClient.py", line 96, in receive > return self.receive() > File "D:\var\projects\BaseXFilter\TomTom\BaseXClient.py", line 96, in receive > return self.receive() > File "D:\var\projects\BaseXFilter\TomTom\BaseXClient.py", line 95, in receive > self.init() > RuntimeError: maximum recursion depth exceeded > > I compared old and new version of BaseXClient.py and noticed, that old calls readString() were changed to receive() > > And on line 96 is call to self.receive() inside of class method receive() so never ending call is here. > > Renaming receive call to readString as it used to be resolved the problem. > > Attached is corrected Python file. If you want to call it as usual, you shall rename it to BaseXClient.py > > Jan > > -- > Ing. Jan Vlčinský > CAD programy > Slunečnicová 338/3, 734 01 Karviná Ráj, Czech Republic > tel: +420-597 602 024; mob: +420-608 979 040 > skype: janvlcinsky; GoogleTalk: jan.vlcinsky at gmail.com > http://cz.linkedin.com/in/vlcinsky > > <BaseXClient-modified.py>_______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

⚡Generated with XQuery