I have Python 3.9 installed on Cygwin on WIndows.
I also have XAMPP installed, which provides MariaDB v 10.4.24.
I am trying to write Python scripts that read data from this database.
I am trying to install the Python MariaDB module using:
python3.9.exe -m pip3 install mariadb
But this errors as follows:
python3.9.exe -m pip install mariadb
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-xws9o_01/mariadb_c1764ac5dcde44ab9a779bf22da89a5b/setup.py", line 27, in <module>
cfg = get_config(options)
File "/tmp/pip-install-xws9o_01/mariadb_c1764ac5dcde44ab9a779bf22da89a5b/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.