question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Latest versions of packages not available via pip

See original GitHub issue

Description:

I’ve run into problems a few times now across a number of (similar) repos where the latest versions of packages are available locally and in locally built docker containers, but fail when run inside of an actions job. I have helper scripts that keep my requirements.txt files up to date, but when I use them I end up having to make multiple rounds of bumping specific packages back down a version (or two) to use things available in actions.

E.g. most recent encounter https://github.com/octodns/octodns-route53/pull/2

Digging into the first one:

ERROR: Could not find a version that satisfies the requirement importlib-metadata==4.10.0 (from versions: 0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 0.10, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.20, 0.21, 0.22, 0.23, 1.0.0, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.6.1, 1.7.0, 2.0.0, 2.1.0, 2.1.1, 2.1.2, 3.0.0, 3.1.0, 3.1.1, 3.2.0, 3.3.0, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.7.1, 3.7.2, 3.7.3, 3.8.0, 3.8.1, 3.8.2, 3.9.0, 3.9.1, 3.10.0, 3.10.1, 4.0.0, 4.0.1, 4.1.0, 4.2.0, 4.3.0, 4.3.1, 4.4.0, 4.5.0, 4.6.0, 4.6.1, 4.6.2, 4.6.3, 4.6.4, 4.7.0, 4.7.1, 4.8.0, 4.8.1, 4.8.2, 4.8.3)
ERROR: No matching distribution found for importlib-metadata==4.10.0
Error: Process completed with exit code 1.

importlib-metadata cut 2 releases in mid-December, one on the 16th the other on 19th, https://pypi.org/project/importlib-metadata/#history. They’re both available locally & in docker containers, but not showing up when things run in actions.

I’ve dug around in the action and don’t see anything obvious that would lead to this problem. I’m also not sure if the issue is with the setup-python action or something awry in the underlying ubuntu-latest image, but this seems like the place to start.

I’ve been running into this for the past couple weeks, but thought I’d give it some time to see if it’s just something temorary, which it doesn’t appear to be.

Action version:

actions/setup-python@v2

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

I’m seeing it with python-version: [3.6, 3.7, 3.8, 3.9]

Repro steps:

First two failures in https://github.com/octodns/octodns-route53/pull/2, e.g. https://github.com/octodns/octodns-route53/pull/2/commits/3b663301fad1d8e444da2b39adf73eb492fd8ada

Expected behavior:

Packages that show up on pypi and are available locally work within the actions context.

Actual behavior:

Things appear to be stale, perhaps pulling from a mirror that’s not up to date?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rosscommented, Jan 13, 2022

importlib-metadata 4.10.0 does not support EOL Python 3.6, see the “Requires: Python >=3.7” at:

Ah. I hadn’t noticed that it was 3.6 only failing, I guess maybe it was failing early and stopping the others from succeeding so I didn’t catch it only being a problem with 3.6.

Since it’s date has passed, https://devguide.python.org/devcycle/#end-of-life-branches I’ll just remove it from my versions matrix.

1reaction
nikita-bykovcommented, Jan 12, 2022

Hello @ross, thanks for report! We’ll look at your issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pip unable to find newest package version - Stack Overflow
Open your specific package version page in pypi (e.g. https://pypi.org/project/package_name/package_version) Click on Download Files . Copy the ...
Read more >
How to Update All Python Packages - ActiveState
Update all Python Packages on Windows · Open a command shell by typing 'powershell' in the Search Box of the Task bar ·...
Read more >
User Guide - pip documentation v22.3.1
Note that you should not rely on the items in the file being installed by pip in any ... To list outdated packages,...
Read more >
Installing scikit-learn
Install the latest official release. This is the best approach for most users. It will provide a stable version and pre-built packages are...
Read more >
Install Python and R packages in local (home) directories
Sometimes the latest version of a package is not compatible with the latest Python version in BBC/Xanadu or some features you need only...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found