TypeError: 'str' object cannot be interpreted as an integer
aviland opened this issue · 4 comments
[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
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