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

TypeError: 'str' object cannot be interpreted as an integer #56

Open
aviland opened this issue Mar 1, 2023 · 4 comments
Open

TypeError: 'str' object cannot be interpreted as an integer #56

aviland opened this issue Mar 1, 2023 · 4 comments

Comments

@aviland
Copy link

aviland commented Mar 1, 2023

[1/3] Loading ASITOP

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/bin/asitop", line 8, in
sys.exit(main())
^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/asitop/asitop.py", line 38, in main
e_core_gauges = [VGauge(val=0, color=args.color, border_color=args.color) for _ in range(e_core_count)]
^^^^^^^^^^^^^^^^^^^
TypeError: 'str' object cannot be interpreted as an integer

@FdyCN
Copy link

FdyCN commented Mar 27, 2023

same problem

@111andre111
Copy link

Do you really use an M1 or M2 Macbook?
I tested on my Intel Macbook and the executed commands don't return the appriopriate payloads.

For me at least the second logical CPU didn't come up as well as the number of GPU Cores:

$ sysctl -a | grep hw.perflevel | grep -E 'hw.perflevel0.logicalcpu|hw.perflevel1.logicalcpu'
        hw.perflevel0.logicalcpu: 16
        hw.perflevel0.logicalcpu_max: 16
--> hw.perflevel1 missing for variable e_core_count
$ system_profiler -detailLevel basic SPDisplaysDataType | grep 'Total Number of Cores'
  -
--> missing for variable gpu_core_count

@whutsunxu
Copy link

same problem for asitop on python3.8

@RayleighZ
Copy link

Do you really use an M1 or M2 Macbook? I tested on my Intel Macbook and the executed commands don't return the appriopriate payloads.

For me at least the second logical CPU didn't come up as well as the number of GPU Cores:

$ sysctl -a | grep hw.perflevel | grep -E 'hw.perflevel0.logicalcpu|hw.perflevel1.logicalcpu'
        hw.perflevel0.logicalcpu: 16
        hw.perflevel0.logicalcpu_max: 16
--> hw.perflevel1 missing for variable e_core_count
$ system_profiler -detailLevel basic SPDisplaysDataType | grep 'Total Number of Cores'
  -
--> missing for variable gpu_core_count

I believe this is the real reason, running asitop.py on intel chip mac will lead to e_core_count variable be '?', and this cause the problem of 'str' object cannot be interpreted as an integer

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

5 participants