Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Aug 2023 15:03:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 273309] databases/py-mysql-connector-python: errors with devel/py-protobuf 4.23.2,1
Message-ID:  <bug-273309-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273309

            Bug ID: 273309
           Summary: databases/py-mysql-connector-python: errors with
                    devel/py-protobuf 4.23.2,1
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: dvl@FreeBSD.org
                CC: bofh@freebsd.org, sunpoet@FreeBSD.org
                CC: bofh@freebsd.org, sunpoet@FreeBSD.org

I'm seeing this error:

[dvl@fmd-tepot-01tst:~] $ foo
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", =
line
581, in _build_master
    ws.require(__requires__)
  File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", =
line
909, in require
    needed =3D self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", =
line
800, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (protobuf 4.23.2
(/usr/local/lib/python3.9/site-packages),
Requirement.parse('protobuf<=3D4.21.12,>=3D4.21.1'), {'mysql-connector-pyth=
on'})

..... then more stuff related to "During handling of the above exception,
another exception occurred"


This is with:

* FreeBSD 12.4-RELEASE-p1
* 2023Q3 ports tree (with some local backports from head)
* py39-protobuf-4.24.1,1 (notice the ,1 epoch)
* py39-mysql-connector-python-8.1.0
* python39-3.9.17

To get us running, I've patched out a line from patch-setup.py:

[dvl@ava-pkg-02prd:/usr/local/poudriere/ports/2023Q3] $ cat
databases/py-mysql-connector-python/files/patch-setup.py=20
--- setup.py.orig       2023-08-23 14:48:53 UTC
+++ setup.py
@@ -137,7 +137,6 @@ setup(
     ext_modules=3DEXTENSIONS,
     cmdclass=3DCOMMAND_CLASSES,
     python_requires=3D">=3D3.8",
-    install_requires=3D["protobuf>=3D4.21.1,<=3D4.21.12"],
     extras_require=3D{
         "dns-srv": ["dnspython>=3D1.16.0,<=3D2.3.0"],
         "compression": ["lz4>=3D2.1.6,<=3D4.3.2", "zstandard>=3D0.12.0,<=
=3D0.19.0"],
[dvl@ava-pkg-02prd:/usr/local/poudriere/ports/2023Q3] $=20

I don't know if this is an issue with epoch or not.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-273309-7788>