problem with mod_python

Pradnyesh Sawant spradml at
Sun Feb 17 05:29:15 CET 2008

I have a small program which does 'import hashlib'. This program runs fine
with python2.5. But when I try running the same program through mod_python,
I get the error: 'ImportError: No module named hashlib' in the apache2

Searching online suggested me to include or in apache2.
but I don't see that in a package for debian lenny (the system I'm using).

So, my Q is, is it possible to make mod_python use the same PYTHONPATH as
the python2.5 interpreter? if so, how?

any other suggestions to solve the above problem are welcome too.
warm regards,
Pradnyesh Sawant
We are not just our behaviour. We are the person managing our behaviour.
--The One Minute Manager
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: Digital signature
URL: <>

More information about the Python-list mailing list