phulin / rebook

A collection of tools for cleaning up book scans.
132 stars 30 forks source link

[dewarp.py] RecursionError: maximum recursion depth exceeded while calling a Python object #1

Closed duchengyao closed 5 years ago

duchengyao commented 6 years ago
S1NHdeiMac:rebook s1nh$ python dewarp.py xxx.png 
Traceback (most recent call last):
  File "dewarp.py", line 17, in <module>
    import binarize
  File "/xxxx/rebook/rebook/binarize.py", line 9, in <module>
    import inpaint
  File "inpaint.pyx", line 8, in init rebook.inpaint
  File "<frozen importlib._bootstrap>", line 968, in _find_and_load
  File "<frozen importlib._bootstrap>", line 148, in __enter__
  File "<frozen importlib._bootstrap>", line 166, in _get_module_lock
RecursionError: maximum recursion depth exceeded while calling a Python object

And I set the maximum depth as 100000000 by using sys.setrecursionlimit(100000000)

Segmentation fault: 11

:)

phulin commented 5 years ago

Sorry for (very) slow response. Not sure why this happened. Did you compile the file with cython?