Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Django error : version GLIBC_PRIVATE not defined

Tags:

python

django

I have a python Django project. When I run its manage.py script as manage.py runserver via the virtual env, I get the following import error. NOTE: I am using Fedora 26

ImportError:
 /home/xxxxx/Projects/Dev/yyyy/ENV/new_env/lib/python2.7/site-packages/psycopg2/.libs/libresolv-2-c4c53def.5.so:
symbol __res_maybe_init, version GLIBC_PRIVATE not defined in file
libc.so.6 with link time reference

What may be the reason?

like image 754
Udara Seneviratne Avatar asked Feb 14 '18 05:02

Udara Seneviratne


1 Answers

Finally, I could find the solution. I was using an old version of

psycopg2

. So, I removed previously installed version with pip uninstall psycopg2 and reinstalled it as pip install psycopg2

like image 81
Udara Seneviratne Avatar answered Oct 07 '22 01:10

Udara Seneviratne