Error "AttributeError 'collections' has no attribute 'Callable' " using Beautiful Soup
Full error message
I followed all steps to install Beautiful Soup, but it still comes out with this error: AttributeError: module 'collections' has no attribute 'Callable' I am using Python 3.10.
Solutionsource: stackoverflow \u2197
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
API access
Get this solution programmatically \u2014 free, no authentication.
curl https://depscope.dev/api/error/b034165c5cd9a138d38b6a9c20c9a6cfde6596c48a928a9e22405d11228c042chash \u00b7 b034165c5cd9a138d38b6a9c20c9a6cfde6596c48a928a9e22405d11228c042c