11-03-2022 07:20 AM
Hi im using the ACI toolkit to create an epg but im getting the following error:
line 6, in <module>
from acitoolkit import Credentials, Session, Tenant, AppProfile, BridgeDomain, EPG
File "C:\Users\u28057\AppData\Roaming\Python\Python310\site-packages\acitoolkit\__init__.py", line 35, in <module>
from .acitoolkit import ( # noqa
File "C:\Users\u28057\AppData\Roaming\Python\Python310\site-packages\acitoolkit\acitoolkit.py", line 33, in <module>
from collections import Sequence
ImportError: cannot import name 'Sequence' from 'collections' (C:\Program Files\Python310\lib\collections\__init__.py)
here is the script that im using:
Solved! Go to Solution.
11-04-2022 08:08 AM
Hi @Maaz.Javed
The problem you see is not with ACI toolkit, but with collections, which apparently changed in py3.10:
ImportError: cannot import name 'Sequence' from 'collections' (C:\Program Files\Python310\lib\collections\__init__.py)
If you search on google the error you will find tons of discussions.
However, for you the solution would not work, unless you modify the ACI toolkit module itself.
I would recommend you use an older version of python, like 3.9 - easier this way.
Take care,
Sergiu
11-04-2022 08:08 AM
Hi @Maaz.Javed
The problem you see is not with ACI toolkit, but with collections, which apparently changed in py3.10:
ImportError: cannot import name 'Sequence' from 'collections' (C:\Program Files\Python310\lib\collections\__init__.py)
If you search on google the error you will find tons of discussions.
However, for you the solution would not work, unless you modify the ACI toolkit module itself.
I would recommend you use an older version of python, like 3.9 - easier this way.
Take care,
Sergiu
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide