ImportError at / /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found

Garry Doherty 1 Reputation point
2022-09-08T21:00:00.283+00:00

Help needed!!

ImportError at /239159-error.png
/lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28' not found (required by /home/site/wwwroot/antenv/lib/python3.7/site-packages/cryptography/hazmat/bindings/_rust.abi3.so) Request Method: GET Request URL: http://www.mudataco.com/ Django Version: 2.1.2 Exception Type: ImportError Exception Value: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28' not found (required by /home/site/wwwroot/antenv/lib/python3.7/site-packages/cryptography/hazmat/bindings/_rust.abi3.so)
Exception Location: /home/site/wwwroot/antenv/lib/python3.7/site-packages/cryptography/hazmat/primitives/asymmetric/utils.py in <module>, line 6
Python Executable: /opt/python/3.7.12/bin/python3.7
Python Version: 3.7.12
Python Path:
['/opt/python/3.7.12/bin',
'/home/site/wwwroot',
'/opt/startup/app_logs',
'/opt/startup/code_profiler',
'/home/site/wwwroot/antenv/lib/python3.7/site-packages',
'/opt/python/3.7.12/lib/python37.zip',
'/opt/python/3.7.12/lib/python3.7',
'/opt/python/3.7.12/lib/python3.7/lib-dynload',
'/opt/python/3.7.12/lib/python3.7/site-packages']
Server time: Thu, 8 Sep 2022 20:47:05 +0000

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,961 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2022-09-11T23:05:57.567+00:00

    Try using either Python 3.8 or 3.9 runtime images for your app service. It could be an issue with the 3.7 image. If that does or doesn't work, please comment down below.


  2. Saradindu Sarkar 1 Reputation point
    2022-11-03T15:12:42.19+00:00

    You can try using the below command to fix this issue:
    apt-get update
    apt-get install -y libc6 libc6-dev

    This worked for me and was able to fix the GLIBC_2.28 not found error


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.