Closed graysky2 closed 3 years ago
https://github.com/lclarkmichalek/archey3/pull/46 does not fix the issue for me. After applying the patch:
% archey3
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
EDIT: BUT, applying https://github.com/lclarkmichalek/archey3/pull/45 and https://github.com/lclarkmichalek/archey3/pull/46 together does fix it.
--- a/archey3 2018-06-30 14:18:37.000000000 -0400
+++ b/archey3 2018-08-06 15:29:44.196044373 -0400
@@ -548,7 +548,7 @@ class systemUpgrade(display):
#------------ Config -----------
-class ArcheyConfigParser(configparser.SafeConfigParser):
+class ArcheyConfigParser(configparser.ConfigParser):
"""
A parser for the archey config file.
"""
@@ -802,7 +802,6 @@ class Archey(object):
args = ()
yield groups["func"], args
- raise StopIteration
def format_item(self, item):
title = item[0].rstrip(':')
Yeah replacing lines 551 and 805 works for me:
551: class ArcheyConfigParser(configparser.SafeConfigParser): (depreciated?) 551: class ArcheyConfigParser(configparser.ConfigParser):
805: raise StopIteration (depreciated?) 805: return
Any plans for incorporating the fix into master anytime soon?
@lclarkmichalek will need to commit and push.
Sorry folks, my email notifications for github seem to be screwed up. Thanks for tagging me @graysky2. I merged one of the PRs, will bump the version
@lclarkmichalek :+1:
@lclarkmichalek, You definitively did not add a git tag, and you now have three different version numbers.
It's impossible to know what the actual version is, and moreover, the [community] package (which should really be removed as low-quality software) is "newer" than the current version, being packaged as 0.5 :frowning_face: and thus providing no reasonable upgrade path at all.
Fork it then, I haven't used this shit in years.
On Sun, 12 Aug 2018 at 14:21, Eli Schwartz notifications@github.com wrote:
@lclarkmichalek https://github.com/lclarkmichalek, You definitively did not add a git tag, and you now have three different version numbers.
- According to git describe, the current version from 2011 is 0.4-57-gac68752 (version 0.4 was correctly tagged, and has its version number consistent with setup.py and the actual file).
- According to the script itself, the version is 0.5 and has been since commit d44b1c5 https://github.com/lclarkmichalek/archey3/commit/d44b1c55b9b26851b8b40442326bef5ca11810f0 in 2013.
- According to your just-now-committed updates, the version is 0.4.1, but only in setup.py
It's impossible to know what the actual version is, and moreover, the [community] package (which should really be removed as low-quality software) is "newer" than the current version, being packaged as 0.5 ☹️ and thus providing no reasonable upgrade path at all.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lclarkmichalek/archey3/issues/47#issuecomment-412342502, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEyNROKpuYZ9kY78Xh3NdoyH8WeYfYrks5uQCu-gaJpZM4Vw89O .
Quite a few packages were pushed into their respective repos recently. Archey3 is broken as a result:
To help narrow it down: