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
Hi Jan,
thanks for your message. The bug has been fixed and a new version is in the repository.
Andreas
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@gmail.com http://cz.linkedin.com/in/vlcinsky
<BaseXClient-modified.py>_______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
basex-talk@mailman.uni-konstanz.de