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

Invalid version on paramiko #46

Closed
eight04 opened this issue Feb 3, 2024 · 0 comments · Fixed by #48
Closed

Invalid version on paramiko #46

eight04 opened this issue Feb 3, 2024 · 0 comments · Fixed by #48

Comments

@eight04
Copy link
Owner

eight04 commented Feb 3, 2024

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\eight04\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\vpip\__main__.py", line 2, in <module>
    cli()
  File "C:\Users\eight04\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\vpip\cli.py", line 54, in cli
    module.run(ns)
  File "C:\Users\eight04\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\vpip\commands\outdated.py", line 19, in run
    list_.print_local_packages(check_outdated=True)
  File "C:\Users\eight04\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\vpip\commands\list.py", line 69, in print_local_packages
    for info in get_infos(prod_requires):
  File "C:\Users\eight04\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\vpip\commands\list.py", line 57, in get_infos
    if check_outdated and not info.check_update():
                              ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\eight04\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\vpip\commands\list.py", line 103, in check_update
    self.update_result = pypi.check_update(self.name, self.version)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\eight04\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\vpip\pypi.py", line 39, in check_update
    all_versions = [parse_version(v) for v in r.json()["releases"].keys()]
                    ^^^^^^^^^^^^^^^^
  File "C:\Users\eight04\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\packaging\version.py", line 54, in parse
    return Version(version)
           ^^^^^^^^^^^^^^^^
  File "C:\Users\eight04\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\packaging\version.py", line 200, in __init__
    raise InvalidVersion(f"Invalid version: '{version}'")
packaging.version.InvalidVersion: Invalid version: '0.1-bulbasaur'

https://pypi.org/project/paramiko/0.1-bulbasaur/

How should we handle legacy version? Just ignore them?

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

Successfully merging a pull request may close this issue.

1 participant