I use setup.py :

from distutils.core import setup
import py2exe

setup(
 windows=[{"script":"flask_gevent.py"}],
 options={
    "py2exe":{
        "includes": []
    },
  }
)        



Traceback (most recent call last):
File "flask_gevent.py", line 77, in <module>
File "gevent\pywsgi.pyc", line 605, in __init__
File "gevent\server.pyc", line 48, in __init__
File "gevent\baseserver.pyc", line 55, in __init__
File "gevent\event.pyc", line 27, in __init__
File "gevent\hub.pyc", line 169, in get_hub
File "gevent\hub.pyc", line 268, in __init__
File "gevent\hub.pyc", line 198, in _import
File "gevent\hub.pyc", line 210, in _import
File "gevent\core.pyc", line 12, in <module>
File "gevent\core.pyc", line 5, in __load
AttributeError: 'module' object has no attribute 'path'

can anyone please help me with this problem?
in the dist directory,
i can see some packages relavent to gevent already be included in : enter image description here

有帮助吗?

解决方案

This problem has been solved, just add "bundle_files": 1 to "options", it will work fine!

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top