[mod_python] mod_python, python_handler error "Can't get/create interpreter"

Sean Glover seanglover at sympatico.ca
Mon Apr 23 14:53:07 EDT 2007

Hello, I recently started using python 2.5 on my FreeBSD machine.  I had a
version of mod_python up and running (sorry, I don't recall which one)
against python 2.4.  I used the ports packages system to install mod_python
3.3.1 without incident.  It replaced the old mod_python.so module and put
the necessary python modules in my python2.5 site-packages directory.  I
left my httpd.conf configuration the same, restarted, and hit my mod_python
test page and receive an internal server error.  Below is a paste from my

Could anyone suggest a solution to get mod_python (with python 2.5) working
with my apache 2.2 server again?



# mod_python.so module

-rwxr-xr-x  1 root  wheel  122135 Apr 23 12:43


# mod_python python modules (/usr/local/lib/python2.5/site-packages)

drwxr-xr-x   2 root  wheel    1024 Apr 23 12:43 mod_python

-rw-r--r--   1 root  wheel     254 Apr 23 12:43


# apache httpd.conf file entry

LoadModule python_module libexec/apache22/mod_python.so


# test .htaccess (http://randonom.com/test/python/mptest.py)

AddHandler mod_python .py

PythonHandler mptest

PythonDebug On


# httpd-error.log after hitting the URL above ^

[Mon Apr 23 13:37:40 2007] [error] get_interpreter: no interpreter callback

[Mon Apr 23 13:37:40 2007] [error] [client] python_handler:
Can't get/create interpreter. 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20070423/bedbf6b2/attachment.html

More information about the Mod_python mailing list