Description
- Package Name: bcrypt
- Package Version: 4.3.0
- Operating System: Linux
- Python Version: python3.9
Describe the bug
I upgrade my python Azure Fonction App and got a import module error of glibc 2.34
I use paramiko to make SFTP exchange. And paramiko is using bcrypt to handle sshkey.
The new version of bcrypt 4.3.0 is causing a similiar issue of cryptography 44.0.0.
As mention in this post
While pinning to 43.0.x is a short term workaround, it is not the correct solution. pyca/cryptography is one of the earlier projects to ship a 2.34 wheel, but usage will only expand in the next year.
I think bcrypt is an other project to ship to Glibc 2.34
As work around, I downgrade the version to bcrypt to 4.2.1.
To Reproduce
Create a Azure Fonction App and import bcrypt module
function_app.py
import azure.functions as func
app = func.FunctionApp()
@app.function_name(name="HelloWorld")
@app.route(route="req")
def main(req: func.HttpRequest) -> str:
import bcrypt
requirements.txt
bcrypt==4.3.0
Expected behavior
Module should be importable
Screenshots
#.... things link with my functionapp
import paramiko
File "/home/site/wwwroot/.python_packages/lib/site-packages/paramiko/__init__.py", line 22, in <module>
from paramiko.transport import (
File "/home/site/wwwroot/.python_packages/lib/site-packages/paramiko/transport.py", line 98, in <module>
from paramiko.dsskey import DSSKey
File "/home/site/wwwroot/.python_packages/lib/site-packages/paramiko/dsskey.py", line 37, in <module>
from paramiko.pkey import PKey
File "/home/site/wwwroot/.python_packages/lib/site-packages/paramiko/pkey.py", line 32, in <module>
import bcrypt
File "/home/site/wwwroot/.python_packages/lib/site-packages/bcrypt/__init__.py", line 13, in <module>
from ._bcrypt import (
ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /home/site/wwwroot/.python_packages/lib/site-packages/bcrypt/_bcrypt.abi3.so)
Additional context
Deployment done from github action, by zip artefact.