Issue
I am trying to use BeautifulSoup, and despite using the import statement:
from bs4 import BeautifulSoup
I am getting the error: ImportError: cannot import name BeautifulSoup
import bs4
does not give any errors.
I have also tried import bs4.BeautifulSoup
and just importing bs4 and creating a BeautifulSoup object with: bs4.BeautifulSoup()
Any guidance would be appreciated.
Solution
The issue was I named the file HTMLParser.py
, and that name is already used somewhere in the bs4 module.
Thanks to everyone that helped!
Answered By - user4367461
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.