Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Apr 2023 20:50:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 270608] devel/py-stevedore: Fails with python 3.7
Message-ID:  <bug-270608-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 270608
           Summary: devel/py-stevedore: Fails with python 3.7
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: nivit@FreeBSD.org
          Reporter: jonc@chen.org.nz
          Assignee: nivit@FreeBSD.org
             Flags: maintainer-feedback?(nivit@FreeBSD.org)

When running with < python 3.8 flavor, eg: py37-stevedore, a load eventually
fails with:

...
  File "/usr/local/lib/python3.7/site-packages/stevedore/extension.py", line
19, in <module>
    from . import _cache
  File "/usr/local/lib/python3.7/site-packages/stevedore/_cache.py", line 1=
8,
in <module>
    import importlib.metadata as importlib_metadata
ModuleNotFoundError: No module named 'importlib.metadata'

The code line in _cache.py has:

import importlib.metadata as importlib_metadata

But in python versions before 3.8, importlib.metadata is stored under
importlib_metadata.

Changing the line to read:

import importlib_metadata

fixes the problem.

I think a conditional patch depending on flavor is required for the port.

--=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-270608-7788>