Python 3.11 upgrade - lib64/libc.so.6: version `GLIBC_2.28' not found

1.8k views Asked by At

Python 3.11 upgrade throws error: lib64/libc.so.6: version GLIBC_2.28' not found [ERROR] Runtime.ImportModuleError: Unable to import module 'xxxxx': /lib64/libc.so.6: version GLIBC_2.28' not found (required by /opt/python/lib/python3.11/site-packages/cryptography/hazmat/bindings/_rust.abi3.so).

I get this error while trying to upgrade to Python 3.11

I tried removing Cryptography from requirements.txt no luck. And tried Python 3.10, same issue. Works fine with Python 3.9

How do i fix it in Python 3.11?

1

There are 1 answers

2
Rbadiger On

Updating Cryptography to 3.48 fixed the issue for Python 3.11