[mod_python] undefined symbol "floor"

Matt Beauregard matt at designscape.com.au
Wed Jul 4 11:59:39 EST 2001

We just set up mod_python and are getting the following strange error:

Mod_python error: "PythonHandler modpython"

Traceback (most recent call last):
  File "/usr/local/lib/python2.1/site-packages/mod_python/apache.py", line 189, in Dispatch
    result = object(self.req)
  File "/usr/home/marauder/exchange/modpython.py", line 7, in handler
ImportError: /usr/local/lib/python2.1/lib-dynload/struct.so: Undefined symbol "floor"

We get this any time some code tries to import struct, when running
through mod_python, but not when running from the interpreter.  Any
clues for fixing it would be appreciated.

Using mod_python 2.7.5
Python 2.1 (#2, Jul  3 2001, 17:40:45) 
[GCC 2.95.2 19991024 (release)] on freebsd4
FreeBSD bofh.designscape.com.au 4.2-RELEASE FreeBSD 4.2-RELEASE #0:
Tue Feb 27 12:11:29 EST 2001 marauder at bofh.designscape.com.au:/usr/src/sys/compile/BOFH  i386


Matt Beauregard
BOFH, Designscape
Ph: +61 2 9361 4233   Fx: +61 2 9361 4633

Permission is given for unlimited distribution of this work under the
Copyright Act 1968 (2001 amended).  Unless otherwise stated, you agree
that these terms also cover works which you send in response.

More information about the Mod_python mailing list