psycopg2 error
Luis P. Mendes
lupe at localhost.localdomain
Wed May 9 08:24:36 EDT 2007
Hello Martin,
Em Wed, 09 May 2007 06:17:09 +0200, Martin v. Löwis escreveu:
>> ImportError: libpq.so.5: cannot open shared object file: No such file or
>> directory
>>
>> libpq files are readable by the world: root at lince pgsql # ll lib/ -d
>> drwxr-xr-x 3 postgres postgres 1528 2007-05-07 23:25 lib/
>
> Don't try this as the root user, but as the one for whom it is failing:
> What does "file /usr/local/psql/lib/libpq.so.5" say?
The problem was that I couldn't issue this command. Permissions were set
incorrectly:
$ ll /usr/local/pg* -d
drwxr-x--- 10 postgres postgres 712 2007-05-08 20:43 /usr/local/pgsql
Once corrected to:
$ ll /usr/local/pg* -d
drwxr-xr-x 10 postgres postgres 712 2007-05-08 20:43 /usr/local/pgsql
I can import psycopg2 fine.
Thank you for your help!
Best regards,
Luis
More information about the Python-list
mailing list