Image Update not Working in Production, Please Help

39 views
Skip to first unread message

Wisdom Ugochukwu

unread,
May 15, 2022, 7:39:43 AM5/15/22
to django...@googlegroups.com
I hosted a Django project on Name Cheap, it works well on development, but on going live I noticed image creation and update is not working 
here is the error I'm getting! Please kindly help

ImportError at /admin/store/otherimages/2/change/

/lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/aiteglbu/virtualenv/humanitiesmed/3.8/lib/python3.8/site-packages/PIL/_imaging.cpython-38-x86_64-linux-gnu.so)
Request Method:POST
Request URL:http://humanities.aitechnologiesng.com/admin/store/otherimages/2/change/
Django Version:3.2.9
Exception Type:ImportError
Exception Value:
/lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/aiteglbu/virtualenv/humanitiesmed/3.8/lib/python3.8/site-packages/PIL/_imaging.cpython-38-x86_64-linux-gnu.so)
Exception Location:/home/aiteglbu/virtualenv/humanitiesmed/3.8/lib/python3.8/site-packages/PIL/Image.py, line 89, in <module>
Python Executable:/home/aiteglbu/virtualenv/humanitiesmed/3.8/bin/python
Python Version:3.8.6
Python Path:
['',
 '/home/aiteglbu/humanitiesmed',
 '/opt/alt/python38/lib64/python38.zip',
 '/opt/alt/python38/lib64/python3.8',
 '/opt/alt/python38/lib64/python3.8/lib-dynload',
 '/home/aiteglbu/virtualenv/humanitiesmed/3.8/lib64/python3.8/site-packages',
 '/home/aiteglbu/virtualenv/humanitiesmed/3.8/lib/python3.8/site-packages']
Server time:Sun, 15 May 2022 01:11:56 +0000

Kasper Laudrup

unread,
May 18, 2022, 5:02:37 PM5/18/22
to django...@googlegroups.com
On 15/05/2022 03.15, Wisdom Ugochukwu wrote:
> I hosted a Django project on Name Cheap, it works well on development,
> but on going live I noticed image creation and update is not working
> here is the error I'm getting! Please kindly help
>
>
> /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/aiteglbu/virtualenv/humanitiesmed/3.8/lib/python3.8/site-packages/PIL/_imaging.cpython-38-x86_64-linux-gnu.so <http://imaging.cpython-38-x86_64-linux-gnu.so>)
>

Seems like you've somehow managed to use a version of PIL compiled
against another version of glibc than the one running on your live system.

Hard to guess how you've managed to do that without any details but I
might assume that you've simply copied you're virtual environment from
development (running another, incompatiable glibc version) to production.

That's not the way to do it. Keep your requirements in a text file
(requirements.txt) and setup a fresh virtual environment on your
production system instead installing the requirements from that file.

Kind regards,
Kasper Laudrup
OpenPGP_0xE5D9CAC64AAA55EB.asc
OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages