Skip to content

Setuptools import error with uproot4 #1259

Open
@Dominic-Stafford

Description

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    installationTroubles installing the package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions