mozregression warns about soupsieve not being installed on startup
Categories
(Testing :: mozregression, defect, P3)
Tracking
(Not tracked)
People
(Reporter: botond, Unassigned)
Details
Every time I run mozregression, I get the following warning on startup:
$ mozregression
/usr/local/lib/python2.7/dist-packages/bs4/element.py:16: UserWarning: The soupsieve package is not installed. CSS selectors cannot be used.
'The soupsieve package is not installed. CSS selectors cannot be used.'
Comment 1•6 years ago
|
||
Annoyingly, it seems like the only reasonable way to avoid this warning is to install the soupsieve package (which we don't actually need for anything):
https://bazaar.launchpad.net/~leonardr/beautifulsoup/bs4/view/head:/bs4/element.py#L16
It may be possible/desirable to suppress these types of warnings altogether, would need to research the topic:
| Reporter | ||
Comment 2•6 years ago
|
||
(In reply to William Lachance (:wlach) (use needinfo!) from comment #1)
Annoyingly, it seems like the only reasonable way to avoid this warning is to install the soupsieve package
Is that something an end-user needs to do, or can mozregression declare it as a dependency so that it's installed automatically at the time mozregression is installed?
Comment 3•6 years ago
|
||
(In reply to Botond Ballo [:botond] from comment #2)
Is that something an end-user needs to do, or can mozregression declare it as a dependency so that it's installed automatically at the time mozregression is installed?
should be able to declare it as a dependency here:
https://github.com/mozilla/mozregression/blob/c10b618fd4044e79be9e127fd8b8be27edf3e7ed/setup.py#L47
if you do that, best to also pin the version (for deterministic builds) here:
Comment 4•6 years ago
|
||
Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is P3 (Backlog,) indicating it has been triaged, the bug's Severity is being updated to S3 (normal.)
Comment 5•3 years ago
|
||
This is now fixed in beautifulsoup, since soupsieve is now a dependency regardless of Python version.
Description
•