Skip to content

Leading zero not parsed correctly when using new resolver in 20.3b1 #9093

@QuicksilverMachine

Description

@QuicksilverMachine

When using the 20.3b1 version, the following command fails:
pip install unidecode==0.04.21

It seems the leading zero in Unidecode's version (0.04.21) might be causing a problem.

ERROR: Exception:
Traceback (most recent call last):
  File "/Users/dejan/.pyenv/versions/3.9.0/envs/testing/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 186, in _merge_into_criterion
    crit = self.state.criteria[name]
KeyError: 'unidecode'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
...
  File "/Users/dejan/.pyenv/versions/3.9.0/envs/testing/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 286, in __init__
    assert str(version) == wheel.version, (
AssertionError: <Version('0.4.21')> != '0.04.21' for wheel unidecode```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions