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.

Micropip doesn't handle post releases correctly

See original GitHub issue

await micropip.install("xo-gd==3.2.2.post4") gives

  File "/lib/python3.10/site-packages/micropip/_micropip.py", line 345, in find_wheel
    release = releases[str(ver)]
KeyError: '3.2.2.post4'

it looks like the data is actually stored under the key 3.2.2-4.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ryanking13commented, Jun 21, 2022

No it is not. pip is not possible to install xo-gd==3.2.2-4. It seems like it has invalid metadata…

$ pip install xo-gd==3.2.2-4
ERROR: Could not find a version that satisfies the requirement xo-gd==3.2.2-4 (from versions: 3.1.4.1, 3.1.4.2, 3.1.4.3, 3.1.4.11, 3.1.4.12, 3.1.4.35, 3.1.5, 3.1.5.1, 3.1.5.3, 3.1.5.4, 3.1.5.5, 3.1.5.6, 3.2.1, 3.2.1.1, 3.2.2.post5, 3.2.3, 3.2.3.2, 3.2.4, 3.2.5, 3.2.6, 3.2.7, 3.2.8)
ERROR: No matching distribution found for xo-gd==3.2.2-4
$ pip install xo-gd==3.2.2.post5
Collecting xo-gd==3.2.2.post5
  Using cached xo-gd-3.2.2-5.tar.gz (31 kB)
  Preparing metadata (setup.py) ... done
  WARNING: Requested xo-gd==3.2.2.post5 from https://files.pythonhosted.org/packages/17/66/b21ac5a35d14328f8369fc60fcb43a5584282b618cf3627251649769b1b5/xo-gd-3.2.2-5.tar.gz#sha256=21d5feee32f6f510ff6fbc3f02f0d02d1cadaab1b46bf14c5ee5884977273a0c, but installing version 3.2.2-4
Discarding https://files.pythonhosted.org/packages/17/66/b21ac5a35d14328f8369fc60fcb43a5584282b618cf3627251649769b1b5/xo-gd-3.2.2-5.tar.gz#sha256=21d5feee32f6f510ff6fbc3f02f0d02d1cadaab1b46bf14c5ee5884977273a0c (from https://pypi.org/simple/xo-gd/): Requested xo-gd==3.2.2.post5 from https://files.pythonhosted.org/packages/17/66/b21ac5a35d14328f8369fc60fcb43a5584282b618cf3627251649769b1b5/xo-gd-3.2.2-5.tar.gz#sha256=21d5feee32f6f510ff6fbc3f02f0d02d1cadaab1b46bf14c5ee5884977273a0c has inconsistent version: filename has '3.2.2.post5', but metadata has '3.2.2.post4'
ERROR: Could not find a version that satisfies the requirement xo-gd==3.2.2.post5 (from versions: 3.1.4.1, 3.1.4.2, 3.1.4.3, 3.1.4.11, 3.1.4.12, 3.1.4.35, 3.1.5, 3.1.5.1, 3.1.5.3, 3.1.5.4, 3.1.5.5, 3.1.5.6, 3.2.1, 3.2.1.1, 3.2.2.post5, 3.2.3, 3.2.3.2, 3.2.4, 3.2.5, 3.2.6, 3.2.7, 3.2.8)
ERROR: No matching distribution found for xo-gd==3.2.2.post5

So, I think we should discard that version if it has an invalid version string and look for other versions, as people can make a mistake anytime.

0reactions
hoodmanecommented, Jun 21, 2022

Is this a valid version number though?

Read more comments on GitHub >

github_iconTop Results From Across the Web

2.1: Using micropipettes correctly - Biology LibreTexts
The accuracy of a micropipette decreases somewhat when micropipettes are set to deliver volumes close to the lowest values in their range.
Read more >
a short step-by-step introduction into proper pipetting - YouTube
We give valuable information on each handling move and explain in detail ... You will learn about the correct aspiration angle and immersion ......
Read more >
How to Use a Micropipette - Pipette.com
Information on how to properly use a micropipette including videos and tutorials.
Read more >
How to Use a Micropipettor
When withdrawing liquids with the pipettor, always release the plunger slowly. This ... Use the correct pipettor for the volume that is to...
Read more >
Pyodide - Read the Docs
After importing Pyodide, only packages from the standard library are ... micropip.install (Python) for pure Python packages with wheels as ...
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