Error “AttributeError ‘collections’ has no attribute ‘Callable’ ” using Beautiful Soup
collections.Callable has been moved to collections.abc.Callable in python 3.10+. A hacky solution is to add the reference back to collections before importing the problem library. import collections collections.Callable = collections.abc.Callable from bs4 import BeautifulSoup # for example