carnal0wnage / weirdAAL

WeirdAAL (AWS Attack Library)
772 stars 92 forks source link

ImportError: cannot import name 'Iterable' from 'collections' #82

Open Dur4ndal opened 5 months ago

Dur4ndal commented 5 months ago

Issue: Cannot import name 'Iterable' from 'collections' (/usr/lib/python3.11/collections/init.py)

Fix: Iterable was removed from collections in Python 3.10. As a consequence, when "from tabulate import tabulate", Iterable isn't correctly imported, so change this line to from collections.abc import Iterable.

aoi-ue commented 2 months ago

Just to add on: once this is added you will bump into this

AttributeError: module 'collections' has no attribute 'Callable'

Fix: import collections collections.Callable = collections.abc.Callable