我使用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'
任何人都可以帮我解决这个问题吗?
在dist目录中,
我可以看到一些与gevent相关的软件包已经包含在:
答案 0 :(得分:0)
这个问题已经解决了,只需添加“bundle_files”:1到“选项”,它就能正常工作!