vn.py量化社区
By Traders, For Traders.
Member
加入于:
帖子: 8
声望: 0

Traceback (most recent call last):
File "run.py", line 95, in <module>
File "run.py", line 88, in main
File "vnpy\trader\ui\mainwindow.py", line 51, in init
File "vnpy\trader\ui\mainwindow.py", line 58, in init_ui
File "vnpy\trader\ui\mainwindow.py", line 113, in init_menu
File "importlib__init__.py", line 127, in import_module
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'vnpy.app.cta_strategy.ui'
请问下大佬,我使用pyinstaller 工具,打包run.py脚本为win32 可执行程序,打包完后运行,报上述错误。是因为 'vnpy.app.cta_strategy.ui'模块没有包装成可导入模块吗?

Administrator
avatar
加入于:
帖子: 4033
声望: 221

pyinstaller打包很复杂的,需要针对vnpy写专门的打包程序和代码剪裁才行

Member
加入于:
帖子: 8
声望: 0

好的,感谢您

© 2015-2019 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号-3