cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2550
Views
0
Helpful
1
Replies

Error ACIToolkit sample script

Hi all,

Recently our core infrastructure was upgraded to use an ACI multi-pod design.
I'm entirely new to scripting/automation and connecting to the APIC. I've used some easy postman tutorials so far to help out but postman seems to be less powerful than python or any other scripting language for extracting information and bulk configuration on the APIC-EM.
I've installed the ACIToolkit (it was successful as far as I could tell) to start using python and the sample scripts available but I ran into the below error when running the tutorial.py sample script:


$ python tutorial.py
Traceback (most recent call last):
File "tutorial.py", line 30, in <module>
from acitoolkit.acitoolkit import *
File "c:\git\acitoolkit\acitoolkit\__init__.py", line 30, in <module>
from .aciFaults import (Faults) # noqa
File "c:\git\acitoolkit\acitoolkit\aciFaults.py", line 6, in <module>
from jsonschema import validate, ValidationError
File "C:\Users\G001404\AppData\Local\Programs\Python\Python38\lib\site-packages\jsonschema-3.2.0-py3.8.egg\jsonschema\__init__.py", line 11, in <module>
from jsonschema.exceptions import (
File "C:\Users\G001404\AppData\Local\Programs\Python\Python38\lib\site-packages\jsonschema-3.2.0-py3.8.egg\jsonschema\exceptions.py", line 9, in <module>
import attr
ModuleNotFoundError: No module named 'attr'


I've tried to track down the .py files resulting in the error but like I said, I'm new to python so any pointer in the right direction is greatly appreciated.

Thank you very much!
Kristof

1 REPLY 1
Sergiu.Daniluk
VIP Engager

How did you installed the acitoolkit module? Did you used the steps mentioned here: https://github.com/datacenter/acitoolkit ?

https://github.com/datacenter/acitoolkit
cd acitoolkit
python setup.py install

IYou could try reinstalling the requirements:

! while being in acitoolkit directory
pip install -r requirements.txt

Stay safe,

Sergiu

Content for Community-Ad