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

Versioning problems for "packaging" python package requirement #1949

Closed
steveri opened this issue Aug 22, 2024 · 2 comments
Closed

Versioning problems for "packaging" python package requirement #1949

steveri opened this issue Aug 22, 2024 · 2 comments

Comments

@steveri
Copy link
Contributor

steveri commented Aug 22, 2024

Our CI 'aha-flow' has stopped working, because of a python-package version requirement in the docker build. In particular, aha/Dockerfile specifies a specific version 21.3 for the "packaging" package:

  aha/Dockerfile line 95:
    pip install packaging==21.3

This seemed to work fine for a long time, but now it seems to be causing an error later in the build https://buildkite.com/stanford-aha/aha-flow/builds/10718

    #56 12.73 ERROR: requirements-parser 0.11.0 has requirement
     packaging>=23.2, but you'll have packaging 21.3 which is
     incompatible.

I will be submitting a change removing the version requirement for packaging==21.3. My question for the group:

  • does anyone know why we had this version-21.3 requirement in the first place?
  • is something going to break that you know about and I don't?
@steveri
Copy link
Contributor Author

steveri commented Aug 22, 2024

Ah! I found this @jack-melchert (below). Looks like it was a temporary fix from two years ago. Now that I have undone the version requirement, in my recent pull request, things seem to be working, so maybe the problem has fixed itself now...(packaging package seems to be on version 24 now) (https://buildkite.com/stanford-aha/aha-flow/builds/10719)

commit daa06759357806d7d57af1856abc6ee7fc2e2d5d
Author: jack-melchert <[email protected]>
Date:   Mon Dec 19 14:05:25 2022 -0800

    Python package packaging version 22 broken
    
    packaging version 22 throws errors when a setup.py has a wildcard
    in the version requirements of a dependency in the install_requires
    list. For now fixing the version of packaging to 21.3.

@steveri
Copy link
Contributor Author

steveri commented Aug 27, 2024

FIXED by removing the version requirement, see pull request #1950

@steveri steveri closed this as completed Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant