Your message dated Tue, 6 May 2025 22:21:25 +0200
with message-id
<CAJg5CBH48F+87G=MBRBs=b170ex9+poouhgafohcyrt7wp8...@mail.gmail.com>
and subject line Re: Bug#1104785: urlwatch: the --tags option does not work
has caused the Debian Bug report #1104785,
regarding urlwatch: the --tags option does not work
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1104785: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104785
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: urlwatch
Version: 2.29-1
Severity: normal
I have two targets:
$ urlwatch --list
1: Fly ( https://fly.isti.cnr.it )
2: J-ISPIN ( https://ieeexplore.ieee.org/xpl/tocresult.jsp?isnumber=10108967 )
I can check the first target by number:
$ urlwatch 1
It gives no output as it has not changed, that's ok. But if I try to check it
by tag, the program fails:
$ urlwatch --tags Fly
Traceback (most recent call last):
File "/usr/bin/urlwatch", line 33, in <module>
sys.exit(load_entry_point('urlwatch==2.29', 'console_scripts',
'urlwatch')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/urlwatch/cli.py", line 109, in main
urlwatch_command.run()
File "/usr/lib/python3/dist-packages/urlwatch/command.py", line 479, in run
self.urlwatcher.run_jobs()
File "/usr/lib/python3/dist-packages/urlwatch/main.py", line 109, in run_jobs
run_jobs(self)
File "/usr/lib/python3/dist-packages/urlwatch/worker.py", line 59, in run_jobs
if urlwatcher.should_run(idx, job)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/urlwatch/main.py", line 77, in should_run
return job.matching_tags(self.urlwatch_config.tag_set)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/urlwatch/jobs.py", line 203, in
matching_tags
return self.tags & tags
~~~~~~~~~~^~~~~~
TypeError: unsupported operand type(s) for &: 'NoneType' and 'frozenset'
Apparently, this is because of a semantic error around '&'.
--
Francesco Potortì (ricercatore) Mobile: +39.348.8283.107
ISTI - Area della ricerca CNR Teams: wnlabisti
via G. Moruzzi 1, I-56124 Pisa Web: http://fly.isti.cnr.it
(gate 20, 1st floor, room C71) ISPIN: https://ieee-jispin.org/
-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (990, 'testing'), (101, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.12.11-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages urlwatch depends on:
ii libjs-sphinxdoc 8.1.3-5
hi python3 3.12.8-1
ii python3-cssselect 1.3.0-1
hi python3-lxml 5.3.1-1
ii python3-minidb 2.0.8-1
ii python3-platformdirs 4.3.7-1
ii python3-requests 2.32.3+dfsg-5
hi python3-yaml 6.0.2-1+b1
Versions of packages urlwatch recommends:
ii html2text 2.2.3-3
ii lynx 2.9.2-1
Versions of packages urlwatch suggests:
ii exim4-daemon-light [mail-transport-agent] 4.98.2-1
ii python3-bs4 4.13.4-1
ii python3-html2text 2025.4.15-1
pn python3-jsbeautifier <none>
ii python3-keyring 25.6.0-1
pn python3-vobject <none>
ii wdiff 1.2.2-9
-- no debconf information
--- End Message ---
--- Begin Message ---
Thanks for reporting, Francesco.
It seems you are trying to use jobs' names as tags. It's two different
notions. To use tags, just add them to your job definition :
kind: url
name: Fly
tags:
- FLY
- test
url: https://fly.isti.cnr.it
---
kind: url
name: J-ISPIN
tags: J-ISPIN
url: https://ieeexplore.ieee.org/xpl/tocresult.jsp?isnumber=10108967
I have proposed a patch to upstream to fix the error you encountered when
tags wasn't defined : https://github.com/thp/urlwatch/pull/843
Regards,
Maxime
Le mar. 6 mai 2025 à 15:03, Francesco Potortì <[email protected]> a
écrit :
> Package: urlwatch
> Version: 2.29-1
> Severity: normal
>
> I have two targets:
>
> $ urlwatch --list
> 1: Fly ( https://fly.isti.cnr.it )
> 2: J-ISPIN (
> https://ieeexplore.ieee.org/xpl/tocresult.jsp?isnumber=10108967 )
>
> I can check the first target by number:
>
> $ urlwatch 1
>
> It gives no output as it has not changed, that's ok. But if I try to
> check it by tag, the program fails:
>
> $ urlwatch --tags Fly
> Traceback (most recent call last):
> File "/usr/bin/urlwatch", line 33, in <module>
> sys.exit(load_entry_point('urlwatch==2.29', 'console_scripts',
> 'urlwatch')())
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3/dist-packages/urlwatch/cli.py", line 109, in main
> urlwatch_command.run()
> File "/usr/lib/python3/dist-packages/urlwatch/command.py", line 479, in
> run
> self.urlwatcher.run_jobs()
> File "/usr/lib/python3/dist-packages/urlwatch/main.py", line 109, in
> run_jobs
> run_jobs(self)
> File "/usr/lib/python3/dist-packages/urlwatch/worker.py", line 59, in
> run_jobs
> if urlwatcher.should_run(idx, job)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3/dist-packages/urlwatch/main.py", line 77, in
> should_run
> return job.matching_tags(self.urlwatch_config.tag_set)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3/dist-packages/urlwatch/jobs.py", line 203, in
> matching_tags
> return self.tags & tags
> ~~~~~~~~~~^~~~~~
> TypeError: unsupported operand type(s) for &: 'NoneType' and 'frozenset'
>
> Apparently, this is because of a semantic error around '&'.
>
> --
> Francesco Potortì (ricercatore) Mobile: +39.348.8283.107
> ISTI - Area della ricerca CNR Teams: wnlabisti
> via G. Moruzzi 1, I-56124 Pisa Web: http://fly.isti.cnr.it
> (gate 20, 1st floor, room C71) ISPIN: https://ieee-jispin.org/
>
> -- System Information:
> Debian Release: trixie/sid
> APT prefers testing
> APT policy: (990, 'testing'), (101, 'unstable')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
>
> Kernel: Linux 6.12.11-amd64 (SMP w/24 CPU threads; PREEMPT)
> Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN,
> TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
> Locale: LANG=C.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE not
> set
> Shell: /bin/sh linked to /usr/bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
>
> Versions of packages urlwatch depends on:
> ii libjs-sphinxdoc 8.1.3-5
> hi python3 3.12.8-1
> ii python3-cssselect 1.3.0-1
> hi python3-lxml 5.3.1-1
> ii python3-minidb 2.0.8-1
> ii python3-platformdirs 4.3.7-1
> ii python3-requests 2.32.3+dfsg-5
> hi python3-yaml 6.0.2-1+b1
>
> Versions of packages urlwatch recommends:
> ii html2text 2.2.3-3
> ii lynx 2.9.2-1
>
> Versions of packages urlwatch suggests:
> ii exim4-daemon-light [mail-transport-agent] 4.98.2-1
> ii python3-bs4 4.13.4-1
> ii python3-html2text 2025.4.15-1
> pn python3-jsbeautifier <none>
> ii python3-keyring 25.6.0-1
> pn python3-vobject <none>
> ii wdiff 1.2.2-9
>
> -- no debconf information
>
>
--- End Message ---