Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyExc_SystemError #70

Open
SunshineJunFu opened this issue Jul 4, 2018 · 2 comments
Open

PyExc_SystemError #70

SunshineJunFu opened this issue Jul 4, 2018 · 2 comments

Comments

@SunshineJunFu
Copy link

SunshineJunFu commented Jul 4, 2018

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 :-)

@arighosh2014
Copy link

Getting the same error for python 3.5 and apache 2.4.4

@grisha grisha reopened this Jan 10, 2020
@diegobill
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants