I’d like to use the mariadb package in Python on my Manjaro machine. For this I run pip install mariadb and it fails with ERROR: Failed building wheel for mariadb.
When I search about this I find a wild diversity of requirements ranging from gcc to libmysqlclient-dev. I have tried many of the packages but none ever made a difference.
I found the mariadb-connector-c but it also fails to install, this time something about MA_REMOTE_FILE calloc size. And I tried python-mariadb-connector but it is broken at the moment anyway I see in the AUR.
My question is, is anyone using Python and Mariadb on Manjaro?
I’m not using the python-mariadb-connector. I try not to use AUR packages if possible.
The python-mysql-connector is in the normal Repository and can be used with MariaDB. Depending what your are trying to, the python-mysql-connector might fail, but for basic SQL stuf there are no differentes between the mysql and mariadb connectors.
You can install mariadb-libs, and then mysqlclient install should be works.
Also, if you don’t want to install any OS dependency, you can install a pure python connector as PyMySQL and use pymysql.install_as_MySQLdb() to use this as a drop-in replacement.