Hi there ...

I'm running Django-svn, mod_python 3.3.1, apache 2.2.3-11, python 2.5.2,
psycopg 1.2.21 & mxdatetime 2.0.6.

On my machine I can run everything perfectly fine via the manage.py shell
as well as the development server.  However, when I try to fire up a
connection running out of Apache/mod_python, I get the following error:

[Wed May 28 17:20:56 2008] [error] [client 132.183.93.134]   File
"/usr/local/lib/python2.5/site-packages/django/db/backends/postgresql/base.py",
line 14, in <module>\n    raise ImproperlyConfigured("Error loading
psycopg module: %s" % e)
[Wed May 28 17:20:56 2008] [error] [client 132.183.93.134]
ImproperlyConfigured: Error loading psycopg module: No module named
psycopg


Note that if I do 'sudo -u apache python' (I'm presuming that user apache
is loading python, is that not correct?) I can run an 'import psycopg'
just fine.

There's a thread in the google group archives at: 
http://tinyurl.com/6okkqo

Unfortunately, the OP appears to have solved the problem on his own and
only said that he was being stupid - didn't mention what his problem was
:)  None of the advice given by the people in that thread appears to 
be of use here - given that everything works except in the case of running
directly out of mod_python.

Can anyone steer me back on course here?  

Thanks
-J


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