question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
HacKanCuBacommented, Oct 9, 2019

Try running poetry add -vvv ... to get traceback information

0reactions
finswimmercommented, Mar 11, 2020

Hello @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 the setup.py it is unable to get the version.

fin swimmer

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found