Q: BeautifulSoup not working cannot import name 'BeautifulSoup' from partially initialized module 'bs4' I keep getting error code:
from bs4 import BeautifulSoup
ImportError: cannot import name 'BeautifulSoup' from partially initialized module 'bs4' (most likely due to a circular import) 
Can not find solution anywhere please help
import requests
from bs4 import BeautifulSoup

source = requests.get('https://www.instagram.com/wedding.pages/followers/').text

soup = BeautifulSoup(source, 'lxml')

print(soup.prettify())

from bs4 import BeautifulSoup
ImportError: cannot import name 'BeautifulSoup' from partially initialized module 'bs4' (most likely due to a circular import)


A: Try renaming python file that you working on from bs4 to something else. Maybe you named some other file in same directory ps4 so you must change it ! 
