Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: 'Comment' object has no attribute 'parent' #1

Open
robbel opened this issue Dec 23, 2015 · 1 comment
Open

Error: 'Comment' object has no attribute 'parent' #1

robbel opened this issue Dec 23, 2015 · 1 comment

Comments

@robbel
Copy link

robbel commented Dec 23, 2015

I am having issues with running the script on my html folder. It fails on the first class file with the output Error: 'Comment' object has no attribute 'parent' (File: xyz.html). This is even after removing all comments in that html file. Any suggestions are greatly appreciated.

@mmmarcos
Copy link
Owner

Hi robbel, which versions of BeautifulSoup and Python are you using ?

It may be related to this bug in BeautifulSoup 4.3.2. Apparently, it was fixed in BeautifulSoup 4.4.0 (bugfixes). So you can try upgrading BeautifulSoup :

pip install --upgrade beautifulsoup4 

@mmmarcos mmmarcos self-assigned this Jan 11, 2016
@mmmarcos mmmarcos removed their assignment Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants