stumped by WSGI module import errors

Posted by rguha on Stack Overflow See other posts from Stack Overflow or by rguha
Published on 2010-05-27T01:42:06Z Indexed on 2010/05/27 1:51 UTC
Read the original article Hit count: 309

Filed under:
|
|

Hi, I'm writing a bare bones Python wsgi application and am getting stumped by module import errors. I have a .py file in the current directory which initially failed to import. By adding

sys.path.insert(0, '/Users/guhar/Sites/acom')

the import of the module worked. But I now try and import a module that I had installed via easy_install and it fails to import. I tried setting

sys.path.insert(0, '/Library/Python/2.5/site-packages/')

which contains the egg file, but to no avail. I would've thought that all packages under "/Library/Python/2.5/site-packages/" would be available to a WSGI application.

Does anybody have any pointers?

© Stack Overflow or respective owner

Related posts about python

Related posts about mod-wsgi