Sorry if I wasn't clear about what I was talking about. :-)
I'm using Darwin ports. They work similar to BSD ports (completely different
but the idea is probably from there). With that you can install alot of *nix
applications. The homepage for Darwin ports is http://darwinports.com/.
Darwin ports installs everything to a new location, /opt/local, so it won't
interrupt the base MacOSX system. Fink which is an apt-get workalike is also
a good package manager. You can probably install everything from there as
well. Fink installs everything under /sw (you can change it).

I installed postgresql, psycopg, and python through Darwin ports. The only
thing I need to do to make the system use python from Darwin ports over the
MacOSX version of python is by putting /opt/local/bin and /opt/local/sbin
before /usr/bin and /usr/sbin in the PATH variable in my .profile (for my
shell environment). This is very handy, now I will never have problems
updating python, postgresql and psycopg because I can update all installed
applications (from Darwin ports) with one command. Everything worked fine
after I installed those things. The only thing I had to do was to get the
svn version of Django and it just worked. :-)

Hope this helps.

Kristinn.

On 10/26/07, Matthew Wensin <[EMAIL PROTECTED]> wrote:
>
>  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]> <[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