[CONPY-233] mariadb python adapter installation broken in new 1.1.5 release Created: 2022-11-07  Updated: 2022-11-09  Resolved: 2022-11-08

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

Type: Bug Priority: Major
Reporter: Mike Bayer Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates CONPY-234 mariadb-1.1.5 doesn't build from sour... Closed
duplicates CONPY-235 Mariadb-1.1.5 failure on install Closed
Python Version: 3.10

 Description   

$ .venv/bin/pip install mariadb_connector
ERROR: Could not find a version that satisfies the requirement mariadb_connector (from versions: none)
ERROR: No matching distribution found for mariadb_connector
 
[notice] A new release of pip available: 22.2.2 -> 22.3.1
[notice] To update, run: python -m pip install --upgrade pip
[classic@photon3 foo]$ .venv/bin/pip install mariadb
Collecting mariadb
Using cached mariadb-1.1.5.tar.gz (81 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-lb9lm_ca/mariadb_c78264fab1f14852adee3c7ed0aa3b28/setup.py", line 12, in <module>
from mariadb_posix import get_config
File "/tmp/pip-install-lb9lm_ca/mariadb_c78264fab1f14852adee3c7ed0aa3b28/mariadb_posix.py", line 4, in <module>
from packaging import version
ModuleNotFoundError: No module named 'packaging'
[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-11-08 ]

Mike,

thanks for your bug report. Unfortunately I forgot to git add pyproject.toml. The error didn't show up on travis, since my colleague added pip3 install packaging for travis

I've uploaded 1.1.5post1 now to pypi.org

Comment by Mike Bayer [ 2022-11-08 ]

thanks for the quick fix! no worries, we just block out that version, problem solved will run the tests on the new one now

Comment by Mike Bayer [ 2022-11-09 ]

without wheel files, it has to do a build, which is failing: https://jira.mariadb.org/projects/CONPY/issues/CONPY-236

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