Skip to content

Another NonType error #256

@ztjuh

Description

@ztjuh

Step 1: Describe your environment

  • System (Intel/AMD/Raspberry Pi etc): Intel Core 245k
  • OS version: Pop!_OS 24.04
  • s-tui version: 1.3.0
  • Installation method(pip/PPA/source code): git

Step 2: Describe the problem:

Observed Results:

  • What happened? (Traceback of a crash/Image/description):
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/god/git/s-tui/s_tui/s_tui.py", line 1001, in <module>
    main()
  File "/home/god/git/s-tui/s_tui/s_tui.py", line 923, in main
    graph_controller.main()
  File "/home/god/git/s-tui/s_tui/s_tui.py", line 767, in main
    loop.run()
  File "/usr/lib/python3/dist-packages/urwid/event_loop/main_loop.py", line 337, in run
    self._run()
  File "/usr/lib/python3/dist-packages/urwid/event_loop/main_loop.py", line 439, in _run
    self.event_loop.run()
  File "/usr/lib/python3/dist-packages/urwid/event_loop/select_loop.py", line 182, in run
    self._loop()
  File "/usr/lib/python3/dist-packages/urwid/event_loop/select_loop.py", line 224, in _loop
    alarm_callback()
  File "/usr/lib/python3/dist-packages/urwid/event_loop/main_loop.py", line 218, in cb
    callback(self, user_data)
  File "/home/god/git/s-tui/s_tui/s_tui.py", line 861, in animate_graph
    self.view.update_displayed_information()
  File "/home/god/git/s-tui/s_tui/s_tui.py", line 259, in update_displayed_information
    source.update()
  File "/home/god/git/s-tui/s_tui/sources/fan_source.py", line 75, in update
    sample = psutil.sensors_fans()
             ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 2332, in sensors_fans
    return _psplatform.sensors_fans()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 1512, in sensors_fans
    current = int(bcat(base + '_input'))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

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

https://gist.github.com/ztjuh/b2f1e7688f540f635a9f3cf6af70461c

Step 3: Reproduce the problem:

Steps to reproduce:

  1. Started s-tui -d
  2. Started a stress test
  3. ^ Result

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions