Can you elaborate on “just install and update your python version through
ports and install everything you need from there”?

I’m using Python 2.5 (from here: http://pythonmac.org/packages/)--do you
mean Python 2.5.1?

Matt


On 10/25/07 9:09 PM, "Kristinn Örn Sigur›sson"
<[EMAIL PROTECTED]> wrote:

> That's too much of a hack when you can just install and update your python
> version through ports and install everything you need from there, without
> touching the MacOSX system itself. I guess you can use /usr/local without
> destroying the OSX, but still... I think the ports way is better. :-)
> 
> Just my 2 cents.
> 
> On 10/26/07, Matthew Wensin <[EMAIL PROTECTED]  <mailto:[EMAIL PROTECTED]>
> > wrote:
>> 
>> I've dealt with that exact error before, just yesterday, incidentally.  What
>> I did to fix:
>> 
>> $ locate libpq.5
>> 
>> If this returns nothing, try running:
>> 
>> $ sudo /usr/libexec/locate.updatedb
>> 
>> And then $ locate libpq.5 again.
>> 
>> Go to the directory containing libpq.5 (for me it was /usr/local/pgsql/lib,
>> and create a symlink called libpq.4.dylib to point to it, like so:
>> 
>> /usr/local/pgsql/lib username$ sudo ln -s libpq.5.0.dylib libpq.4.dylib
>> 
>> See if that helps.  Worked for me.
>> 
>> Matt
>> 
>> 
>> 
>> On 10/25/07 6:58 PM, "Frank" < [EMAIL PROTECTED]> wrote:
>> 
>>> >
>>> > All-
>>> >
>>> > Having a rough go getting database bindings in OS X.
>>> >
>>> > I've installed psycopg2 using the package here:
>>> > 
>>> 
http://pythonmac.org/packages/py25-fat/mpkg/psycopg2-2.0.5.1-py2.5-macosx10.>>>
4.
>>> > zip
>>> >
>>> > When I run 'python manage.py shell' I get the following... any ideas
>>> > on how to fix this?
>>> >
>>> > Traceback (most recent call last):
>>> >   File "manage.py", line 11, in <module>
>>> >     execute_manager(settings)
>>> >   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
>>> > python2.5/site-packages/django/core/management/__init__.py", line 275,
>>> > in execute_manager
>>> >     utility.execute()
>>> >   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
>>> > python2.5/site-packages/django/core/management/__init__.py", line 225,
>>> > in execute
>>> >     self.fetch_command(subcommand).run_from_argv( self.argv)
>>> >   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
>>> > python2.5/site-packages/django/core/management/base.py", line 70, in
>>> > run_from_argv
>>> >     self.execute(*args, **options.__dict__)
>>> >   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
>>> > python2.5/site-packages/django/core/management/base.py", line 84, in
>>> > execute
>>> >     output = self.handle(*args, **options)
>>> >   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
>>> > python2.5/site-packages/django/core/management/base.py", line 166, in
>>> > handle
>>> >     return self.handle_noargs(**options)
>>> >   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
>>> > python2.5/site-packages/django/core/management/commands/shell.py",
>>> > line 17, in handle_noargs
>>> >     from django.db.models.loading import get_models
>>> >   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
>>> > python2.5/site-packages/django/db/__init__.py", line 17, in <module>
>>> >     backend = __import__('%s%s.base' % (_import_path,
>>> > settings.DATABASE_ENGINE), {}, {}, [''])
>>> >   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
>>> > python2.5/site-packages/django/db/backends/postgresql_psycopg2/
>>> > base.py ", line 14, in <module>
>>> >     raise ImproperlyConfigured("Error loading psycopg2 module: %s" %
>>> > e)
>>> > django.core.exceptions.ImproperlyConfigured: Error loading psycopg2
>>> > module: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/
>>> > python2.5/site-packages/psycopg2/_psycopg.so, 2): Library not loaded: /
>>> > usr/local/pgsql/lib/libpq.4.dylib
>>> >   Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/
>>> > lib/python2.5/site-packages/psycopg2/_psycopg.so
>>> >   Reason: image not found
>>> >
>>> >
>>>> > >
>> 
>> 
>> 
>> 
> 
>  
> 
> > 
> 



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