相关疑难解决方法(0)

Pyinstaller 3.3.1和3.4.0-dev使用apscheduler构建

问候!

我正在尝试使用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)

python pyinstaller python-3.x apscheduler

8
推荐指数
2
解决办法
646
查看次数

标签 统计

apscheduler ×1

pyinstaller ×1

python ×1

python-3.x ×1