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

KeyError: 'machdep.cpu.brand_string' on M1 Macbook Air (2020) #63

Open
clstaudt opened this issue Nov 17, 2023 · 1 comment
Open

KeyError: 'machdep.cpu.brand_string' on M1 Macbook Air (2020) #63

clstaudt opened this issue Nov 17, 2023 · 1 comment

Comments

@clstaudt
Copy link

➤ asitop

ASITOP - Performance monitoring CLI tool for Apple Silicon
You can update ASITOP by running `pip install asitop --upgrade`
Get help at `https://github.com/tlkh/asitop`
P.S. You are recommended to run ASITOP with `sudo asitop`


[1/3] Loading ASITOP


/bin/sh: sysctl: command not found
/bin/sh: sysctl: command not found
Traceback (most recent call last):
  File "/opt/homebrew/bin/asitop", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/opt/homebrew/Cellar/asitop/0.0.24/libexec/lib/python3.12/site-packages/asitop/asitop.py", line 36, in main
    soc_info_dict = get_soc_info()
                    ^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/asitop/0.0.24/libexec/lib/python3.12/site-packages/asitop/utils.py", line 140, in get_soc_info
    "name": cpu_info_dict["machdep.cpu.brand_string"],
            ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'machdep.cpu.brand_string'
@conornash
Copy link

Instead of running asitop, try running sudo asitop. This fixed the issue for me.

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