'import mod_python' fails

Skip Montanaro skip at pobox.com
Wed Jul 31 17:38:51 EDT 2002


    >> >>> from mod_python import apache
    >> Traceback (most recent call last):
    >> File "<stdin>", line 1, in ?
    >> ImportError: No module named mod_python

    Peter> I don't know if this helps, but I have searched my whole system
    Peter> and there is no file named 'mod_python.pyo' anywhere!

What about mod_python.so?  It's an extension module.  My guess is the
library search path Apache uses doesn't include the directory containing
your .so file.  Once you locate your .so file, try running Apache with
LD_LIBRARY_PATH set appropriately.

-- 
Skip Montanaro
skip at pobox.com
consulting: http://manatee.mojam.com/~skip/resume.html




More information about the Python-list mailing list