Closed FloLaco closed 2 years ago
The solution is to specify the version 0.6.9
on this line https://github.com/napalm-automation/napalm/blob/68a7c70f3c928db40749bf76d10944bd347b7f43/requirements.txt#L16
@FloLaco ncclient/pyez need to fix whatever the ongoing issue is between them i.e. it is not a good idea to pin to a downrev version of a library (especially for an extended period of time).
0.6.9 is already over a year old.
You probably should redirect this issue to PyEZ and/or ncclient (i.e. PyEZ shouldn't be pinning to downrev software and if ncclient is broken with respect to Juniper's NETCONF/PyEZ then that underlying issue really needs fixed).
pip install napalm
(at least modern versions) should normally install ncclient 0.6.12, then downgrade to 0.6.9 because of the junos-eznc constraint. I can confirm this behaviour at least on Unix (don't have any Windows to test). Feel free to reopen if that still breaks your setup @FloLaco!
Description of Issue/Question
ncclient version is not specified by napalm, so it will install the lastest (
0.6.12
), but thejunos-eznc
dependency specified0.6.9
, which is not compatible. Error whenpip install
:ERROR: junos-eznc 2.6.2 has requirement ncclient==0.6.9, but you'll have ncclient 0.6.12 which is incompatible.
It produce error in
nornir
withnornir-napalm
.Did you follow the steps from https://github.com/napalm-automation/napalm#faq
Setup
napalm version
(Paste verbatim output from
pip freeze | grep napalm
between quotes below)Steps to Reproduce the Issue
pip install napalm==3.3.1
Error Traceback
(Paste the complete traceback of the exception between quotes below)