This is what I get when I run the command pip install mariadb
:
Defaulting to user installation because normal site-packages is not writeable
Collecting mariadb
Using cached mariadb-1.1.4.zip (97 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-6kwo2pga/mariadb_84568c03780743cba30d255711f92d08/setup.py", line 27, in <module>
cfg = get_config(options)
File "/tmp/pip-install-6kwo2pga/mariadb_84568c03780743cba30d255711f92d08/mariadb_posix.py", line 64, in get_config
print('MariaDB Connector/Python requires MariaDB Connector/C '
TypeError: not enough arguments for format string
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
I tried solving it for hours, but I couldn't do it and I came here, in need for solutions. Yes, I installed the connector as well, even my teacher got surprised that I got that error after I tried installing the connector (https://mariadb.com/docs/connect/programming-languages/c/install/#connector-c-install-repo-install).
I tried reinstalling python and pip (not the best idea, because that took some time and I also had to reinstall my Desktop).
I also ran sudo apt update
and sudo apt upgrade
, but nothing. I have even fixed it (it was literally broken, and I had to remove the package he was trying to update).
Anyways, I am totally clueless, I have even looked on other answers on stackoverflow and github regarding the same question, but it just seems like I cannot make it work for some reason. I would love some help if someone could assist me!