Description
Building wheels for collected packages: mariadb
Building wheel for mariadb (pyproject.toml): started
Building wheel for mariadb (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Building wheel for mariadb (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [39 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-311
creating build/lib.linux-x86_64-cpython-311/mariadb
copying mariadb/init.py -> build/lib.linux-x86_64-cpython-311/mariadb
copying mariadb/init.py -> build/lib.linux-x86_64-cpython-311/mariadb
creating build/lib.linux-x86_64-cpython-311/mariadb/constants
copying mariadb/constants/init.py -> build/lib.linux-x86_64-cpython-311/mariadb/constants
copying mariadb/constants/CLIENT.py -> build/lib.linux-x86_64-cpython-311/mariadb/constants
copying mariadb/constants/INDICATOR.py -> build/lib.linux-x86_64-cpython-311/mariadb/constants
copying mariadb/constants/CURSOR.py -> build/lib.linux-x86_64-cpython-311/mariadb/constants
copying mariadb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-cpython-311/mariadb/constants
running build_ext
building 'mariadb._mariadb' extension
creating build/temp.linux-x86_64-cpython-311
creating build/temp.linux-x86_64-cpython-311/mariadb
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPY_MARIADB_MAJOR_VERSION=1 -DPY_MARIADB_MINOR_VERSION=0 -DPY_MARIADB_PATCH_VERSION=11 -I/usr/include/mysql -I/usr/include/mysql/mysql -I./include -I/home/openemm/.venv.3.11.8.final.0/include -I/home/openemm/opt/Python-3.11.8/include/python3.11 -c mariadb/mariadb.c -o build/temp.linux-x86_64-cpython-311/mariadb/mariadb.o -DDEFAULT_PLUGINS_SUBDIR="/usr/lib64/mysql/plugin"
mariadb/mariadb.c: In function 'PyInit__mariadb':
mariadb/mariadb.c:155:35: error: lvalue required as left operand of assignment
Py_TYPE(&MrdbConnection_Type) = &PyType_Type;
^
mariadb/mariadb.c:168:31: error: lvalue required as left operand of assignment
Py_TYPE(&MrdbCursor_Type) = &PyType_Type;
^
mariadb/mariadb.c:174:29: error: lvalue required as left operand of assignment
Py_TYPE(&MrdbPool_Type) = &PyType_Type;
^
mariadb/mariadb.c:180:34: error: lvalue required as left operand of assignment
Py_TYPE(&MrdbIndicator_Type) = &PyType_Type;
^
mariadb/mariadb.c:186:38: error: lvalue required as left operand of assignment
Py_TYPE(&Mariadb_Fieldinfo_Type) = &PyType_Type;
^
mariadb/mariadb.c:192:38: error: lvalue required as left operand of assignment
Py_TYPE(&Mariadb_DBAPIType_Type) = &PyType_Type;
^
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for mariadb
Failed to build mariadb
ERROR: Could not build wheels for mariadb, which is required to install pyproject.toml-based projects
Failed to install/upgrade python packages from file "/home/openemm/scripts/requirements/requirements.txt"