issue adding nornir as a dependency with poetry since 2.1.0 release
See original GitHub issueCan’t add nornir 2.1.0 as a dependency for a project when using poetry.
$ mkdir zzz && cd zzz
$ pyenv local 3.7.2
$ pyenv version
3.7.2 (set by /tmp/zzz/.python-version)
$ poetry init
...snip...
$ cat pyproject.toml
[tool.poetry]
name = "zzz"
version = "0.1.0"
description = ""
authors = ["enzzzy@users.noreply.github.com>"]
[tool.poetry.dependencies]
python = "^3.7"
[tool.poetry.dev-dependencies]
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
$ poetry add nornir
Creating virtualenv zzz-py3.7 in /Users/enzzzy/Library/Caches/pypoetry/virtualenvs
Using version ^2.1 for nornir
Updating dependencies
Resolving dependencies... (0.0s)
[SolverProblemError]
The current project must support the following Python versions: ^3.7
Because no versions of nornir match >2.1,<3.0
and nornir (2.1.0) requires Python >=3.6,<3.8, nornir is forbidden.
So, because zzz depends on nornir (^2.1), version solving failed.
add [-D|--dev] [--git GIT] [--path PATH] [-E|--extras EXTRAS] [--optional] [--python PYTHON] [--platform PLATFORM] [--allow-prereleases] [--dry-run] [--] <name> (<name>)...
Not sure where the issue exactly is, I’m not familiar enough with poetry to troubleshoot this. I would expect the python version requirement is met since 3.7.2 > 3.6 && 3.7.2 < 3.8.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
nornir
Pluggable multi-threaded framework with inventory management to help operate collections of devices.
Read more >Commands | Documentation
The add command adds required packages to your pyproject.toml and installs them. If you do not specify a version constraint, poetry will choose...
Read more >Changelog — nornir 2.5.0 documentation
Fixes (#406) ssl_verify in netbox plugin should accept string #434 by @wvandeun · Add connection test for Netconf #427 by @ogenstad · Fix...
Read more >python - Poetry install fails with EnvCommandError: looks ...
I have no idea where soupsieve is coming as a dependency. It installs just fine using plain old pip inside the environment poetry...
Read more >Simple index
... aliyun-python-sdk-reid aliyun-python-sdk-reid-cloud aliyun-python-sdk-release-test aliyun-python-sdk-resourcemanager aliyun-python-sdk-retailcloud ...
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
For reference; https://github.com/sdispater/poetry/issues/743
Yes; it works with 2.1.1 on pypi. Thx for the quick reaction & fix!