“maximum recursion depth exceeded” while packaging py file with py2exe

前端 未结 3 1793
没有蜡笔的小新
没有蜡笔的小新 2021-01-13 02:37

The py2exe worked quite well on the same py file several months ago. But when I tried it again today it failed by reporting a “RuntimeError: maximum recursion depth exceeded

3条回答
  •  悲哀的现实
    2021-01-13 03:14

    This error can also occur when you have Jason path.py installed as described here: http://www.py2exe.org/index.cgi/PathModul. The solution from this page is to

    Just rename

    site-packages/path.py to
    
    site-packages/jpath.py 
    

    and make sure also to toggle your imports to

    import jpath
    

提交回复
热议问题