microsoft / vscode-azureappservice

Azure App Service extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azureappservice
MIT License
111 stars 94 forks source link

Python: Cryptography issues with missing tools to build libffi? #902

Closed tiloc closed 4 years ago

tiloc commented 5 years ago

I am deploying Python code which uses the following imports: from cryptography.x509 import load_pem_x509_certificate from cryptography.hazmat.backends import default_backend

I have 'cryptography" in my requirements.txt.

I am running into the exact issue as described here: https://stackoverflow.com/questions/38963857/import-error-from-cyptography-hazmat-bindings-constant-time-import-lib

Can the suggested fix (additional Linux packages to successfully build the missing library during deployment) be implemented on the Linux appservice? Or would that be the time when I should switch to a custom Docker container?

nturinski commented 5 years ago

@qubitron Can you take a look at this?

joshgav commented 5 years ago

@tiloc we're looking into this at https://github.com/Microsoft/Oryx/issues/21, can you follow along there? Till we onboard the package a custom container will be needed.

kichalla commented 5 years ago

@tiloc Could you share a sample and repro steps where I can repro this issue? Also which version of Python are you using...is it 2.7?

tiloc commented 5 years ago

@kichalla I am very sorry, but our project has taken a different course and I am currently not able to create a sample. It was Python 3.7.2 in conjunction with django-socialauth.

ejizba commented 4 years ago

Closing due to lack of activity