[mod_python] mod_python not working on Mac OS X 10.3

Mark McClain mark at gsoa.net
Sun Dec 28 16:07:22 EST 2003


Here is what I use to build on 10.3.2:

1) Build and install apache2

2) Unpack the mod_python distribution

3) make the following changes to the configure script. here it is in  
modified form...

if test "$PyFRAMEWORKDIR" != "no-framework"; then
   if test -n "$PyFRAMEWORK"; then
     PyPYTHONLIBS="-framework $PyFRAMEWORK"

    # explicitly pass to mac linker so add this line
     LDFLAGS="${LDFLAGS} -Wl,-framework,Python"
   fi

4) run configure, make, then install

Good luck,
mark

On Dec 28, 2003, at 12:52 PM, Carl-Johan Kihlbom wrote:

> Hi list,
>
> I've installed mod_python on my Mac, but can't get it working. When I  
> restart Apache after configuring httpd.conf I get the following error:
>
> Syntax error on line 276 of /Library/Apache2/conf/httpd.conf:
> Cannot load /Library/Apache2/modules/mod_python.so into server: dyld:  
> /Library/Apache2/bin/httpd Undefined symbols:
> _PyExc_AttributeError
> _PyExc_IOError
> _PyExc_IndexError
> _PyExc_KeyError
> _PyExc_RuntimeError
> _PyExc_StopIteration
> _PyExc_TypeError
> _PyExc_ValueError
> _PyInt_Type
> _PyList_Type
> _PyObject_GenericGetAttr
> _PyObject_GenericSetAttr
> _PyString_Type
> _PyType_Type
> _Py_OptimizeFlag
> __Py_NoneStruct
> __Py_NotImplementedStruct
>
> I'm using mod_python 3.1.2b on my laptop running Apache 2.0.48 and Mac  
> OS X 10.3.2.
>
> In Mac OS X 10.3, Python 2.3 is installed by default, and the library  
> and include files are in  
> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
> python2.3/ and  
> /System/Library/Frameworks/Python.framework/Versions/2.3/include/ 
> python2.3/ respectively. I created symlinks to these at  
> /usr/lib/python and /usr/include/python.
>
> Any ideas what I did wrong?
>
> TIA,
>
> Carl-Johan Kihlbom
>
> _______________________________________________
> 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