[SPAM] [mod_python] ImportError: No module named mod_python.apache

mog lists at elasticmind.net
Tue Jan 12 08:44:47 EST 2010


On 12/01/2010 12:08, Saeed Bhuta wrote:
> mog wrote:
>> On 12/01/2010 09:28, Saeed Bhuta wrote:
>>> Hi All,
>>>
>>> I am trying to install mod_python for Apache 2.2 for use with Python 
>>> 2.6. An internal server error is displayed when the python is script 
>>> is accessed from the web and Apache's error log has the following:
>>>
>>> "*[Tue Jan 12 08:16:56 2010] [error] make_obcallback: could not 
>>> import mod_python.apache.\n
>>> ImportError: No module named mod_python.apache
>>> [Tue Jan 12 08:16:56 2010] [error] make_obcallback: Python path 
>>> being used "['/usr/local/lib/python2.6', 
>>> '/usr/local/lib/python2.6/plat-linux2', '/usr/local$
>>> [Tue Jan 12 08:16:56 2010] [error] get_interpreter: no interpreter 
>>> callback found.
>>> [Tue Jan 12 08:16:56 2010] [error] [client 195.157.141.25] 
>>> python_handler: Can't get/create interpreter., referer: 
>>> http://placraa1.miniserver.com/py/*"
>>>
>>> I have installed Apache 2.2 on Ubuntu Karmic Koala 9.10
>>>
>>> Any help is greatly appreciated.
>>>
>>> Saeed
>>
>>
>> Hi,
>>
>> What is this going to be used for? Is it for a new project you are 
>> making?
>>
>> mog
>>    
> Hi Mog,
>
> Not for a new project, I managed to have mod_python working on Apache 
> on my laptop. But its not working on the VPS.
>
> Saeed.


Hi Saeed,

It's much better if you keep conversations on the mailing list, because 
that way everyone can join in and help.

Have you made sure to load the mod_python module into Apache via the 
httpd.conf file?

Also, since mod_python is deprecated and one day will likely stop 
working altogether. I would advise you look at migrating any mod_python 
projects to use WSGI or something similar to ensure they continue to be 
supported.

mog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20100112/49f9cd67/attachment.html


More information about the Mod_python mailing list