heroku - Heroku:ModuleNotFoundError:没有命名的模块
问题描述
我尝试使用 Heroku 创建应用程序,但总是遇到问题我使用了一个名为 _pymaxwell5.pyd 的模块,在 pycharm 中脚本工作正常。这是链接存储库到 Heroku maxwell github的链接
错误日志:
$ heroku logs --tail
2021-04-02T08:10:18.055183+00:00 heroku[worker.1]: State changed from up to crashed
2021-04-02T09:10:17.124398+00:00 heroku[worker.1]: State changed from crashed to starting
2021-04-02T09:10:24.139370+00:00 heroku[worker.1]: Starting process with command `python maxwell.py`
2021-04-02T09:10:24.892275+00:00 heroku[worker.1]: State changed from starting to up
2021-04-02T09:10:28.475500+00:00 app[worker.1]: Traceback (most recent call last):
2021-04-02T09:10:28.475562+00:00 app[worker.1]: File "/app/maxwell.py", line 7, in <module>
2021-04-02T09:10:28.476173+00:00 app[worker.1]: import pymaxwell5 as pym
2021-04-02T09:10:28.476174+00:00 app[worker.1]: ModuleNotFoundError: No module named 'pymaxwell5'
2021-04-02T09:10:28.639395+00:00 heroku[worker.1]: Process exited with status 1
2021-04-02T09:10:28.705634+00:00 heroku[worker.1]: State changed from up to crashed
2021-04-02T11:12:56.320516+00:00 heroku[worker.1]: State changed from crashed to starting
2021-04-02T11:13:07.359240+00:00 heroku[worker.1]: Starting process with command `python maxwell.py`
2021-04-02T11:13:08.264270+00:00 heroku[worker.1]: State changed from starting to up
2021-04-02T11:13:11.305695+00:00 app[worker.1]: Traceback (most recent call last):
2021-04-02T11:13:11.305768+00:00 app[worker.1]: File "/app/maxwell.py", line 7, in <module>
2021-04-02T11:13:11.306033+00:00 app[worker.1]: import pymaxwell5 as pym
2021-04-02T11:13:11.306161+00:00 app[worker.1]: ModuleNotFoundError: No module named 'pymaxwell5'
2021-04-02T11:13:11.462360+00:00 heroku[worker.1]: Process exited with status 1
解决方案
推荐阅读
- c# - 如何延迟x秒启动?
- c - 如何将char *指针分配给c中的char变量
- java - 重新创建的 Android 活动
- sql - 如何使用 CTE 自下而上展平父子层次结构
- ruby - 错误:无法构建 gem 原生扩展构建监听 gem
- c# - 在 C#.net 中使用 SOAP 请求上传大文件并将其传递给 VB.net 中的 Web 服务 API
- python-3.x - cv2.VideoCapture 未读取来自前端的视频
- python - 将小部件的行跨度增加一,每次调用函数时
- ruby-on-rails - 无法通过 WSL 使用 Rails 启动本地服务器
- c++ - 将仅 cpp 标头库链接到 fortran 时出现错误“未定义对 `std::ios_base 的引用”