py2app: modulegraph missing scan_code

后端 未结 1 991
清酒与你
清酒与你 2021-02-19 19:31

For some reason I can\'t explain or google, py2app crashes on me even with the simplest examples. Im using a python 3.4.1 virtual environment created as Projects/Test/virt

相关标签:
1条回答
  • 2021-02-19 19:55

    I had the same problem as you and solved it now.

    I referred to this post.

    First, search for the path

    $ /yourenv/lib/python2.7/site-packages/py2app/recipes/virtualenv.py
    

    Next, open this file virtualenv.py, look for scan_code or load_module and change it to _scan_code or _load_module.

    Last, try to run your app

    0 讨论(0)
提交回复
热议问题