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.
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
This solution worked for me:
Python310\Lib\site-packages\pyreadline in your file browser.py3k_compat.py in an text editor.isinstance(x, collections.Callable) to return isinstance(x, collections.abc.Callable).If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With