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

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)