On 08/03/06 20:50, [EMAIL PROTECTED] wrote:
> Hello Django Users,
> 
> I'm trying to install Django on a mac os x (10.3) but i'm experiencing
> some problems i can't solve.
> When i run import django in mu interpreter it's working fine but when i
> start the server i get the following error message.
> 
> 
> Unhandled exception in thread started by <function inner_run at
> 0x406130>
> Traceback (most recent call last):
>   File
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/management.py",
> line 757, in inner_run
>     validate()
>   File
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/management.py",
> line 741, in validate
>     num_errors = get_validation_errors(outfile)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/management.py",
> line 634, in get_validation_errors
>     import django.models
>   File
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/models/__init__.py",
> line 1, in ?
>     from django.core import meta
>   File
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/meta/__init__.py",
> line 3, in ?
>     from django.core import db
>   File
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/db/__init__.py",
> line 23, in ?
>     raise ImproperlyConfigured, "Could not load database backend: %s.
> Is your DATABASE_ENGINE setting (currently, %r) spelled correctly?
> Available options are: %s" % \
> django.core.exceptions.ImproperlyConfigured: Could not load database
> backend: Failure linking new module: /opt/pgsql/lib/libpq.4.dylib:
> dyld: /usr/bin/python can't open library: /opt/pgsql/lib/libpq.4.dylib
> (No such file or directory, errno = 2)
> . Is your DATABASE_ENGINE setting (currently, 'postgresql') spelled
> correctly? Available options are: 'ado_mssql', 'mysql', 'postgresql',
> 'sqlite3'
> 
> 
> what i can figure out from this message is that the scripts can't
> locate libpq.4.dylib. It's coorect that this file isn't located in the
> path (/opt/pgsql/lib/libpq.4.dylib). It's located in a other path
> (/usr/local/pgsql/lib/libpq.4.dylib)
> 
> is there something i can adjust so it will work ?
> 
> any suggestions are welcome, 
> 
> kind regards
> 
> Richard Mendes

Hi Richard

Open up a shell and type this (all on one line):

sudo ln -s /usr/local/pgsql/lib/libpq.4.dylib /opt/pgsql/lib/libpq.4.dylib

This symlinks the library to where python is looking for it.

hth
cheers
Steven

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

Reply via email to