0

I'm trying to upload file to azure blob storage.

Installed library using following command

pip install azure-storage-blob

Project is unable to run because of following error

[ERROR] Runtime.ImportModuleError: Unable to import module 'app/handler': No module named 'cryptography.hazmat.bindings._padding'

Anyone can help to resolve this error. I'm following documentation from following link https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-python

Using Python 3.7

2
  • Did you try pip install cryptography? Commented Mar 23, 2021 at 10:44
  • Yes its already there Commented Mar 23, 2021 at 10:46

1 Answer 1

1

It may be that you have an older version of cryptography, try:

pip install --upgrade cryptography

It may also be where your code is relative to the cryptography package. Can you code find the package?

Sign up to request clarification or add additional context in comments.

4 Comments

Have you checked where your code is relative to the cryptography package?
Just tried on windows system it works, on AWS lambda, I'm packing and shipping the same code, it is throwing this error
Then it could be a difference in the .net versions in the different environments. Where is your code running?
Trying to install cryptography from amazon linux, seen that it needs to be complied as per os, code is in python 3.7

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.