Skip to content

PyExc_SystemError #70

Open
Open

Description

@SunshineJunFu

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

Activity

  1. arighosh2014 commented on Jan 10, 2020

    @arighosh2014

    Getting the same error for python 3.5 and apache 2.4.4

  2. reopened this on Jan 10, 2020
  3. diegobill commented on Apr 22, 2024

    @diegobill

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions