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 · 2 comments
Open

Setuptools import error with uproot4 #1259

Dominic-Stafford opened this issue Jul 30, 2024 · 2 comments
Labels
installation Troubles installing the package

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
@holzman
Copy link

holzman commented Oct 1, 2024

I asked @jpivarski over slack about pinning setuptools<71 for a new uproot release. He indicated that it would be significant work to deploy a new release for this and asked if coffea users could just pin it themselves.

@jpivarski jpivarski added installation Troubles installing the package and removed bug (unverified) The problem described would be a bug, but needs to be triaged labels Oct 1, 2024
@jpivarski
Copy link
Member

I'm going to leave this open so that others with the same problem can find it. If self-pinning is a significant issue, then I'll see about making a new Uproot 4.x release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation Troubles installing the package
Projects
None yet
Development

No branches or pull requests

3 participants