Bug 2162771

Summary: Glances 3.3.1 Update Missing python-ujson Requirement
Product: [Fedora] Fedora Reporter: Jonathan Steffan <jonathansteffan>
Component: glancesAssignee: Ali Erdinc Koroglu <aekoroglu>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 36CC: aekoroglu, jonathan
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-20 20:10:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jonathan Steffan 2023-01-20 20:05:14 UTC
Description of problem:

Glances does not start with the error following error.

Traceback (most recent call last):
  File "/usr/bin/glances", line 5, in <module>
    from glances import main
  File "/usr/lib/python3.11/site-packages/glances/__init__.py", line 35, in <module>
    from glances.compat import PY3
  File "/usr/lib/python3.11/site-packages/glances/compat.py", line 24, in <module>
    from glances.logger import logger
  File "/usr/lib/python3.11/site-packages/glances/logger.py", line 20, in <module>
    from glances.globals import safe_makedirs
  File "/usr/lib/python3.11/site-packages/glances/globals.py", line 16, in <module>
    import ujson
ModuleNotFoundError: No module named 'ujson'

This happened after the latest update from updates-testing:

    Upgrade  glances-3.3.1-1.fc37.noarch                     @updates-testing
    Upgraded glances-3.3.0.4-2.fc37.noarch                   @@System


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

glances-3.3.1-1.fc37.noarch



How reproducible:


Steps to Reproduce:
1. Update to glances-3.3.1-1.fc37.noarch


Actual results:

Python traceback.


Expected results:

Glances runs.


Additional info:

Installing python3-ujson fixes things up and should be added as a Requires.

Comment 1 Jonathan Steffan 2023-01-20 20:10:40 UTC
Looks like this is already fixed in rawhide per rhbz#2162627.

*** This bug has been marked as a duplicate of bug 2162627 ***