FS#62010 - [urlwatch] Exception due to missing optional dependency

Attached to Project: Community Packages
Opened by Markus (Markus00000) - Thursday, 14 March 2019, 13:16 GMT
Last edited by Daniel M. Capella (polyzen) - Tuesday, 12 May 2020, 02:52 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Daniel M. Capella (polyzen)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No

Details

Description: urlwatch optionally depends on requests-html to support jobs of kind "browser". If it is not installed, an exception is thrown: "ModuleNotFoundError: No module named 'requests_html'"

Steps to reproduce: Create a job of kind "browser" and run urlwatch.

kind: browser
name: "Arch Linux"
navigate: "https://www.archlinux.org/"

Installing python-requests-html from the AUR solves the issue.
This task depends upon

Closed by  Daniel M. Capella (polyzen)
Tuesday, 12 May 2020, 02:52 GMT
Reason for closing:  Deferred
Additional comments about closing:  "It is functionally identical to using requests directly, just like 'url' job." Will pull in pyppeteer as an optdep once there's a release with this sorted out.
Comment by Daniel M. Capella (polyzen) - Sunday, 10 May 2020, 21:56 GMT
Will put this on hold until https://github.com/thp/urlwatch/pull/355 is merged and hopefully pyppeteer sees another release. The PR uses pyppeteer directly.
Comment by Daniel M. Capella (polyzen) - Tuesday, 12 May 2020, 02:38 GMT

Loading...