Closed Bug 1622953 Opened 6 years ago Closed 3 years ago

mozregression warns about soupsieve not being installed on startup

Categories

(Testing :: mozregression, defect, P3)

Version 3
defect

Tracking

(Not tracked)

RESOLVED FIXED

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.'

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:

https://docs.python.org/3/library/warnings.html

Priority: -- → P3

(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?

(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:

https://github.com/mozilla/mozregression/blob/c10b618fd4044e79be9e127fd8b8be27edf3e7ed/requirements-dev.txt#L14

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.)

Severity: normal → S3

This is now fixed in beautifulsoup, since soupsieve is now a dependency regardless of Python version.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.