[Bug 270608] devel/py-stevedore: Fails with python 3.7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 02 Apr 2023 20:50:55 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270608 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 18, 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. -- You are receiving this mail because: You are the assignee for the bug.