from collections import Iterable is deprecated in Python 3.10
samwincott opened this issue · 0 comments
samwincott commented
Running from CybORG import CybORG
using Python 3.10 results in an import error:
ImportError: cannot import name 'Iterable' from 'collections' (/home/user/miniconda3/envs/cyborg/lib/python3.10/collections/__init__.py)
This is because line 1 in CybORG/CybORG/Shared/Actions/AbstractActions/PrivilegeEscalate.py
,
from collections import Iterable
is deprecated in Python 3.10 and needs to be replaced with from collections.abc import Iterable
.