Installing wheel fails with "[ValueError] Could not parse version constraint"
See original GitHub issue-
[x ] I am on the latest Poetry version.
-
[x ] I have searched the issues of this repo and believe that this is not a duplicate.
-
[x ] If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option). -
OS version and name: MacOS 10.14
-
Poetry version: 0.12.17
-
Link of a Gist with the contents of your pyproject.toml file:
Issue
trying to poetry add
a wheel hosted on GitHub fails with [ValueError] Could not parse version constraint
. Specifically, this wheel: https://github.com/gotenna/PublicSDK/raw/master/python-public-sdk/goTenna-0.12.5-py3-none-any.whl
I also tried downloading the wheel and installing from local disk, with same error.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
poetry install - ParseConstraintError Could not parse version ...
In my case, this issue seems to have been triggered with the latest version of poetry, 1.2.1. Downgrading to 1.1.12 fixed it.
Read more >Composer "Could not parse version constraint {version}" error
When using the commands 'composer update', 'composer require' or 'composer remove' (other modules), I get the following error:
Read more >semantic-version - PyPI
If the provided version string is invalid, a ValueError will be raised: ... Some user-supplied input might not match the semantic version scheme....
Read more >Changelog — Python 3.11.1 documentation
gh-96005: On WASI ENOTCAPABLE is now mapped to PermissionError . The errno modules exposes the new error number. getpath.py now ignores PermissionError when...
Read more >History | Poetry - Python dependency management and ...
ParseConstraintError is now raised on version and constraint parsing ... Fix an issue where Poetry was not able to install releases that contained...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Try running
poetry add -vvv ...
to get traceback informationHello @src-r-r ,
this issue is talking about version parsing problems during installing a wheel and not a plain project from git.
The original issue seems to be fixed in the current release. So I will close it.
In your case the problem is, that poetry needs to parse the
setup.py
. There the version is loaded dynamically from another resource. Because poetry doesn’t run thesetup.py
it is unable to get the version.fin swimmer