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.

Specified Python version constraint is much more restrictive than what documentation states

See original GitHub issue

I have a Python project with semver constraint: python = "^3.10".

Attempting to install pygls as dev dependency fails with the error:

The current project's Python requirement (>=3.10,<4.0) is not compatible with some of the required packages Python requirement:
  - pygls requires Python <3.11,>=3.7, so it will not be satisfied for Python >=3.11,<4.0

This makes sense, but the documentation says that Pythons 3.7 and later are all supported. Is there another reason the version constraint is set like this and not just >=3.7,<4.0 or am I misunderstanding something?

Thanks in advance!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
lightspot21commented, Sep 27, 2022

@tombh It’s working now. Many thanks!

1reaction
lightspot21commented, Sep 26, 2022

I’ve submitted a PR to relax Python to <4, see #270. Does that look good?

@tombh yep, should be okay, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot Install Proper Version of Libraries · Issue #4809 - GitHub
Essentially, your pyproject.toml says that you are compatible with all Python versions greater than/equal to 3.8 but lesser than 4.0. Numpy has ...
Read more >
Should You Use Upper Bound Version Constraints?
In this discussion I would like to explain why always providing an upper limit causes far more harm than good even for true...
Read more >
Requirements.txt greater than equal to and then less than?
Yes. The pip manual has a section on the format of "requirement specifiers". These are documented in PEP-508 and PEP-440:.
Read more >
Dependency specification | Documentation | Poetry - Python ...
Version constraints Caret requirements Caret requirements allow SemVer compatible updates to a specified version. An update is allowed if the new version ......
Read more >
User Guide - pip documentation v22.3.1
Constraints files are requirements files that only control which version of a requirement is installed, not whether it is installed or not. Their...
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