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

Poetry raise InvalidVersion(f"Invalid PEP 440 version: '{value}'") when value is '3.6.' #4396

Closed
3 tasks done
andriisoldatenko opened this issue Aug 17, 2021 · 2 comments
Closed
3 tasks done
Labels
kind/bug Something isn't working as expected

Comments

@andriisoldatenko
Copy link

andriisoldatenko commented Aug 17, 2021

  • I am on the latest Poetry version.:
    poetry 1.2.0a2

  • I have searched the issues of this repo and believe that this is not a duplicate.

  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

  • OS version and name: OSX Big Sur

  • Poetry version: poetry 1.2.0a2

  • Link of a Gist with the contents of your pyproject.toml file:

poetry git:(master) ✗ python -m poetry add smart_open -vvvvv
Using virtualenv: /Users/andrii/work/poetry/.venv
PyPI: 48 packages found for smart-open *
Using version ^5.1.0 for smart-open

Updating dependencies
Resolving dependencies...
   1: fact: poetry is 1.2.0a2
   1: derived: poetry
   1: fact: poetry depends on poetry-core (^1.1.0a6)
   1: fact: poetry depends on cleo (^1.0.0a4)
   1: fact: poetry depends on crashtest (^0.3.0)
   1: fact: poetry depends on requests (^2.18)
   1: fact: poetry depends on cachy (^0.3.0)
   1: fact: poetry depends on requests-toolbelt (^0.9.1)
   1: fact: poetry depends on cachecontrol (^0.12.4)
   1: fact: poetry depends on pkginfo (^1.5)
   1: fact: poetry depends on html5lib (^1.0)
   1: fact: poetry depends on shellingham (^1.1)
   1: fact: poetry depends on tomlkit (>=0.7.0,<1.0.0)
   1: fact: poetry depends on pexpect (^4.7.0)
   1: fact: poetry depends on packaging (^20.4)
   1: fact: poetry depends on virtualenv (>=20.4.3,<20.4.5)
   1: fact: poetry depends on keyring (>=21.2.0)
   1: fact: poetry depends on entrypoints (^0.3)
   1: fact: poetry depends on importlib-metadata (^1.6.0)
   1: fact: poetry depends on dataclasses (^0.8)
   1: fact: poetry depends on smart-open (^5.1.0)
   1: fact: poetry depends on pytest (^6.2)
   1: fact: poetry depends on pytest-cov (^2.8)
   1: fact: poetry depends on pytest-mock (^3.5)
   1: fact: poetry depends on pre-commit (^2.6)
   1: fact: poetry depends on tox (^3.0)
   1: fact: poetry depends on pytest-sugar (^0.9)
   1: fact: poetry depends on httpretty (^1.0)
   1: fact: poetry depends on zipp (^3.4)
   1: fact: poetry depends on deepdiff (^5.0)
   1: selecting poetry (1.2.0a2)
   1: derived: deepdiff (>=5.0,<6.0)
   1: derived: zipp (>=3.4,<4.0)
   1: derived: httpretty (>=1.0,<2.0)
   1: derived: pytest-sugar (>=0.9,<0.10)
   1: derived: tox (>=3.0,<4.0)
   1: derived: pre-commit (>=2.6,<3.0)
   1: derived: pytest-mock (>=3.5,<4.0)
   1: derived: pytest-cov (>=2.8,<3.0)
   1: derived: pytest (>=6.2,<7.0)
   1: derived: smart-open (>=5.1.0,<6.0.0)
   1: derived: dataclasses (>=0.8,<0.9)
   1: derived: importlib-metadata (>=1.6.0,<2.0.0)
   1: derived: entrypoints (>=0.3,<0.4)
   1: derived: keyring (>=21.2.0)
   1: derived: virtualenv (>=20.4.3,<20.4.5)
   1: derived: packaging (>=20.4,<21.0)
   1: derived: pexpect (>=4.7.0,<5.0.0)
   1: derived: tomlkit (>=0.7.0,<1.0.0)
   1: derived: shellingham (>=1.1,<2.0)
   1: derived: html5lib (>=1.0,<2.0)
   1: derived: pkginfo (>=1.5,<2.0)
   1: derived: cachecontrol[filecache] (>=0.12.4,<0.13.0)
   1: derived: requests-toolbelt (>=0.9.1,<0.10.0)
   1: derived: cachy (>=0.3.0,<0.4.0)
   1: derived: requests (>=2.18,<3.0)
   1: derived: crashtest (>=0.3.0,<0.4.0)
   1: derived: cleo (>=1.0.0a4,<2.0.0)
   1: derived: poetry-core (>=1.1.0a6,<2.0.0)
