Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] module 'importlib_metadata' has no attribute 'EntryPoints' #4490

Closed
daniel-larraz opened this issue Jul 18, 2024 · 3 comments
Closed

Comments

@daniel-larraz
Copy link

daniel-larraz commented Jul 18, 2024

setuptools version

setuptools == {71.0.0, 71.0.1, 71.0.2, 71.0.3}

Python version

Python 3.8

OS

Ubuntu 20.04

Additional environment information

No response

Description

When running python setup.py build_ext --inplace, I get the following error:

Traceback (most recent call last):
    File "setup.py", line 23, in <module>
      from setuptools import setup
    File "/home/runner/work/cvc5/cvc5/build-shared/venv-3.8.10/lib/python3.8/site-packages/setuptools/__init__.py", line 19, in <module>
      from .dist import Distribution
    File "/home/runner/work/cvc5/cvc5/build-shared/venv-3.8.10/lib/python3.8/site-packages/setuptools/dist.py", line 30, in <module>
      from . import _entry_points
    File "/home/runner/work/cvc5/cvc5/build-shared/venv-3.8.10/lib/python3.8/site-packages/setuptools/_entry_points.py", line 44, in <module>
      def validate(eps: metadata.EntryPoints):
  AttributeError: module 'importlib_metadata' has no attribute 'EntryPoints'

Using setuptools < 71.0.0, or installing the latest version of importlib_metadata together setuptools >= 71.0.0 solves the issue.

Expected behavior

Setuptools doesn't fail.

How to Reproduce

I was not able to quickly find a minimal reproducer. I will try to find one.

Output

See description

@daniel-larraz daniel-larraz added bug Needs Triage Issues that need to be evaluated for severity and status. labels Jul 18, 2024
@rcramblit
Copy link

rcramblit commented Jul 18, 2024

This seems like an issue for both Python 3.8 and 3.9. EntryPoints was added to the importlib.metadata stdlib module in Python 3.10.

@daniel-larraz
Copy link
Author

daniel-larraz commented Jul 18, 2024

@rcramblit You are right. It's Python 3.8. Sorry for the confusion. I updated the original report.

@jaraco
Copy link
Member

jaraco commented Jul 18, 2024

This issue is a duplicate of #4478. I'll pin it for now for better visibility.

@jaraco jaraco closed this as completed Jul 18, 2024
@jaraco jaraco added duplicate and removed Needs Triage Issues that need to be evaluated for severity and status. labels Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants