TypeError: 'str' object cannot be interpreted as an integer
[1/3] Loading ASITOP
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/bin/asitop", line 8, in
same problem
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
same problem for asitop on python3.8
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
I ran this on an old Intel Mac and got the same error, so perhaps this could be caught or checked for and reported to the user as a warning...