找不到Heroku Moduke错误

时间:2018-05-04 22:22:53

标签: python heroku

[![] [1] [1]

模块'pyicloud'列在requirements.txt中 我已经使用'ls'命令检查了 - 我检查了软件包应该在的目录 - 并且该软件包确实存在于heroku服务器上。

该应用程序在我的本地计算机上没有出现此类问题,即使代码没有任何区别 我也尝试了这里给出的建议:https://help.heroku.com/BWJ7QYTF/why-am-i-seeing-importerror-no-module-named-site-when-deploying-a-python-app 但它没有用。

(venv)dhcp-10-4-0-197:mes-amis mananhora $ heroku运行python manage.py db upgrade -a mesamis

 ▸    heroku-cli: update available from 6.16.18-62346b1 to 6.99.0-ec9edad
Running python manage.py db upgrade on ⬢ mesamis... up, run.1121 (Free)
Traceback (most recent call last):
  File "manage.py", line 5, in <module>
    from project import app, db
  File "/app/project/__init__.py", line 40, in <module>
    from project.import_data.functions import import_data_blueprint
  File "/app/project/import_data/functions.py", line 6, in <module>
    from pyicloud import PyiCloudService
ModuleNotFoundError: No module named 'pyicloud'

0 个答案:

没有答案