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

Setuptools import error with uproot4 #1259

Open
Dominic-Stafford opened this issue Jul 30, 2024 · 0 comments
Open

Setuptools import error with uproot4 #1259

Dominic-Stafford opened this issue Jul 30, 2024 · 0 comments
Labels
bug (unverified) The problem described would be a bug, but needs to be triaged

Comments

@Dominic-Stafford
Copy link

When attempting to call the uproot.extras.awkward() function from uproot 4.3.7 with an up-to-date version of setuptools (>=71) I get the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/nfs/dust/cms/user/stafford/tmp/uproot_tests/lib/python3.9/site-packages/uproot/extras.py", line 36, in awkward
    if parse_version("1") < parse_version(awkward.__version__) < parse_version("2"):
  File "/nfs/dust/cms/user/stafford/tmp/uproot_tests/lib/python3.9/site-packages/uproot/_util.py", line 99, in parse_version
    return setuptools.extern.packaging.version.parse(version)
AttributeError: module 'setuptools' has no attribute 'extern'

It seems the setuptools.extern module has been dropped. I don't get this error with uproot 5.3.10, however we're currently running a medium-sized framework based on coffea 0.7, and haven't managed to make the jump to coffea 2024/dask awkward. Would it be possible to have a new uproot 4.3 release fixing this bug, please?

@Dominic-Stafford Dominic-Stafford added the bug (unverified) The problem described would be a bug, but needs to be triaged label Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug (unverified) The problem described would be a bug, but needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant