Hi there,
I'm trying to get started with the automation tools at: https://developer.arubanetworks.com/aruba-aoscx/docs/using-the-aos-cx-napalm-drivers
But I'm receiving an error with the PYAOSCX module when I attempt to issue the following command to NAPALM on the command-line on my automation server in my venv:
python3 -c "from napalm_aoscx.aoscx import AOSCXDriver"
(venv) [root@server netbox]# python3 -c "from napalm_aoscx.aoscx import AOSCXDriver"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/opt/netbox-3.6.1/venv/lib/python3.10/site-packages/napalm_aoscx/__init__.py", line 16, in <module>
from napalm_aoscx.aoscx import AOSCXDriver
File "/opt/netbox-3.6.1/venv/lib/python3.10/site-packages/napalm_aoscx/aoscx.py", line 52, in <module>
from pyaoscx import session, interface, system, common_ops, port, lldp, mac
ImportError: cannot import name 'system' from 'pyaoscx' (/opt/netbox-3.6.1/venv/lib/python3.10/site-packages/pyaoscx/__init__.py)
My virtual environment contains the necessary pre-requisite packages (output edited for brevity):
(venv) [root@server netbox]# pip freeze
…
napalm==4.1.0
napalm-aruba-cx==0.1.4
napalm-arubaos-switch==0.2.0
…
pyaoscx==2.5.1
…
requests==2.31.0
…
urllib3==2.1.0
…
I already tried reinstalling the packages by issuing: pip3 install --upgrade --force napalm-aruba-cx napalm-arubaos-switch
to no joy. Anyone have any ideas?