vim-geeknote
vim-geeknote copied to clipboard
UserWarning: No parser was explicitly specified
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/
beautifulsoup4-4.4.0-py2.7.egg/bs4/__init__.py:166:
UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser
for this system ("html.parser"). 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], "html.parser")
When open file.
Change enml.py
19 soup = BeautifulSoup(contentENML.decode('utf-8'))
to
19 soup = BeautifulSoup(contentENML.decode('utf-8'), 'html-parser')
resolved.
I attempted to make the above mentioned change, with the suggestion from my error message to use "lxml". However, the issue still persists.
I was able to get the error to go away by modifying line 19 of enml.py as recommended above to:
soup = BeautifulSoup(contentENML.decode('utf-8'), 'lxml')
I have the sane warning here.