我在heroku上运行一个芹菜工人,当启动该工人时,我总是会发现一个错误:
ImportError: No module named gdbm 我通过在heroku上运行python并试图导入gdbm来确认这一点:
$ heroku run python
Running `python` attached to terminal... up, run.1960
Python 2.7.8 (default, Jul 9 2014, 20:47:08)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gdbm
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named gdbm
>>> exit()如何在heroku上安装这个模块?我是否需要向requirements.txt添加特定的包?如果是,是什么版本?
谢谢你的帮忙!
发布于 2015-04-16 18:22:05
根据Heroku文档,不可能使用文件系统数据库 https://devcenter.heroku.com/articles/read-only-filesystem
以下类型的行为是不支持的:
https://stackoverflow.com/questions/28314372
复制相似问题