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#59598 - [archey3] not working after update to python.

Attached to Project: Community Packages
Opened by Zen Anon X (ZenAnonX) - Friday, 10 August 2018, 02:51 GMT
Last edited by Alexander F. Rødseth (xyproto) - Tuesday, 14 August 2018, 09:00 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Package archey3 available at "https://www.archlinux.org/packages/community/any/archey3/" stopped working after recent system update.


Error Msg:
/usr/bin/archey3:862: DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in future versions. Use ConfigParser directly instead.
config = ArcheyConfigParser()
Traceback (most recent call last):
File "/usr/bin/archey3", line 805, in parse_display
raise StopIteration
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/bin/archey3", line 869, in <module>
main()
File "/usr/bin/archey3", line 866, in main
archey.run(options.screenshot)
File "/usr/bin/archey3", line 728, in run
print(self.render())
File "/usr/bin/archey3", line 734, in render
results = self.prepare_results()
File "/usr/bin/archey3", line 753, in prepare_results
for cls_name, args in self.parse_display():
RuntimeError: generator raised StopIteration


Additional info:
* package version: 0.5-8


Steps to reproduce:
Install and run archey3
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Tuesday, 14 August 2018, 09:00 GMT
Reason for closing:  Fixed
Comment by rainer (raneon) - Saturday, 11 August 2018, 09:19 GMT
I have the same issue.
Comment by Henry Yang (xiaoming94) - Saturday, 11 August 2018, 19:24 GMT
Is this package still maintained upstream (i.e. On Github)?
Comment by Guillaume Koehl (opengk) - Sunday, 12 August 2018, 10:21 GMT
It was fixed on GitHub in the last commit: https://github.com/lclarkmichalek/archey3/commit/02ec857dfeacb839ec4ab6b476c19990b9804eb3
Only the PKGBUILD should be updated.
Comment by Morpheus (Morpheus) - Sunday, 12 August 2018, 12:07 GMT
idem, so I switched to archey4 instead of archey3 :
- To install it, I had to remove as root, the lsb-release file, this one will be re-installed with archey4.

Installing archey4 will delete archey3.

- All that remains is to modify the list of useful information: replace true by false for each info to remove, in the file :
/etc/archey4/config.json
Comment by Eli Schwartz (eschwartz) - Sunday, 12 August 2018, 13:50 GMT
The archey3 code makes me really uncomfortable, from its considerable use of subprocess in order to cat files, to the fact that its "distro check" is to see if the file /etc/pacman.conf exists. Furthermore, it is packaged from a git commit because 0.5 was never tagged, only the setup.py still says 0.4, and now in order to fix python 3.7 compatibility the maintainer has published version 0.4.1 (!!!)

@xyproto, If we must have some program to tell people what distro they are using, maybe you should remove archey3 and replace it with archey4, which seems at least from a surface check to be reasonably written and at least manages to correctly identify Manjaro based on lsb_release.
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 14 August 2018, 09:00 GMT
Thanks for reporting the issue. The archey3 package was updated and works again now.

After reading "Fork it then, I haven't used this shit in years.", by the current maintainer of archey3 (https://github.com/lclarkmichalek/archey3/issues/47), I agree that looking for a replacement would be a good next move.

I'll look into archey4, thanks for the suggestion.

Loading...