studioego / cjklib

Automatically exported from code.google.com/p/cjklib
Other
0 stars 0 forks source link

RuntimeError: maximum recursion depth exceeded in cmp in Linuxmint 14 ( Ubuntu 12.10 ) #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

I'm using cjknife as a parser for converting chinese file into pinyin, 

while I was on ubuntu 11.04 , it already give me the same error message but I 
had managed by adding these 2 line to the file 
/usr/local/lib/python2.7/dist-packages/cjklib-0.3.2-py2.7.egg/cjklib/reading/ope
rator.py

import sys

sys.setrecursionlimit(150000000)

and it worked , but now I'm on linuxmint 14 based on Ubuntu 12.10 and when I 
add theses two line to the same file, it still give me same error message :

"  File 
"/usr/local/lib/python2.7/dist-packages/cjklib-0.3.2-py2.7.egg/cjklib/reading/op
erator.py", line 1557, in removeApostrophes
    readingEntities[1:]))
  File "/usr/local/lib/python2.7/dist-packages/cjklib-0.3.2-py2.7.egg/cjklib/reading/operator.py", line 1557, in removeApostrophes
    readingEntities[1:]))
  File "/usr/local/lib/python2.7/dist-packages/cjklib-0.3.2-py2.7.egg/cjklib/reading/operator.py", line 1557, in removeApostrophes
    readingEntities[1:]))
  File "/usr/local/lib/python2.7/dist-packages/cjklib-0.3.2-py2.7.egg/cjklib/reading/operator.py", line 1546, in removeApostrophes
    and readingEntities[1] == self.pinyinApostrophe \
RuntimeError: maximum recursion depth exceeded in cmp

what can I do ? 

Original issue reported on code.google.com by liu.qi...@gmail.com on 10 Apr 2013 at 10:20