Disclosure : First time Azure experience
I am deploying a Flask app to Azure Webapp. All deployment steps are fine till I hit the bcrypt package installation and it fails.
After much research based on error log output, I found out that I might need to install bcrypt using wheelhouse (*.WHL)
I downloaded the below files from here
d:\home\site\wwwroot\env\scripts\pip install -r requirements.txt --find-links d:\home\site\repository\wheelhouse
pip freeze > tmp.txt
d:\python27\scripts\pip install -r requirements.txt --find-links d:\home\site\repository\wheelhouse
Skipping bcrypt-3.1.0-cp27-cp27m-win32.whl because it is not compatible with
Unable to find vcvarsall.bat
I was finally able to get the Flask app working on Azure Webapps. Unfortunately, I couldn't do it using my usual dev tools.
It does what it does and once completed, you may still get a 500 error.
If that is the case, use KUDU and take a look at your
web.config file and modify the
WSGI_ALT_VIRTUALENV_HANDLER value to match your Flask app name.
This is the only way I was able to get
bcrypt to install correctly for my Flask app to work. I hope this saves someone valuable time.
That's all folks.