Heroku - Flask - Bcrypt error Heroku - Flask - Bcrypt error flask flask

Heroku - Flask - Bcrypt error


I was able to solve this by using this custom heroku build pack:

heroku config:add BUILDPACK_URL=git://github.com/mfenniak/heroku-buildpack-python-libffi.git


I was able to get around it kind of, by successfully installing the following: "Successfully installed z3c.bcrypt python-bcrypt py-bcrypt-w32". Installing one of these (likely the second one) is what probably included the main bcrypt library that I guess needed to be compiled? I not 100% sure... I noticed this post is from July, I was able to download those libraries all using PIP.


Add cffi or cryptography in requirements.txt .That solved the problem in my case.