Closed daniel1820815 closed 2 years ago
that's expected -- can't use latest with your version of the controller... do
$ pip install "virl2-client<2.3.0"
...
$ pip list
Package Version
------------------ -----------
Package Version
------------------ -----------
certifi 2022.6.15
charset-normalizer 2.1.0
idna 3.3
pip 22.1.2
requests 2.28.1
requests-toolbelt 0.9.1
setuptools 56.0.0
urllib3 1.26.10
virl2-client 2.2.1.post2
$
which should give you a working combination -- alternatively, you can also download/install the client library from your controller which should always be compatible :)
Also... with that version, there's no "extra" section in the manifest... e.g. if you need pyATS then you have to pull in that dependency yourself... like pip install pyats[full]
. Which might still be what you want as "full" with pyATS also pulls in Genie and other additional dependencies.
With newer versions, you can do e.g. pip install "virl2-client[pyats]==2.4.0
.
Ah yes. My fault. The virl2_client version is linked to the controller version. Makes absolutely sense. Tested with version 2.2.1.post2 and it worked. Thanks a lot!
Tried to create a testbed, but controller version 2.2.3+build63 is incompatible with virl2_client:
_% python3 create_testbed_from_cml.py SSL Verification disabled Traceback (most recent call last): File "/Users/danielkuhl/Coding/nauto-lab-connectivity/create_testbed_from_cml.py", line 10, in
client = ClientLibrary(url, user, password, ssl_verify=False)
File "/Users/danielkuhl/Coding/nauto-lab-connectivity/venv/lib/python3.9/site-packages/virl2_client/virl2_client.py", line 281, in init
self.check_controller_version()
File "/Users/danielkuhl/Coding/nauto-lab-connectivity/venv/lib/python3.9/site-packages/virl2_client/virl2_client.py", line 429, in check_controller_version
raise InitializationError(
virl2_client.virl2client.InitializationError: Controller version 2.2.3+build63 is marked incompatible! List of versions marked explicitly as incompatible: [2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.1, 2.2.2, 2.2.3].
Tested with the following code:
Tested with Python 3.9.13 in a virtual environment and the following packages installed: