Arch Linux

Please read this before reporting a bug:

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!

FS#70389 - [arch-signoff] stack trace when signed-off package is not installed locally

Attached to Project: Arch Linux
Opened by Geert Hendrickx (ghen) - Friday, 09 April 2021, 15:13 GMT
Last edited by Andreas Radke (AndyRTR) - Friday, 09 April 2021, 19:19 GMT
Task Type Bug Report
Category Packages: Extra
Status Assigned
Assigned To Jelle van der Waa (jelly)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No



arch-signoff throws the following stacktrace on attempt to signoff a package not installed on the local machine.

$ signoff -s grub
Traceback (most recent call last):
File "/usr/bin/signoff", line 33, in <module>
sys.exit(load_entry_point('arch-signoff==0.5.1', 'console_scripts', 'signoff')())
File "/usr/lib/python3.9/site-packages/click/", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/click/", line 782, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.9/site-packages/click/", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3.9/site-packages/click/", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/signoff/", line 402, in main
warn_if_outdated(signoff_pkg, local_pkg, colorize)
File "/usr/lib/python3.9/site-packages/signoff/", line 278, in warn_if_outdated
if local_pkg.version != signoff_pkg["version"]:
AttributeError: 'NoneType' object has no attribute 'version'

(my primary machine is UEFI and does not have grub, but I validated the package on another machine)

I would expect this to work when adding -u (uninstalled), but it still throws the same stack trace.

Additional info:
* package version(s)
arch-signoff 0.5.1-2

This task depends upon

Comment by Jelle van der Waa (jelly) - Thursday, 15 April 2021, 21:39 GMT Comment by Geert Hendrickx (ghen) - Saturday, 17 April 2021, 19:28 GMT
Can you make it possible to still signoff a package with -u ?
Comment by Jelle van der Waa (jelly) - Monday, 26 April 2021, 11:45 GMT
That's not as easy to implement nicely, so I'll have to think about it more.
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.