'import mod_python' fails

Peter Bittner peter.bittner at gmx.net
Wed Jul 31 17:17:00 EDT 2002


Hi there!

I have a question about getting mod_python to run. (Please do not
flame me, I know there is a mod_python mailing list!)

I have SuSE Linux 8.0 and I have Python, mod_python and Apache
installed using YaST, the SuSE setup tool. At the first glance
everything seems alright (Apache shows at startup that it does load
the mod_python module.) But I can .py-scripts be executed, because
(mod_)python fails to import the Python module 'mod_python':

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

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

I'd really be happy about any help to make me get running mod_python
on my Apache! Please help!
Cheers, Peter



More information about the Python-list mailing list