You are not logged in.
Sorry if this is more of a Python question than an Arch question, I don't believe it is though. I'm trying to install mariadb in a new python virtual environment. I've done this several time already on this same machine and had no problems. The module still works in those other virtual environment projects as well, so I'm not sure why it suddenly won't install anymore. I assume I have a broken package somewhere.
Here's the command output:
pip install mariadb
I've tried updating the base-devel package and installing gcc, installing wheel with pip, adding --no-cache-dir to the pip install command. So far the error message is still the same.
Last edited by dpad (2024-06-07 07:37:08)
echo "Hello, friends!"
Offline
mariadb/mariadb_cursor.c:1138:39: error: passing argument 2 of ‘PyBytes_AsStringAndSize’ from incompatible pointer type [-Wincompatible-pointer-types]The code isn't standardconform and gcc14 now treats that as an error by default.
You'll have to add "-Wno-error=incompatible-pointer-types" to the CFLAGS and/or CXXFLAGS but I don't know at hand how to do that with pip.
Offline
Thanks for the response Seth, I'll go ahead and mark it as solved.
echo "Hello, friends!"
Offline
I was able to solve this by running
CFLAGS="-Wno-error=incompatible-pointer-types" pip install mariadb`Thanks for the help seth!
Last edited by verumignis (2024-06-08 22:16:46)
Offline