Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on raspberry pi after adding AMD power read #171

Open
amanusk opened this issue Feb 27, 2021 · 2 comments
Open

Crash on raspberry pi after adding AMD power read #171

amanusk opened this issue Feb 27, 2021 · 2 comments

Comments

@amanusk
Copy link
Owner

amanusk commented Feb 27, 2021

Step 1: Describe your environment

  • System (Intel/AMD/Raspberry Pi etc): Rasbperry pi
  • OS version: _____
  • s-tui version: 1.1.1
  • Installation method(pip/PPA/source code): source

Step 2: Describe the problem:

Observed Results:

Crashes when starting after adding and power read

  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/pi/s-tui/s_tui/s_tui.py", line 958, in <module>
    main()
  File "/home/pi/s-tui/s_tui/s_tui.py", line 912, in main
    graph_controller = GraphController(args)
  File "/home/pi/s-tui/s_tui/s_tui.py", line 716, in __init__
    possible_sources = self._load_config(args.t_thresh)
  File "/home/pi/s-tui/s_tui/s_tui.py", line 651, in _load_config
    RaplPowerSource(),
  File "/home/pi/s-tui/s_tui/sources/rapl_power_source.py", line 45, in __init__
    self.reader = get_power_reader()
  File "/home/pi/s-tui/s_tui/sources/rapl_read.py", line 182, in get_power_reader
    if ReaderType.available():
  File "/home/pi/s-tui/s_tui/sources/rapl_read.py", line 165, in available
    if m[1] != "AuthenticAMD":
TypeError: 'NoneType' object is not subscriptable

Step 3: Reproduce the problem:

Steps to reproduce:

Run python3 -m s_tui.s_tui

@amanusk
Copy link
Owner Author

amanusk commented Feb 27, 2021

cc @schaerfo perhaps you know how to easily fix this?

@JulianGro
Copy link

It this still up to date? Release v1.1.3 says Fixed crashing bug on Raspberry piwithout any PR or issue linked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants