-
Notifications
You must be signed in to change notification settings - Fork 103
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
[BUG] azure-storage-blob incompatible with Python Functions 3.8 #680
Comments
@JackStromberg Could you confirm the following:
The issue could be the modules version mismatch due to an update, which could be resolved by recreating python virtual environments.
Else, @Hazhzeng wrote a comprehensive list of diagnoses and mitigations in - Module not found issues Wiki, please let me know if that helps. |
Running the script in the context of the Function app, I show version 3.8.2. I'm doing all testing in the context of the Azure Function in Azure, not on my local machine. |
Hi @JackStromberg, Which tool did you use to publish into Azure, are you using functions core tools ( Because it seems like you're trying to deploy a Python 3.8 project onto a Python 3.6 Azure Function App. |
As discuss offline, the customer is using an ARM template and ZipDeploy extension. The ZipDeploy endpoint fails with 400. I believe this is a bug on KuduLite. (mentioned in: Azure-App-Service/KuduLite#117 Azure-App-Service/KuduLite#118)
|
Hi @JackStromberg, To mitigate this issue, could you use |
Generating the zip containing the .python_packages worked perfect! Thank you so much! |
Hi, Thank you a lot, three days I have been stuck trying both possible options without success : ARM zipdeploy extension (not found error), and run from package (I tried to rename .venv to .python_package but it did not work) => func pack is good workaround ! notes :
-> I had to use "$func pack --build-native-deps" to get it worked |
Investigative information
Repro steps
Similar issue was created here but closed.
Azure/azure-sdk-for-python#3623
Expected behavior
There should be no exception
Actual behavior
Will receive the following exception when running the function.
Contents of the requirements.txt file:
The text was updated successfully, but these errors were encountered: