2

I'm trying to run a cgi-bin site on localhost. And I get the following error:

<type 'exceptions.ImportError'>: /usr/local/lib/python2.7/dist-packages/psycopg2/_psycopg.so: undefined symbol: lo_truncate64

enter image description here

My current PostgreSQL version is 9.4.5.

How can I fix the issue?

Akshay Hazari
  • 3,186
  • 4
  • 48
  • 84
yusuf
  • 3,591
  • 8
  • 45
  • 86

1 Answers1

4

The comment by Ali Nikneshan under now deleted answer saved me couple times already when I had this same problem. Not sure why it was deleted, but here I am reposting it in hopes it helps someone:

pip install -U --no-cache-dir --force psycopg2
serg
  • 109,619
  • 77
  • 317
  • 330