Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

Warning on startup #23

Open
POPSuL opened this issue Mar 11, 2016 · 1 comment
Open

Warning on startup #23

POPSuL opened this issue Mar 11, 2016 · 1 comment

Comments

@POPSuL
Copy link

POPSuL commented Mar 11, 2016

After upgrade ubuntu to 16.04 idle_master displays the warning:

[popsul] idle_master_py/Releases/Linux [master] M?? % python2 ./start.py           
[ 03/11/2016 06:55:42 PM ] WELCOME TO IDLE MASTER
[ 03/11/2016 06:55:42 PM ] Finding games that have card drops remaining
/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 ("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")

  markup_type=markup_type))
@adam1x
Copy link

adam1x commented Mar 11, 2016

It's no big deal, not exactly an error. BeautifulSoup needs a parser to parse a given URL, but it is not given in start.py. However, BeautifulSoup can automatically determine the best parse available and use that if someone forgot to specify it.

If you want to get rid of this warning, just edit start.py as the warning tells you to.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants