azure-functions-python-worker
azure-functions-python-worker copied to clipboard
[BUG] No module named azure.storage
This issue should be reopened as it was not fixed. There are still people commenting on it with the same problem (myself included):
https://github.com/Azure/azure-functions-python-worker/issues/477
I am also seeing this issue: https://stackoverflow.com/questions/65643865/modulenotfounderror-no-module-named-azure-storage-azure-function/65645973#65645973
I am having a similar issue:
Exception: ModuleNotFoundError: No module named 'azure.storage.filedatalake'. Troubleshooting Guide: https://aka.ms/functions-modulenotfound
This is the requirements.txt:
azure-core==1.10.0
azure-functions==1.5.0
azure-storage-blob==12.7.0b1
azure-storage-file-datalake==12.2.0
certifi==2020.12.5
cffi==1.14.4
chardet==4.0.0
cryptography==3.3.1
idna==2.10
isodate==0.6.0
msrest==0.6.19
oauthlib==3.1.0
pycparser==2.20
requests==2.25.1
requests-oauthlib==1.3.0
six==1.15.0
urllib3==1.26.2
I am unable to run it locally. Have renewed the virtual environment numerous times, with no success.
@mmmarkk01 Hello, would you be able to elaborate more on your local setup i.e. mac/windows , core-tools version, VS code func extension if youre using that. Thanks
Hi @stefanushinardi, I gave up and started using JavaScript instead, but have a look at the closed bug and see that the problem still persists so that bug shouldn't have been closed imho.
https://github.com/Azure/azure-functions-python-worker/issues/477
Hi
I am getting the same issue , the azure-storage package working perfectly in localhost , but after deploying it via azure devops pipeline , i am getting module not found issue
Result: Failure Exception: ModuleNotFoundError: No module named 'azure.storage'. Troubleshooting Guide: https://aka.ms/functions-modulenotfound Stack: File "/azure-functions-host/workers/python/3.9/LINUX/X64/azure_functions_worker/dispatcher.py", line 305, in _handle__function_load_request func = loader.load_function( File "/azure-functions-host/workers/python/3.9/LINUX/X64/azure_functions_worker/utils/wrappers.py", line 42, in call raise extend_exception_message(e, message) File "/azure-functions-host/workers/python/3.9/LINUX/X64/azure_functions_worker/utils/wrappers.py", line 40, in call return func(*args, **kwargs) File "/azure-functions-host/workers/python/3.9/LINUX/X64/azure_functions_worker/loader.py", line 83, in load_function mod = importlib.import_module(fullmodname) File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/home/site/wwwroot/embargo/init.py", line 5, in
Hi all, I fixed the issue by using below command in CI YAML pip install --target="$(System.DefaultWorkingDirectory)/.python_packages/lib/site-packages" -r requirements.txt
Hi @alexandruantochi , Can we know if this is still persisting, we apologize for not following up frequently.