Graham Dumpleton
graham.dumpleton at gmail.com
Tue Jan 12 17:19:40 EST 2010
2010/1/13 mog <lists at elasticmind.net>: > 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/" The mod_python.so is using /usr/local/ installation of Python, but that installation doesn't have the Python components of mod_python installed. Read: http://www.dscpl.com.au/wiki/ModPython/Articles/GettingModPythonWorking Graham > 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 > > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python > >
|