[mod_python] ImportError on mathmodule: undefined symbol: PyFPE_jbuf

Nate Aune natea at jazkarta.com
Thu Apr 26 10:51:55 EDT 2007


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


More information about the Mod_python mailing list