Bug 269014 - databases/py-mysql-connector-python: contains failing requires.txt
Summary: databases/py-mysql-connector-python: contains failing requires.txt
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-17 19:23 UTC by Dan Langille
Modified: 2023-01-17 19:44 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (bofh)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Langille freebsd_committer freebsd_triage 2023-01-17 19:23:09 UTC
When using this, I got:

pkg_resources.DistributionNotFound: The 'protobuf<=3.20.1,>=3.11.0' distribution was not found and is required by mysql-connector-python 

Installed is:

py39-protobuf-4.21.9,1
py39-mysql-connector-python-8.0.31

On FreeBSD 12.4

My work-around is modifying this line:

[dvl@example:/usr/local/lib/python3.9/site-packages] $ grep -r 3\.20\.1 mysql*
mysql_connector_python-8.0.31-py3.9.egg-info/requires.txt:protobuf<=3.20.1,>=3.11.0 

to

protobuf>=3.11.0

I'm not sure why this is failing.
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-01-17 19:44:20 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5bf1a9a40747ea2cf2939f50c2ab13e89e8a21d2

commit 5bf1a9a40747ea2cf2939f50c2ab13e89e8a21d2
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-01-17 19:41:04 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-01-17 19:43:02 +0000

    databases/py-mysql-connector-python: Runtime fix

    PR:             269014
    Reported by:    dvl
    MFH:            2023Q1

 databases/py-mysql-connector-python/Makefile                  |  3 ++-
 .../py-mysql-connector-python/files/patch-setup.py (new)      | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)