0

我使用 Pyinstaller 将 python 脚本保存在单个可执行文件中,但是当我尝试在控制台中运行它时,它会在下面的日志中./dist/myscript/myscript引发AttributeError错误。

日志信息

Traceback (most recent call last):
  File "service.py", line 75, in <module>
  File "service.py", line 31, in job
  File "modelInstance.py", line 20, in __init__
  File "prophet/forecaster.py", line 141, in __init__
  File "prophet/forecaster.py", line 154, in _load_stan_backend
AttributeError: 'Prophet' object has no attribute 'stan_backend'
[1413] Failed to execute script 'service' due to unhandled exception!

如您所见,我正在使用 facebook 的 Prophet 库来预测时间序列数据,所有这些都在 docker 容器中完成。

4

0 回答 0