cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3871
Views
6
Helpful
2
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

2 Replies 2

Sergiu.Daniluk
VIP Alumni
VIP Alumni

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

Ruben Cocheno
Spotlight
Spotlight

@KRISTOF SLACHMUYLDERS 

Are we good to close this?

Tag me to follow up.
Please mark it as Helpful and/or Solution Accepted if that is the case. Thanks for making Engineering easy again.
Connect with me for more on Linkedin https://www.linkedin.com/in/rubencocheno/