Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#71361 - urlwatch missing python-jq in optdepends

Attached to Project: Community Packages
Opened by Willem (willemw) - Friday, 25 June 2021, 17:04 GMT
Last edited by Daniel M. Capella (polyzen) - Friday, 23 July 2021, 20:42 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Daniel M. Capella (polyzen)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

urlwatch and jq are installed. When running urlwatch with a json query with a jq filter (https://urlwatch.readthedocs.io/en/latest/filters.html), it fails:

Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/urlwatch/handler.py", line 120, in process
data = FilterBase.process(filter_kind, subfilter, self, data)
File "/usr/lib/python3.9/site-packages/urlwatch/filters.py", line 187, in process
return filtercls(state.job, state).filter(data, subfilter)
File "/usr/lib/python3.9/site-packages/urlwatch/filters.py", line 905, in filter
raise ImportError('Please install jq')
ImportError: Please install jq

When installing the missing python-jq package, the query runs fine.

Expected: add python-jq to optdepends of urlwatch. It is an additional dependency for urlwatch: jq is not a dependency of python-jq.
This task depends upon

Closed by  Daniel M. Capella (polyzen)
Friday, 23 July 2021, 20:42 GMT
Reason for closing:  Fixed
Additional comments about closing:  https://github.com/archlinux/svntogit-co mmunity/commit/f11f5a0578d3b0750b84923b9 86b88456863754a

https://github.com/archlinux/svntogit-co mmunity/commit/169efea250af84acddeb1a4da 4bddbe0b69f4224
Comment by Willem (willemw) - Friday, 25 June 2021, 17:15 GMT
Note: python-jq is currently in the AUR.
Comment by tinywrkb (tinywrkb) - Wednesday, 07 July 2021, 12:17 GMT
jq.py need to be fixed upstream. Staticly linking is not acceptable, especially when the libs that are being pulled in are terribly outdated.
I'm using the attached setup.py for dynamic linking and it seems to be working as expected, but there are a few build warnings.

Loading...