You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/Users/henryschreiner/git/scikit-build/scikit-build-cli/.venv/bin/rich-click", line 8, in <module>
sys.exit(main())
^^^^^^
File "/Users/henryschreiner/git/scikit-build/scikit-build-cli/.venv/lib/python3.12/site-packages/rich_click/cli.py", line 103, in main
scripts = {script.name: script for script in entry_points().get("console_scripts", [])}
^^^^^^^^^^^^^^^^^^AttributeError: 'EntryPoints' object has no attribute 'get'
The return from entry_points as changed to EntryPoints in importlib_metadata 5 and Python 3.12. I think 3.10+ also have EntryPoints, but it provided a Mapping back-compat interface.
If it helps, this is my 3.8+ wrapper from other projects:
# _compat/importlib/metadata.pyfrom __future__ importannotationsimportimportlib.metadataimportsysdefentry_points(*, group: str) ->importlib.metadata.EntryPoints: # type: ignore[name-defined]""" Wrapper for entry_points to support Python 3.8+ instead of 3.10+. """ifsys.version_info>= (3, 10):
returnimportlib.metadata.entry_points(group=group)
epg=importlib.metadata.entry_points()
returnepg.get(group, [])
I'm getting the following:
The return from
entry_points
as changed toEntryPoints
in importlib_metadata 5 and Python 3.12. I think 3.10+ also have EntryPoints, but it provided a Mapping back-compat interface.If it helps, this is my 3.8+ wrapper from other projects:
And my 3.7+ wrapper:
The text was updated successfully, but these errors were encountered: