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

BeautifulSoup([your markup], "lxml") #366

Open
ghost opened this issue Sep 6, 2016 · 1 comment
Open

BeautifulSoup([your markup], "lxml") #366

ghost opened this issue Sep 6, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 6, 2016

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/geeknote-0.2a0-py2.7.egg/geeknote/editor.py", line 174, in textToENML
Editor.checklistInSoupToENML(soup)
File "/usr/local/lib/python2.7/dist-packages/geeknote-0.2a0-py2.7.egg/geeknote/editor.py", line 148, in checklistInSoupToENML
pre = str_re.group(1)
AttributeError: 'NoneType' object has no attribute 'group'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/geeknote-0.2a0-py2.7.egg/geeknote/editor.py", line 174, in textToENML
Editor.checklistInSoupToENML(soup)
File "/usr/local/lib/python2.7/dist-packages/geeknote-0.2a0-py2.7.egg/geeknote/editor.py", line 148, in checklistInSoupToENML
pre = str_re.group(1)
AttributeError: 'NoneType' object has no attribute 'group'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/geeknote-0.2a0-py2.7.egg/geeknote/editor.py", line 174, in textToENML
Editor.checklistInSoupToENML(soup)
File "/usr/local/lib/python2.7/dist-packages/geeknote-0.2a0-py2.7.egg/geeknote/editor.py", line 148, in checklistInSoupToENML
pre = str_re.group(1)
AttributeError: 'NoneType' object has no attribute 'group'
/usr/lib/python2.7/dist-packages/bs4/init.py:166: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

To get rid of this warning, change this:

BeautifulSoup([your markup])

to this:

BeautifulSoup([your markup], "lxml")

markup_type=markup_type))

@jeffkowalski
Copy link

duplicate of #352, #317, #321, #364, #354, #305, #307, #331, #334

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

1 participant