PyPI: 3 packages found for cachecontrol >=0.12.4,<0.13.0
   1: fact: deepdiff (5.5.0) depends on ordered-set (4.0.2)
   1: selecting deepdiff (5.5.0)
   1: derived: ordered-set (==4.0.2)
   1: selecting httpretty (1.1.3)
   1: fact: pytest-sugar (0.9.4) depends on pytest (>=2.9)
   1: fact: pytest-sugar (0.9.4) depends on termcolor (>=1.1.0)
   1: fact: pytest-sugar (0.9.4) depends on packaging (>=14.1)
   1: selecting pytest-sugar (0.9.4)
   1: derived: termcolor (>=1.1.0)
   1: fact: tox (3.24.0) depends on filelock (>=3.0.0)
   1: fact: tox (3.24.0) depends on packaging (>=14)
   1: fact: tox (3.24.0) depends on pluggy (>=0.12.0)
   1: fact: tox (3.24.0) depends on py (>=1.4.17)
   1: fact: tox (3.24.0) depends on six (>=1.14.0)
   1: fact: tox (3.24.0) depends on toml (>=0.9.4)
   1: fact: tox (3.24.0) depends on virtualenv (>=16.0.0,<20.0.0 || >20.0.0,<20.0.1 || >20.0.1,<20.0.2 || >20.0.2,<20.0.3 || >20.0.3,<20.0.4 || >20.0.4,<20.0.5 || >20.0.5,<20.0.6 || >20.0.6,<20.0.7 || >20.0.7)
   1: fact: tox (3.24.0) depends on colorama (>=0.4.1)
   1: fact: tox (3.24.0) depends on importlib-metadata (>=0.12)
   1: selecting tox (3.24.0)
   1: derived: colorama (>=0.4.1)
   1: derived: toml (>=0.9.4)
   1: derived: six (>=1.14.0)
   1: derived: py (>=1.4.17)
   1: derived: pluggy (>=0.12.0)
   1: derived: filelock (>=3.0.0)
   1: fact: pytest-mock (3.6.1) depends on pytest (>=5.0)
   1: selecting pytest-mock (3.6.1)
   1: fact: pytest-cov (2.12.1) depends on pytest (>=4.6)
   1: fact: pytest-cov (2.12.1) depends on coverage (>=5.2.1)
   1: fact: pytest-cov (2.12.1) depends on toml (*)
   1: selecting pytest-cov (2.12.1)
   1: derived: coverage (>=5.2.1)
   1: fact: pytest (6.2.4) depends on attrs (>=19.2.0)
   1: fact: pytest (6.2.4) depends on iniconfig (*)
   1: fact: pytest (6.2.4) depends on packaging (*)
   1: fact: pytest (6.2.4) depends on pluggy (>=0.12,<1.0.0a1)
   1: fact: pytest (6.2.4) depends on py (>=1.8.2)
   1: fact: pytest (6.2.4) depends on toml (*)
   1: fact: pytest (6.2.4) depends on importlib-metadata (>=0.12)
   1: fact: pytest (6.2.4) depends on atomicwrites (>=1.0)
   1: fact: pytest (6.2.4) depends on colorama (*)
   1: selecting pytest (6.2.4)
   1: derived: atomicwrites (>=1.0)
   1: derived: py (>=1.8.2)
   1: derived: pluggy (>=0.12,<1.0.0a1)
   1: derived: iniconfig
   1: derived: attrs (>=19.2.0)
PyPI: 1 packages found for smart-open >=5.1.0,<6.0.0
> /Users/andrii/work/poetry/.venv/lib/python3.9/site-packages/poetry/core/version/pep440/parser.py(68)parse()
     67             import ipdb; ipdb.set_trace()
---> 68             raise InvalidVersion(f"Invalid PEP 440 version: '{value}'")
     69

ipdb> p value
'3.6.'
ipdb>

@andriisoldatenko andriisoldatenko added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Aug 17, 2021
@andriisoldatenko
Copy link
Author

i think PR is already there piskvorky/smart_open#631

@abn abn removed the status/triage This issue needs to be triaged label Mar 3, 2022
Copy link

github-actions bot commented Mar 2, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

2 participants