Re: psycopg/psycopg2 - error at the loading
On 7/6/07, uxmal <[EMAIL PROTECTED]> wrote: > using psycopg : > Error loading psycopg module: libpq.so.5: cannot open shared object > file: No such file or directory PostgreSQL's libraries often install into a location where the default ld configuration won't find them; locate the PostgreSQL 'lib' directory on your system, and update the ld load path to include that directory. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: psycopg/psycopg2 - error at the loading
Look at /etc/ld.so.conf and "man ldconfig". > When I reinstall psycopg 1 or 2 (properly configured with my lib path / > usr/local/pgsql/lib/), > it works (no error at the install of psycopg) > > but then it can't find this damn lib ! > > --- > > >>> import psycopg > > Traceback (most recent call last): > File "", line 1, in > ImportError: libpq.so.5: cannot open shared object file: No such file > or directory --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: psycopg/psycopg2 - error at the loading
On Jul 6, 4:05 pm, Thomas Guettler <[EMAIL PROTECTED]> wrote: > Am Freitag, 6. Juli 2007 15:43 schrieb uxmal: > > > hello, > > I know it isn't directly related to django, but well my django depends > > on it... > > > yesterday I installed postgresql, mxBase, and psycopg 1.1 on openSUSE > > 10.2, > > and it worked fine until today (Django is really cool!). > > > using psycopg : > > Error loading psycopg module: libpq.so.5: cannot open shared object > > file: No such file or directory > > > > But after upgrading it mysteriously decided to stop working... > > What kind of upgrade? (SuSE, Django, Hardware, ...) > > Thomas I've made a SuSE upgrade > This is the shared library provided by the postgres or postgres-devel > RPM. > > It should be under /usr/lib or /usr/lib64. > > Starting the sql shell (psql) should fail, too. It works fine, looking like nothing have changed on the postgresql side When I reinstall psycopg 1 or 2 (properly configured with my lib path / usr/local/pgsql/lib/), it works (no error at the install of psycopg) but then it can't find this damn lib ! --- >>> import psycopg Traceback (most recent call last): File "", line 1, in ImportError: libpq.so.5: cannot open shared object file: No such file or directory --- >>> import psycopg2 Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.5/site-packages/psycopg2/__init__.py", line 60, in from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID ImportError: libpq.so.5: cannot open shared object file: No such file or directory --- I don't understand how it can have changed after a simple software upgrade... Is there a possibility to change the path to the lib somewhere after the install? (a conf file? ) thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: psycopg/psycopg2 - error at the loading
Am Freitag, 6. Juli 2007 15:43 schrieb uxmal: > hello, > I know it isn't directly related to django, but well my django depends > on it... > > yesterday I installed postgresql, mxBase, and psycopg 1.1 on openSUSE > 10.2, > and it worked fine until today (Django is really cool!). > > > > using psycopg : > Error loading psycopg module: libpq.so.5: cannot open shared object > file: No such file or directory This is the shared library provided by the postgres or postgres-devel RPM. It should be under /usr/lib or /usr/lib64. Starting the sql shell (psql) should fail, too. > But after upgrading it mysteriously decided to stop working... What kind of upgrade? (SuSE, Django, Hardware, ...) Thomas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---