From: Michael B. <m...@bu...> - 2014-05-10 21:08:17
|
Hi, I am trying to run my project "awlsim" on the latest development version of jython. I currently runs on CPython 2.7, 3.x and pypy 2.7. However, jython throws a strange error that I do not understand: > 0mb@wiggum:~/develop/git/awlsim$ /home/mb/develop/hg/jython/dist/bin/jython ./awlsimcli EXAMPLE.awl > Parsing code... > Initializing simulator... > Traceback (most recent call last): > File "./awlsimcli", line 424, in <module> > sys.exit(main()) > File "./awlsimcli", line 421, in main > return run(inputFile) > File "./awlsimcli", line 147, in run > assignCpuSpecs(cpu.getSpecs()) > File "./awlsimcli", line 147, in run > assignCpuSpecs(cpu.getSpecs()) > File "./awlsimcli", line 102, in assignCpuSpecs > specs.setNrAccus(4 if opt_fouraccu else 2) > File "/home/mb/develop/git/awlsim/awlsim/core/cpuspecs.py", line 83, in setNrAccus > self.cpu.reallocate() > File "/home/mb/develop/git/awlsim/awlsim/core/cpu.py", line 477, in reallocate > if force or self.specs.nrFlags != len(self.flags): > RuntimeError: maximum recursion depth exceeded I don't see any recusion going on there and neither CPython nor pypy complain. Is this a bug in jython? If you want to reproduce, you can get latest awlsim and invoke awlsimcli as shown above. Get latest awlsim here: git clone git://git.bues.ch/awlsim.git You may also browse the code online here: http://bues.ch/gitweb?p=awlsim.git;a=blob;f=awlsim/core/cpu.py;hb=HEAD#l462 Thanks for your help! -- Michael. ---- Please use PGP/GPG encryption. Key-ID: F532BE1D908D8B0E -------- |