Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-223

python setup.py egg_info did not run successfully. MariaDB Connector/Python requires MariaDB Connector/C

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Not a Bug
    • 1.1.4
    • N/A
    • Installation
    • None
    • 3.9 3.10

    Description

      Hi

      I would like some help with a docker build.

      I have created a basic installation of python using this: https://stackoverflow.com/questions/53835198/integrating-python-poetry-with-docker

      ```
      FROM python:3.10-alpine3.16 as base

      1. input arguments
        ARG MARIADB_USER
        ARG MARIADB_PASSWORD
        ARG MARIADB_HOST
        ARG MARIADB_PORT
        ARG MARIADB_DB

      WORKDIR /app

      FROM base as builder

      ENV PIP_DEFAULT_TIMEOUT=100 \
      PIP_DISABLE_PIP_VERSION_CHECK=1 \
      POETRY_VERSION=1.1.14 \
      MARIADB_USER=${MARIADB_USER} \
      MARIADB_PASSWORD=${MARIADB_PASSWORD} \
      MARIADB_HOST=${MARIADB_HOST} \
      MARIADB_PORT=${MARIADB_PORT} \
      MARIADB_DB=${MARIADB_DB}

      RUN apk add --no-cache gcc libffi-dev musl-dev mariadb-connector-c-dev mariadb-connector-c mariadb-client

      RUN pip install --upgrade pip
      RUN pip install "poetry==$POETRY_VERSION"

      COPY pyproject.toml poetry.lock ./
      RUN poetry install

      COPY . .

      FROM base as final

      COPY --from=builder /venv /venv
      COPY docker-entrypoint.sh wsgi.py ./
      CMD ["./docker-entrypoint.sh"]

      ```

      Now on my computer with libmariadb3 and libmariadb-dev on ubuntu 22.04 I can install mariadb, but using both python:3.10-bullseye and alpine versions of the docker container I get the error that it needs the C connector. I've tried all the solutions and i've tried installing most of the mariadb related pckgs.

      EDIT: I can just do pip install mariadb and it would fail aswell the poetry thing doesn't matter

      Attachments

        Activity

          People

            georg Georg Richter
            taaviansper Taavi Ansper
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.