问候!
我正在尝试使用PyInstaller进行构建.配置:Python 3.6.5 pip 10.0.1,操作系统:Ubuntu 18.04.使用virtualenv(也试过python -m venv).
我的应用程序使用apscheduler,websocket,_thread和它看起来像一些相关的模块有进口的问题.试过pyinstaller --onefile mymain.spec&pyinstaller --onedir mymain.spec.两种情况都存在问题.如果没有冻结,程序可以正常工作.
这是我尝试运行生成的可执行文件时得到的错误:
Traceback (most recent call last):
File "apscheduler/schedulers/base.py", line 882, in _create_plugin_instance
KeyError: 'interval'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "cmonitorcli/services/socket_client.py", line 70, in run
File "cmonitorcli/services/scheduler.py", line 36, in add_update_job
File "apscheduler/schedulers/base.py", line 413, in add_job
File …Run Code Online (Sandbox Code Playgroud)