Re: psycopg/psycopg2 - error at the loading

2007-07-08 Thread uxmal



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
-~--~~~~--~~--~--~---



psycopg/psycopg2 - error at the loading

2007-07-06 Thread 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!).

But after upgrading it mysteriously decided to stop working...


using psycopg :
 Error loading psycopg module: libpq.so.5: cannot open shared object
file: No such file or directory

think it is related to a path configured somewhere, but even by re ./
configure-ing psycopg with the postgresql include paths, psycopg
continues to show the error .. :(
or it can be changed somewhere in a psycopg conf ?


so I tried to use psycopg2, but now  :
Error loading psycopg2 module: cannot import name tz
which is a bit enigmatic :)


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
-~--~~~~--~~--~--~---