Submitted by: ellonweb
I get this error when my project tries to import psycopg.
ImportError: DLL load failed: The specified module could not be
found.
It traces back to this:
File
"C:\Python26\lib\site-packages\psycopg2\init.py",
line 69, in
from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
It's worth noting that this works fine from a python prompt,
this error only occurs when used with Apache/mod_wsgi. It also
works fine under Django's test server.
The files are all there, it's all on my Python path (otherwise
I'd get a different type of import error). All the permissions are
fine (I can install an older version of psycopg in place and it
works fine).
I realize that this isn't necessarily a bug in psycopg but I've
been unable to resolve the problem from speaking to people in
#python or #django on freenode, and I've tried everything I can
find on google! Was hoping you might be able to shed some more
light on the issue.
psycopg 2.0.14 works fine. 2.2.1 and 2.3.2 both have this
problem.
Running Windows, Python 2.6.5, Postgre 8.4.4, mod_wsgi 3.3,
Django 1.2.3, Apache 2.2.17. I have a friend running my code with a
similar setup and they have the same error.
Your help would be much appreciated.