15

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?

Udara Seneviratne
  • 2,303
  • 1
  • 33
  • 49

2 Answers2

13

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

Udara Seneviratne
  • 2,303
  • 1
  • 33
  • 49
12

Was facing the same Issue worked after Installing:

pip install psycopg2-binary 
Snivio
  • 1,741
  • 1
  • 17
  • 25