amanusk / s-tui

Terminal-based CPU stress and monitoring utility
https://amanusk.github.io/s-tui/
GNU General Public License v2.0
4.01k stars 139 forks source link

Broken package installation on openSUSE Leap 15.5 due to requirement of python3-psutil version >= 5.9.1 #209

Closed cristianst85 closed 7 months ago

cristianst85 commented 10 months ago

Hi. I am not sure where exactly to report this, but it appears to be a package problem.

Step 1: Describe your environment

Step 2: Describe the problem:

Observed Results:

When attempting to run s-tui it crashes with:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (psutil 5.8.0 (/usr/lib64/python3.6/site-packages), Requirement.parse('psutil>=5.9.1'), {'s-tui'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/s-tui", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3251, in <module>
    @_call_aside
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3235, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3264, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 585, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'psutil>=5.9.1' distribution was not found and is required by s-tui 

Debug Results, output of s-tui -d created in a file _s-tui.log:

n/a

Step 3: Reproduce the problem:

Steps to reproduce:

  1. install available package using zypper
  2. run s-tui

Note: the available python3-psutil package version for openSUSE Leap 15.5 is 5.8.0-150300.3.3.2.

Repos links:

cristianst85 commented 7 months ago

This is fixed now with the latest updates for openSUSE Leap 15.5. By running zypper ref and zypper up the python3-psutil package version is updated to 5.9.1-150300.3.6.1.