[CONPY-228] Throws error when installing Created: 2022-10-16  Updated: 2022-12-15  Resolved: 2022-10-16

Status: Closed
Project: MariaDB Connector/Python
Component/s: Installation
Affects Version/s: 1.1.4
Fix Version/s: 1.1.5

Type: Bug Priority: Major
Reporter: anthony Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None
Environment:

Pi OS


Issue Links:
Relates
relates to CONPY-242 Throws error when installing Closed
Python Version: 3.9

 Description   

>pip3 install mariadb

throws:

pi@camPi:~ $ pip3 install mariadb
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting mariadb
Downloading mariadb-1.1.4.zip (97 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.4/97.4 kB 727.2 kB/s eta 0:00:00
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-0of4ctfp/mariadb_8d26959a6287418381b219357b8a7517/setup.py", line 27, in <module>
cfg = get_config(options)
File "/tmp/pip-install-0of4ctfp/mariadb_8d26959a6287418381b219357b8a7517/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.



 Comments   
Comment by Georg Richter [ 2022-10-16 ]

This bug was already fixed (rev. 554abdac89e82da65dcbc64fe3ce666bb98fe99a).

Even with this fix, you need to update your Connector/C version, minimum required version is 3.2.4.

Generated at Thu Feb 08 03:31:12 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.