On Sep 18, 1:03 am, "Whyneedsgoogle2know?" <[EMAIL PROTECTED]>
wrote:
> > > Traceback (most recent call last):
> > > File "<stdin>", line 1, in <module>
> > > File "/usr/lib/python2.5/site-packages/psycopg2/__init__.py", line
> > > 60, in <module>
> > > from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
> > > ImportError: dlopen(/usr/lib/python2.5/site-packages/psycopg2/
> > > _psycopg.so, 2): Library not loaded: libpq.5.dylib
> > > Referenced from: /usr/lib/python2.5/site-packages/psycopg2/
> > > _psycopg.so
> > > Reason: image not found
>
> > > Any idea how to fix that?
>
> > Anyway, now that I have had my grumble.
>
> So noted.
>
> > Post the output of running
> > file on the following:
>
> > 1. 'python' executable used.
>
> andrej$ file /usr/bin/python
> /usr/bin/python: Mach-O executable i386
>
> > 2. /usr/lib/python2.5/site-packages/psycopg2/_psycopg.so
>
> andrej$ file /usr/lib/python2.5/site-packages/psycopg2/_psycopg.so
> /usr/lib/python2.5/site-packages/psycopg2/_psycopg.so: Mach-O bundle
> i386
>
> > 3. libpq.5.dylib where ever it is. Use otool -L on _psycopg.so to find
> > out where it is coming from.
>
> andrej$ file /Library/PostgreSQL/8.3/lib/libpq.5.dylib
> /Library/PostgreSQL/8.3/lib/libpq.5.dylib: Mach-O universal binary
> with 2 architectures
> /Library/PostgreSQL/8.3/lib/libpq.5.dylib (for architecture ppc):       Mach-
> O dynamically linked shared library ppc
> /Library/PostgreSQL/8.3/lib/libpq.5.dylib (for architecture i386):
> Mach-O dynamically linked shared library i386
>
> > All three need to have the i386 architecture. Thus make sure you check
> > libpq as well.
>
> hmmm.

All I can suggest at this point then is to do an otool -L on /Library/
PostgreSQL/8.3/lib/libpq.5.dylib and work out what its dependants are.
For each of those run 'file' to check architectures. Repeat this
process down until you have got to the bottom and verified that all
have i386.

If _pyscopg has other dependencies, also check those as well.

Does seem a bit odd doesn't it.

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

Reply via email to