Azure / azure-functions-python-worker

Python worker for Azure Functions.
http://aka.ms/azurefunctions
MIT License
335 stars 103 forks source link

[BUG] ModuleNotFoundError: No module named '_cffi_backend' #1347

Closed kowalczyk-p closed 10 months ago

kowalczyk-p commented 11 months ago

python version: >=3.7, <= 3.11 function version: 4 Starting Host (HostId=redacted, InstanceId=18e5b7f9-c832-4b7f-abe4-8c27109f3c84, Version=4.27.5.5, ProcessId=1937, AppDomainId=1, InDebugMode=False, InDiagnosticMode=False, FunctionsExtensionVersion=~4)

Contents of the requirements.txt file:

azure-functions
msal

On my computer function runs fine but after deployment there are errors:

Host initialized (201ms)
ModuleNotFoundError: No module named '_cffi_backend'
thread '<unnamed>' panicked at /github/home/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pyo3-0.18.3/src/err/mod.rs:790:5:
Python API call failed
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I have no clue what I'm doing wrong, it looks like some dependencies are missing.

bhagyshricompany commented 11 months ago

Thanks for reporting pls share the all repro steps with your sample code.invocation id,timestamp,region etc.

microsoft-github-policy-service[bot] commented 10 months ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.