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.

wheel_file_re does not match version correctly

See original GitHub issue

Issue

wheel_file_re fails to match version for packages with single digit versions. Example is markdown-captions package (filename markdown_captions-2-py3-none-any.whl). Results in the following error:

  • Installing markdown-captions (2): Failed

  AttributeError

  'NoneType' object has no attribute 'replace'

  at ~/.poetry/lib/poetry/installation/chooser.py:27 in __init__
       23│             raise InvalidWheelName("{} is not a valid wheel filename.".format(filename))
       24│ 
       25│         self.filename = filename
       26│         self.name = wheel_info.group("name").replace("_", "-")
    →  27│         self.version = wheel_info.group("ver").replace("_", "-")
       28│         self.build_tag = wheel_info.group("build")
       29│         self.pyversions = wheel_info.group("pyver").split(".")
       30│         self.abis = wheel_info.group("abi").split(".")
       31│         self.plats = wheel_info.group("plat").split(".")

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
finswimmercommented, Nov 7, 2020

Fix is ready for review #3338

0reactions
kastephcommented, Mar 30, 2021

#3338 merged.

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 Reasons why your Excel filter may not be working
Excel filter not working properly or as you would like it to? Here are some reasons why your Excel filter may not be...
Read more >
can't install with Python 3.10 (#18335) · Issues · VTK ... - GitLab
Can 't install vtk on poythin 3.10. Default pip find no compatible version, installing from git give.
Read more >
Guidelines and examples for sorting and filtering data by color
Filter and sort data by color to make data analysis easier and help show highlights and data trends at a quick glance.
Read more >
lisp filter out results from list not matching predicate
I would like to point out that the function #'remove-if-not are deprecated in Common Lisp¹ where the filter would be written (remove-if ( ......
Read more >
Filter Wheel QHYCFW3 | QHYCCD Astronomical & Scientific ...
This modification is used to judge if the colorwheel has arrived the target for the host software. Note 2: There is no this...
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