-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure Web Apps fail to install Azure-Storage 0.33.0 #219
Comments
Hi @4c74356b41, If have Visual Studio/C++ already installed,
You can set them to your VS installation path manually. However, the setuptools we use should be able to autodetect your compiler, so first verify you are using the latest version (and if not, retry the deployment): If you still have trouble deploying our storage library with cryptography or don't have a compiler installed, installing the following should take care of it: |
Hello Rambo (sounds extremely cool), I'm talking about Azure WebApps only, this stuff works on my PC no issues. Only when I push my code to Azure Web Apps it fails to install it. |
Hi @4c74356b41 For some reason, pip on WebApp didn't choose to download the wheel file for cryptography on PyPI. I guess the introspection of pip wasn't able to get the "win32" or "win_amd64" tags on this system. I suggest you to try the options on this document: IOW, either download cryptography-1.5-cp34-cp34m-win32.whl, put it in a "wheelhouse" folder and use As the previous document says, you will not be able to compile cryptography directly on the WebApp server, so you need a way to force the install of the wheel file. I hope it helps, |
I think you will find this article interesting too: |
We've had customers that hit a bug in pip where it can't use/find wheels even when they are available. It's fixed in the latest version of pip, but unfortunately the pip on webapps is not the latest. Not sure if that's what's happening with the crypto package or not. |
Look folks, I've worked around that, I don't really need Azure Storage 0.33.0 exactly. I'm generally telling you to forward this ISSUE to the web app team, because right now this thing is broken (as is). oh yes, that article is truly epic, thanks! |
Thanks! I'll consider this resolved, pending updates from the WebApps team. |
works for me, thanks! |
FWIW, I've found a workaround for installing the
Many modern packages in PyPI -- e.g. I'll assume that you are already deploying your Web App from a git repo. Here are the steps to get
I believe that'd be sufficient, though there are a few more steps I have taken (generating and including wheels for |
Couldn't get any of this to work with 64bit, 3.4. Downgraded azure-storage to 0.32.0 and all is good. Hope to see this fixed soon. |
It is not resolved and it should not be closed. It is an issue between Storage SDK for Python team and Web Apps team (Web Apps PG?). It should be fixed as soon as possible because it is real production blocker. If help is needed, just inform us how to help or where to ask directly. |
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. |
I encountered this problem, too. But, I found the workarround of this problem .
[[ Problem]] [[ Primary cause ]] [[ Workarround ]] [[ Detail ]] I got default '.deployment' file and 'deploy.cmd' file from Azure Web Apps Kudu Service.
and, please edit the vicinity of the following lines in 'deploy.cmd' . (* I also upgraded setuptools ) finally, please copy '.deployment' and 'deploy.cmd' file onto top folder of GIT project, By this workarrownd, I successfully installed wheel format packages into Azure Web Apps. |
I'm closing this since no further action is required from the storage team. Please let me know if there's anything else. 😉 |
See issue Azure#219 for more. Hopefully this saves others from spending a few days on this problem. The recommended command `pip install azure-storage` does not work on Azure Web Apps, a primary environment this package is intended for, so this seems important to point out. Furthermore, `cryptography` reports that failed builds require
Hello, 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.
You owe me a couple of days of my life :(
So it works for any version without that
stupidbroken cryptography.fail.txt
The text was updated successfully, but these errors were encountered: