I had to install the module 'google', and then because of errors, after reading a SO answer, I had to manually uninstall it. Since then, I am not able to import bs4. It is always giving me the following error:
Error processing line 3 of /usr/local/lib/python3.6/dist-packages/googleapis_common_protos-1.5.3-nspkg.pth:
Traceback (most recent call last):
File "/usr/lib/python3.6/site.py", line 174, in addpackage
exec(line)
File "<string>", line 1, in <module>
File "<frozen importlib._bootstrap>", line 568, in module_from_spec
AttributeError: 'NoneType' object has no attribute 'loader'
Remainder of file ignored
I am using Python 3 in ubuntu 17.10.