[Bug 269545] devel/py-setuptools: AttributeError: module 'importlib_metadata' has no attribute 'MetadataPathFinder'

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 14 Feb 2023 08:48:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269545

            Bug ID: 269545
           Summary: devel/py-setuptools: AttributeError: module
                    'importlib_metadata' has no attribute
                    'MetadataPathFinder'
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: python@FreeBSD.org
          Reporter: chris@cretaforce.gr
             Flags: maintainer-feedback?(python@FreeBSD.org)
          Assignee: python@FreeBSD.org

===>  Cleaning for py39-setuptools-63.1.0
===>  License MIT accepted by the user
===>   py39-setuptools-63.1.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by py39-setuptools-63.1.0 for building
===>  Extracting for py39-setuptools-63.1.0
=> SHA256 Checksum OK for python/setuptools-63.1.0.tar.gz.
===>  Patching for py39-setuptools-63.1.0
===>   py39-setuptools-63.1.0 depends on file: /usr/local/bin/python3.9 - found
===>  Configuring for py39-setuptools-63.1.0
Traceback (most recent call last):
  File "/usr/ports/devel/py-setuptools/work-py39/setuptools-63.1.0/setup.py",
line 7, in <module>
    import setuptools
  File
"/usr/ports/devel/py-setuptools/work-py39/setuptools-63.1.0/setuptools/__init__.py",
line 18, in <module>
    from setuptools.dist import Distribution
  File
"/usr/ports/devel/py-setuptools/work-py39/setuptools-63.1.0/setuptools/dist.py",
line 34, in <module>
    from ._importlib import metadata
  File
"/usr/ports/devel/py-setuptools/work-py39/setuptools-63.1.0/setuptools/_importlib.py",
line 39, in <module>
    disable_importlib_metadata_finder(metadata)
  File
"/usr/ports/devel/py-setuptools/work-py39/setuptools-63.1.0/setuptools/_importlib.py",
line 28, in disable_importlib_metadata_finder
    to_remove = [
  File
"/usr/ports/devel/py-setuptools/work-py39/setuptools-63.1.0/setuptools/_importlib.py",
line 31, in <listcomp>
    if isinstance(ob, importlib_metadata.MetadataPathFinder)
AttributeError: module 'importlib_metadata' has no attribute
'MetadataPathFinder'
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/py-setuptools

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