Azure Web Apps fail to install Azure-Storage 0.33.0
See original GitHub issueHello, issue is easily reproduceable: Create a flask web app add azure-storage to requirements.txt and try to push it to the Web App… It will fail with 2.7 and 3.4. See attached log file.
Running setup.py install for cryptography
BLA-BLA-BLA
remote: distutils.errors.DistutilsError: Setup script exited with error: Unable to find vcvarsall.bat
remote:
remote: ----------------------------------------
remote: Cleaning up...
remote: .........................
remote: Command D:\home\site\wwwroot\env\Scripts\python.exe -c "import setuptools, tokenize;__file__='D:\\home\\site\\wwwroot\\env\\build\\cryptography\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record D:\local\Temp\pip-1tk19zep-record\install-record.txt --single-version-externally-managed --compile --install-headers D:\home\site\wwwroot\env\include\site\python3.4 failed with error code 1 in D:\home\site\wwwroot\env\build\cryptography
remote: Storing debug log for failure in D:\home\pip\pip.log
remote: An error has occurred during web site deployment.
You owe me a couple of days of my life 😦
So it works for any version without that stupid broken cryptography.
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
azure-storage 0.36.0 - PyPI
If you are encountering problems installing azure-storage on Azure Web Apps, upgrading pip might help. Features. Blob. Create/Read/Update/Delete Containers.
Read more >Troubleshoot Azure Files problems in Windows (SMB)
Troubleshoot problems with SMB Azure file shares in Windows. See common issues related to Azure Files when you connect from Windows clients, ...
Read more >Azure Webapp wheels --find-links does not work
I tried --no-index and it gives "Could not find any downloads that satisfy the requirement cffi==1.8.2". Somebody says if I want to use...
Read more >python2-azure-storage-0.36.0-1.el7.noarch.rpm
Install python2-azure-storage rpm package: # yum install python2-azure-storage ... /usr/lib/python2.7/site-packages/azure/storage/_error.pyo.
Read more >Bug#926297: duplicity: azure dependency broken?
Similarly, if i do a 'pip install azure' i get the same error. ... ii python-azure-storage 0.33.0-1 all Microsoft Azure Storage Library for...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I encountered this problem, too. But, I found the workarround of this problem . I describe our environment, problem, primary cause, and workarround below: [[ Environment ]] ** Azure Web Apps ** python 3.4.1 (32bit) ** My development PC **
[[ Problem]] The wheel package registered in the git repository fails in the installation on the Azure environment.
[[ Primary cause ]] on Python 3.4 of Azure Web Apps, version of pip is 1.5.6 . pip (1.5.6) is not able to recognize ‘–find-links’ option which was written in the top of requirements.txt file.
[[ Workarround ]] Upgrade pip on Azure Web Apps, using ‘deploy.cmd’ file.
[[ Detail ]] At first, please refer to following URL. https://docs.microsoft.com/en-us/azure/app-service-web/web-sites-python-configure
I got default ‘.deployment’ file and ‘deploy.cmd’ file from Azure Web Apps Kudu Service. ** How to get these files **
and, please edit the vicinity of the following lines in ‘deploy.cmd’ . (before) echo Pip install requirements. env\scripts\pip install -r requirements.txt (after) echo Upgrade pip package. env\scripts\python -m pip install pip --upgrade IF !ERRORLEVEL! NEQ 0 goto error echo Pip install requirements. env\scripts\pip install -r requirements.txt
(* I also upgraded setuptools )
finally, please copy ‘.deployment’ and ‘deploy.cmd’ file onto top folder of GIT project, then commit/push it.
By this workarrownd, I successfully installed wheel format packages into Azure Web Apps. It would be greatly appreciated if this workarround is useful for you. (Please pardon a poor English expression)
The best solution is to upgrade the version of Python on app service by following the instructions at https://aka.ms/PythonOnAppService.
The version that is preinstalled is very old, but for backwards-compatibility reasons we cannot upgrade it, so instead we are deprecating use of the preinstalled version and recommending everyone use the site extensions described at the link above.
And yes, we intend to improve this process so it is simpler in the future, but until the App Service team is able to help us out (right now we have to fix it with only publicly-available APIs/features), there are going to be a few extra manual steps involved. Luckily, most of those just make the process more transparent, so it isn’t necessarily a bad thing, but it does complicate the process somewhat.