[mod_python] ImportError on mathmodule: undefined symbol: PyFPE_jbuf

Graham Dumpleton graham.dumpleton at gmail.com
Thu Apr 26 18:00:54 EDT 2007


You likely have some sort of mismatch with what version of Python you
compiled mod_python with and/or which version it is running as and
what installed Python library files are being found.

What version of Python did you believe was used to compile mod_python?

Was the standard Python 2.3.X which is installed on your system?

Do you have multiple versions of Python installed on your system?

Graham

On 27/04/07, Nate Aune <natea at jazkarta.com> wrote:
> Hello,
>
> I'm trying to set up Trac on my server and having some problems with
> mod_python. When I go to the URL of my Trac instance, I get the
> following error:
>
> Mod_python error: "PythonHandler trac.web.modpython_frontend"
>
> Traceback (most recent call last):
>
>   File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
> 287, in HandlerDispatch
>     log=debug)
>
>   File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
> 457, in import_module
>     module = imp.load_module(mname, f, p, d)
>
>   File "/usr/lib/python2.3/site-packages/trac/web/__init__.py", line 1, in ?
>     from trac.web.api import *
>
>   File "/usr/lib/python2.3/site-packages/trac/web/api.py", line 17, in ?
>     from BaseHTTPServer import BaseHTTPRequestHandler
>
>   File "/usr/lib/python2.3/BaseHTTPServer.py", line 76, in ?
>     import mimetools
>
>   File "/usr/lib/python2.3/mimetools.py", line 6, in ?
>     import tempfile
>
>   File "/usr/lib/python2.3/tempfile.py", line 33, in ?
>     from random import Random as _Random
>
>   File "/usr/lib/python2.3/random.py", line 42, in ?
>     from math import log as _log, exp as _exp, pi as _pi, e as _e
>
> ImportError: /usr/lib/python2.3/lib-dynload/mathmodule.so: undefined
> symbol: PyFPE_jbuf
>
> I've also set up the mpinfo for testing/debugging with these lines in
> my Apache vhost:
>
> <Location /mpinfo>
>    SetHandler mod_python
>    PythonHandler mod_python.testhandler
>    PythonDebug on
> </Location>
>
> When I try to access this url /mpinfo, I get this error:
>
> Mod_python error: "PythonHandler mod_python.testhandler"
>
> Traceback (most recent call last):
>
>   File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
> 287, in HandlerDispatch
>     log=debug)
>
>   File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
> 454, in import_module
>     f, p, d = imp.find_module(parts[i], path)
>
> ImportError: No module named testhandler
>
> Does anyone know what might be the problem?
>
> I'm using Trac 0.10.3.1, mod_python-3.1.3, Apache 2.0.52, and CentOS 4
> (kernel  2.6.9-48.EL)
>
> thanks,
> Nate
>
> --
> Nate Aune - natea at jazkarta.com
> http://www.jazkarta.com
> Plone solutions, consulting and development
> _______________________________________________
> 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