Hi

Using (on windows)

Apache/2.2.15 (Win32)
mod_wsgi/3.0
Python/2.6.5
Trac 0.12

My site works using tracd, but not via Apache and mod_wsgi due to not
being able to import _psycopg2

Reproducing the error in trac by putting an import into the wsgi file,
I get

[Wed Jul 21 18:18:56 2010] [error] [client 127.0.0.1]     import
psycopg2
[Wed Jul 21 18:18:56 2010] [error] [client 127.0.0.1]   File "C:\
\Python26\\lib\\site-packages\\psycopg2\\__init__.py", line 69, in
<module>
[Wed Jul 21 18:18:56 2010] [error] [client 127.0.0.1]     from
_psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
[Wed Jul 21 18:18:56 2010] [error] [client 127.0.0.1] ImportError: DLL
load failed: The specified module could not be found.

This is not changed by running the apache service as the same user as
ran the tracd, running httpd from the command line as the same user,
and/or using site.addsitedir to ensure that the result of sys.path is
the same in both cases.

Recompiling psycopg2 in accordance with 
http://groups.google.com/group/modwsgi/msg/107d04edc473d732
doesn't help.

Are there any other ideas on why the dll search paths might be
different between tracd and mod_wsgi.

Thanks







-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to