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.

issue adding nornir as a dependency with poetry since 2.1.0 release

See original GitHub issue

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

github_iconTop GitHub Comments

1reaction
dbarrosopcommented, Mar 19, 2019
0reactions
wvandeuncommented, Mar 19, 2019

Yes; it works with 2.1.1 on pypi. Thx for the quick reaction & fix!

Read more comments on GitHub >

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

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