Bug 32943

Summary: Request: replace non-functional abandoned dstat with the in-development dool fork.
Product: Mageia Reporter: PC LX <mageia>
Component: RPM PackagesAssignee: All Packagers <pkg-bugs>
Status: NEW --- QA Contact:
Severity: critical    
Priority: Normal CC: geiger.david68210
Version: 9   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: dstat-0.7.4-3.mga9.src.rpm CVE:
Status comment:

Description PC LX 2024-03-07 12:25:07 CET
Description of problem:

Currently the dstat program in non-functional.

When running dstat, it crashes and displays the message below. I tried multiple options, including the examples in the manual page but the result is always the same.

"""
# dstat
You did not select any stats, using -cdngy by default.
Traceback (most recent call last):
  File "/usr/bin/dstat", line 2825, in <module>
    main()
  File "/usr/bin/dstat", line 2684, in main
    scheduler.run()
  File "/usr/lib64/python3.10/sched.py", line 151, in run
    action(*argument, **kwargs)
  File "/usr/bin/dstat", line 2782, in perform
    line = line + o.show() + o.showend(totlist, vislist)
  File "/usr/bin/dstat", line 515, in show
    if isinstance(self.val[name], collections.Sequence) and not isinstance(self.val[name], six.string_types):
AttributeError: module 'collections' has no attribute 'Sequence'
"""

Since dstat development has ceased, was forked, and is being developed in a new project called "Dool", I suggest replacing it with Dool.
See: https://github.com/dstat-real/dstat
See: https://github.com/scottchiefbaker/dool

I have git cloned the current dool repository and tested it. All seems to be working on this up-to-date Mageia 9 system.



Version-Release number of selected component (if applicable):

# rpm -q dstat
dstat-0.7.4-3.mga9



How reproducible:

Always.



Steps to Reproduce:
1. Install package dstat.
2. Run dstat.
3. See error message.
Comment 1 Lewis Smith 2024-03-07 20:59:36 CET
Thank you for this thorough and helpful report.
It looks a very handy tool, yet you are the first to report its failure on M9.

Assigning globally as no one packager looks pertinent.

Assignee: bugsquad => pkg-bugs

Comment 2 David GEIGER 2024-03-08 06:19:19 CET
Done for Cauldron switching to dool fork of dstat.

CC: (none) => geiger.david68210