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

Failed building wheel for mariadb

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 1.1.10
    • None
    • Installation
    • None
    • RockyLinux 9

    Description

      Received error running pip install mariadb which matches error described in CONPY-292. Pulled latest code from GitHub and encountered the same error-

      pip install ./mariadb-connector-python-1.1
      Processing ./mariadb-connector-python-1.1
        DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.
         pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.
        Installing build dependencies ... done
        Getting requirements to build wheel ... done
          Preparing wheel metadata ... done
      Collecting packaging
        Using cached packaging-24.1-py3-none-any.whl (53 kB)
      Building wheels for collected packages: mariadb
        Building wheel for mariadb (PEP 517) ... error
        ERROR: Command errored out with exit status 1:
         command: /usr/bin/python3 /usr/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmp1iw7ry04
             cwd: /tmp/pip-req-build-kxzvr813
        Complete output (35 lines):
        running bdist_wheel
        running build
        running build_py
        creating build/lib.linux-x86_64-cpython-39/mariadb
        copying mariadb/__init__.py -> build/lib.linux-x86_64-cpython-39/mariadb
        copying mariadb/__init__.py -> build/lib.linux-x86_64-cpython-39/mariadb
        copying mariadb/connectionpool.py -> build/lib.linux-x86_64-cpython-39/mariadb
        copying mariadb/connections.py -> build/lib.linux-x86_64-cpython-39/mariadb
        creating build/lib.linux-x86_64-cpython-39/mariadb/constants
        copying mariadb/constants/__init__.py -> build/lib.linux-x86_64-cpython-39/mariadb/constants
        copying mariadb/constants/CAPABILITY.py -> build/lib.linux-x86_64-cpython-39/mariadb/constants
        copying mariadb/constants/CLIENT.py -> build/lib.linux-x86_64-cpython-39/mariadb/constants
        copying mariadb/constants/CURSOR.py -> build/lib.linux-x86_64-cpython-39/mariadb/constants
        copying mariadb/constants/ERR.py -> build/lib.linux-x86_64-cpython-39/mariadb/constants
        copying mariadb/constants/FIELD_FLAG.py -> build/lib.linux-x86_64-cpython-39/mariadb/constants
        copying mariadb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-cpython-39/mariadb/constants
        copying mariadb/constants/EXT_FIELD_TYPE.py -> build/lib.linux-x86_64-cpython-39/mariadb/constants
        copying mariadb/constants/INDICATOR.py -> build/lib.linux-x86_64-cpython-39/mariadb/constants
        copying mariadb/constants/INFO.py -> build/lib.linux-x86_64-cpython-39/mariadb/constants
        copying mariadb/constants/STATUS.py -> build/lib.linux-x86_64-cpython-39/mariadb/constants
        copying mariadb/constants/TPC_STATE.py -> build/lib.linux-x86_64-cpython-39/mariadb/constants
        copying mariadb/cursors.py -> build/lib.linux-x86_64-cpython-39/mariadb
        copying mariadb/dbapi20.py -> build/lib.linux-x86_64-cpython-39/mariadb
        copying mariadb/field.py -> build/lib.linux-x86_64-cpython-39/mariadb
        copying mariadb/release_info.py -> build/lib.linux-x86_64-cpython-39/mariadb
        running build_ext
        building 'mariadb._mariadb' extension
        creating build/temp.linux-x86_64-cpython-39/mariadb
        gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPY_MARIADB_MAJOR_VERSION=1 -DPY_MARIADB_MINOR_VERSION=1 -DPY_MARIADB_PATCH_VERSION=11 -DPY_MARIADB_PRE_RELEASE_SEGMENT=\"None\" -DPY_MARIADB_PRE_RELEASE_NR=\"0\" -DPY_MARIADB_POST_RELEASE_SEGMENT=\"None\" -DPY_MARIADB_POST_RELEASE_NR=\"0\" -I/usr/include/mysql -I/usr/include/mysql/mysql -I./include -I/usr/include/python3.9 -c mariadb/mariadb.c -o build/temp.linux-x86_64-cpython-39/mariadb/mariadb.o -DDEFAULT_PLUGINS_SUBDIR=\"/usr/lib64/mysql/plugin\"
        In file included from mariadb/mariadb.c:21:
        ./include/mariadb_python.h:21:10: fatal error: Python.h: No such file or directory
           21 | #include "Python.h"
              |          ^~~~~~~~~~
        compilation terminated.
        error: command '/bin/gcc' failed with exit code 1
        ----------------------------------------
        ERROR: Failed building wheel for mariadb
      Failed to build mariadb
      ERROR: Could not build wheels for mariadb which use PEP 517 and cannot be installed directly

      Attachments

        Issue Links

          Activity

            People

              georg Georg Richter
              rob.schwyzer@mariadb.com Rob Schwyzer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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