[GH-ISSUE #54] Invalid PEP 440 version: 0.0.1-SNAPSHOT #4

Closed
opened 2026-02-27 08:11:24 +03:00 by kerem · 2 comments
Owner

Originally created by @ghost on GitHub (Jul 17, 2021).
Original GitHub issue: https://github.com/kokarare1212/librespot-python/issues/54

Your library cannot be installed with Poetry, it throws the following error:

InvalidVersion

Invalid PEP 440 version: '0.0.1-SNAPSHOT'

at ~/.local/pipx/venvs/poetry/lib/python3.9/site-packages/poetry/core/version/pep440/parser.py:67 in parse
     63│     @classmethod
     64│     def parse(cls, value: str, version_class: Optional[Type["PEP440Version"]] = None):
     65│         match = cls._regex.search(value) if value else None
     66│         if not match:
  →  67│             raise InvalidVersion(f"Invalid PEP 440 version: '{value}'")
     68│ 
     69│         if version_class is None:
     70│             from poetry.core.version.pep440.version import PEP440Version
     71│ 

Removing -SNAPSHOT should fix this issue.

Originally created by @ghost on GitHub (Jul 17, 2021). Original GitHub issue: https://github.com/kokarare1212/librespot-python/issues/54 Your library cannot be installed with [Poetry](https://python-poetry.org/), it throws the following error: ``` InvalidVersion Invalid PEP 440 version: '0.0.1-SNAPSHOT' at ~/.local/pipx/venvs/poetry/lib/python3.9/site-packages/poetry/core/version/pep440/parser.py:67 in parse 63│ @classmethod 64│ def parse(cls, value: str, version_class: Optional[Type["PEP440Version"]] = None): 65│ match = cls._regex.search(value) if value else None 66│ if not match: → 67│ raise InvalidVersion(f"Invalid PEP 440 version: '{value}'") 68│ 69│ if version_class is None: 70│ from poetry.core.version.pep440.version import PEP440Version 71│ ``` Removing `-SNAPSHOT` should fix this issue.
kerem 2026-02-27 08:11:24 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@kokarare1212 commented on GitHub (Jul 17, 2021):

Thank you for your inquiry.

github.com/kokarare1212/librespot-python@4909f16474 github.com/kokarare1212/librespot-python@424eeb1125

Removed -SNAPSHOT from the version.
Please check if it works again.

kokarare1212

<!-- gh-comment-id:881968980 --> @kokarare1212 commented on GitHub (Jul 17, 2021): Thank you for your inquiry. https://github.com/kokarare1212/librespot-python/commit/4909f16474045d82e3557e63d6a08c87f7a404a1 https://github.com/kokarare1212/librespot-python/commit/424eeb1125d84243ec50ec28c2400ba5ff311055 Removed `-SNAPSHOT` from the version. Please check if it works again. kokarare1212
Author
Owner

@ghost commented on GitHub (Jul 18, 2021):

Seems to work fine now.

<!-- gh-comment-id:882046033 --> @ghost commented on GitHub (Jul 18, 2021): Seems to work fine now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot-python-kokarare1212#4
No description provided.