mod_python
mod_python copied to clipboard
PyExc_SystemError
Environment:
OS: Linux
Python: 3.4.5
Apache: 2.4.3
Details:
I have compiled mod_python and install it partially. However , i use the following command:
./apachectl start
Error occurs as this:
Cannot load modules/mod_python.so into server, undefined symbol: PyExc_SystemError
Appreciate for any help :-)
Getting the same error for python 3.5 and apache 2.4.4
any update from this error? I am still seeing on Docker in Ubuntu 16.04:
FROM python:2.7.18-slim
# Install packages
RUN apt-get -yqq update && \
apt-get -yqq install mercurial git vim apache2 apache2-dev libapache2-mod-python openssl libmariadb-dev fonts-freefont-ttf libssl-dev cron logrotate lynx htop zabbix-agent && \
apt-get clean
WORKDIR /usr/local/src
RUN git clone git+https://github.com/grisha/mod_python.git@e7ec956eaeba9f75e33f5d0036a6699ac3f0d816
WORKDIR /usr/local/src/mod_python
COPY patches/patch-Py_Initialize.txt /tmp
RUN LIBS="-lpython2.7" ./configure && \
# configure gets the libpython2.7.so link argument wrong, so fix it
sed -i.bak 's/libpython2.7.so/-lpython2.7/g' /usr/local/src/mod_python/src/Makefile && \
patch -p1 < /tmp/patch-Py_Initialize.txt && \
LIBS="-lpython2.7" make && \
make install