[mod_python] Mod Python startup errors

Graham Dumpleton grahamd at dscpl.com.au
Tue May 2 23:13:44 EDT 2006


gOLeM wrote ..
> one of my friends tried to install datetime module for python and he
> moved some so files here and there. (He doesnt remember which ones :(
> )
> 
> if there is anything you guys could help me on this without me having
> to reinstall python/modpython, i would be very thankful :)
> 
> modpython version 3.2.8
> python version 2.3.5

When you start apache manually, mod_python it will use whatever version
of Python it finds in the PATH. Base on the log messages below, although
you reckon you are using Python 2.3.5, mod_python is using Python 2.2.X.

You need to ensure that python binary for 2.3.5 is in your PATH before
that for Python 2.2.X.

Alternatively, you have so broken the Python 2.3.5 installation that it was
not able to use it and somehow found Python 2.2.X instead.

Graham

> taken from /var/log/httpd/error_log
> 
> [Wed May 03 03:59:12 2006] [error] make_obcallback: could not import
> mod_python.apache.
> 
> Could not find platform independent libraries <prefix>
> Could not find platform dependent libraries <exec_prefix>
> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
> 'import site' failed; use -v for traceback
> /usr/lib/python2.2/os.py:282: Warning: 'yield' will become a reserved
> keyword in the future
> 'import site' failed; use -v for traceback
> ImportError: No module named mod_python.apache
> [Wed May 03 03:59:12 2006] [error] python_handler: no interpreter
> callback found.
> [Wed May 03 03:59:12 2006] [error] make_obcallback: could not import
> mod_python.apache.
> 
> Could not find platform independent libraries <prefix>
> Could not find platform dependent libraries <exec_prefix>
> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
> 'import site' failed; use -v for traceback
> /usr/lib/python2.2/os.py:282: Warning: 'yield' will become a reserved
> keyword in the future
> 'import site' failed; use -v for traceback
> ImportError: No module named mod_python.apache
> [Wed May 03 03:59:12 2006] [error] python_handler: no interpreter
> callback found.
> [Wed May 03 03:59:12 2006] [error] make_obcallback: could not import
> mod_python.apache.
> 
> Could not find platform independent libraries <prefix>
> Could not find platform dependent libraries <exec_prefix>
> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
> 'import site' failed; use -v for traceback
> /usr/lib/python2.2/os.py:282: Warning: 'yield' will become a reserved
> keyword in the future
> 'import site' failed; use -v for traceback
> ImportError: No module named mod_python.apache
> [Wed May 03 03:59:12 2006] [error] python_handler: no interpreter
> callback found.
> [Wed May 03 03:59:12 2006] [error] make_obcallback: could not import
> mod_python.apache.
> 
> Could not find platform independent libraries <prefix>
> Could not find platform dependent libraries <exec_prefix>
> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
> 'import site' failed; use -v for traceback
> /usr/lib/python2.2/os.py:282: Warning: 'yield' will become a reserved
> keyword in the future
> 'import site' failed; use -v for traceback
> ImportError: No module named mod_python.apache
> [Wed May 03 03:59:12 2006] [error] python_handler: no interpreter
> callback found.
> [Wed May 03 03:59:12 2006] [error] make_obcallback: could not import
> mod_python.apache.
> 
> Could not find platform independent libraries <prefix>
> Could not find platform dependent libraries <exec_prefix>
> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
> 'import site' failed; use -v for traceback
> /usr/lib/python2.2/os.py:282: Warning: 'yield' will become a reserved
> keyword in the future
> 'import site' failed; use -v for traceback
> ImportError: No module named mod_python.apache
> [Wed May 03 03:59:12 2006] [error] python_handler: no interpreter
> callback found.
> [Wed May 03 03:59:12 2006] [error] make_obcallback: could not import
> mod_python.apache.
> 
> Could not find platform independent libraries <prefix>
> Could not find platform dependent libraries <exec_prefix>
> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
> 'import site' failed; use -v for traceback
> /usr/lib/python2.2/os.py:282: Warning: 'yield' will become a reserved
> keyword in the future
> 'import site' failed; use -v for traceback
> ImportError: No module named mod_python.apache
> [Wed May 03 03:59:12 2006] [error] python_handler: no interpreter
> callback found.
> [Wed May 03 03:59:12 2006] [error] make_obcallback: could not import
> mod_python.apache.
> 
> Could not find platform independent libraries <prefix>
> Could not find platform dependent libraries <exec_prefix>
> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
> 'import site' failed; use -v for traceback
> /usr/lib/python2.2/os.py:282: Warning: 'yield' will become a reserved
> keyword in the future
> 'import site' failed; use -v for traceback
> ImportError: No module named mod_python.apache
> [Wed May 03 03:59:12 2006] [error] python_handler: no interpreter
> callback found.
> [Wed May 03 03:59:12 2006] [error] make_obcallback: could not import
> mod_python.apache.
> 
> Could not find platform independent libraries <prefix>
> Could not find platform dependent libraries <exec_prefix>
> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
> 'import site' failed; use -v for traceback
> /usr/lib/python2.2/os.py:282: Warning: 'yield' will become a reserved
> keyword in the future
> 'import site' failed; use -v for traceback
> ImportError: No module named mod_python.apache
> [Wed May 03 03:59:12 2006] [error] python_handler: no interpreter
> callback found.
> [Wed May 03 03:59:12 2006] [notice] caught SIGTERM, shutting down
> Could not find platform independent libraries <prefix>
> Could not find platform dependent libraries <exec_prefix>
> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
> 'import site' failed; use -v for traceback
> [Wed May 03 03:59:13 2006] [notice] Digest: generating secret for
> digest authentication ...
> [Wed May 03 03:59:13 2006] [notice] Digest: done
> [Wed May 03 03:59:14 2006] [notice] mod_python: Creating 8 session
> mutexes based on 150 max processes and 0 max threads.
> [Wed May 03 03:59:14 2006] [notice] Apache/2.0.47 (Fedora) configured
> -- resuming normal operations
> 
> 
> 
> --
> The Purpose of Life is a life of purpose -- Leider, Richard
> Quitters never win and Winners never quit   -- Napolean Hill
> 
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python


More information about the Mod_python mailing list