Heroku上的气流一直运行到bcrypt错误

时间:2017-08-18 21:49:10

标签: python heroku bcrypt ffi airflow

在尝试让Airflow在远程Heroku服务器上运行时是否有人遇到以下错误?我的气流网络服务器运行正常,但我正在尝试为服务添加安全性。我正在关注在https://airflow.incubator.apache.org/security.html创建用户的示例。但是,当我尝试创建密码时:

user.password = 'set_the_password'

我说错了。

AttributeError: module 'bcrypt._bcrypt' has no attribute 'ffi'

运行pip冻结显示我不仅有bcrypt而且还有

Flask-Bcrypt==0.7.1
bcrypt==3.1.3
py-bcrypt==0.4
cryptography==1.8.1
cffi==1.10.0

我怀疑在requirements.txt中有一些C依赖项丢失了。我知道这可能是Python bcrypt package on Heroku gives AttributeError: 'module' object has no attribute 'ffi'的重复,但我不是想要修补补丁而且我有一个包含图书馆的密码学。任何帮助将不胜感激!

0 个答案:

没有答案