iStats icon indicating copy to clipboard operation
iStats copied to clipboard

Not working on Apple Silicon macs

Open Kakise opened this issue 4 years ago • 11 comments

While the install works perfectly fine on Apple Silicon, I have the following error when trying to run the gem:

(base)  ~/ /usr/local/bin/istats Traceback (most recent call last): 7: from /usr/local/bin/istats:23:in <main>' 6: from /usr/local/bin/istats:23:in load' 5: from /Library/Ruby/Gems/2.6.0/gems/iStats-1.6.1/bin/istats:6:in <top (required)>' 4: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' 3: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' 2: from /Library/Ruby/Gems/2.6.0/gems/iStats-1.6.1/lib/iStats.rb:2:in <top (required)>' 1: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require': dlopen(/Library/Ruby/Gems/2.6.0/gems/iStats-1.6.1/lib/osx_stats.bundle, 0x0009): missing compatible arch in /Library/Ruby/Gems/2.6.0/gems/iStats-1.6.1/lib/osx_stats.bundle - /Library/Ruby/Gems/2.6.0/gems/iStats-1.6.1/lib/osx_stats.bundle (LoadError)

Kakise avatar Dec 08 '20 12:12 Kakise

Just adding I have the exact same issue on a new 2020 Mac Mini with Apple M1

snorkrat avatar Jan 13 '21 23:01 snorkrat

I am also using a M1 MacBook. Install Ruby3 using brew in x86 mode and use the gem installer in x86 mode worked for me. I am able to run it using the newer version of ruby3. However the information displayed is not 100% correct. See below:

➜  ~ iStats
--- CPU Stats ---
CPU temp:               0.0°C       ▁▂▃▅▆▇

--- Fan Stats ---
Total fans in system:   0           

--- Battery Stats ---
Battery health:         Check Battery
Cycle count:            1           ▁▂▃▅▆▇  0.1%
Max cycles:             1000        
Current charge:         70 mAh      ▁▂▃▅▆▇  70%
Maximum charge:         100 mAh     ▁▂▃▅▆▇  2.3%
Design capacity:        4382 mAh    
Battery temp:           0.0°C       

darrenlin avatar Jan 14 '21 01:01 darrenlin

I am also using a M1 MacBook. Install Ruby3 using brew in x86 mode and use the gem installer in x86 mode worked for me. I am able to run it using the newer version of ruby3. However the information displayed is not 100% correct. See below:

➜  ~ iStats
--- CPU Stats ---
CPU temp:               0.0°C       ▁▂▃▅▆▇

--- Fan Stats ---
Total fans in system:   0           

--- Battery Stats ---
Battery health:         Check Battery
Cycle count:            1           ▁▂▃▅▆▇  0.1%
Max cycles:             1000        
Current charge:         70 mAh      ▁▂▃▅▆▇  70%
Maximum charge:         100 mAh     ▁▂▃▅▆▇  2.3%
Design capacity:        4382 mAh    
Battery temp:           0.0°C       

I have the same behavior when following your steps on the M1 MBP

Kakise avatar Jan 14 '21 23:01 Kakise

Having the same issues here. Currently getting "missing compatible arch in /Library/Ruby/Gems/2.6.0/gems/iStats-1.6.1/lib/osx_stats.bundle"

Casuallynoted avatar Jan 20 '21 17:01 Casuallynoted

Just wondering if there are any plans to look at this and make it compatible with Apple Silicon?

snorkrat avatar Mar 01 '21 15:03 snorkrat

Same here :(

RNZ01 avatar Mar 25 '21 13:03 RNZ01

+1 me too

matthutchinson avatar Mar 25 '21 16:03 matthutchinson

I am having the same issue of incorrect stats displaying, viz CPU temp 0.

░▒▓    ~  istats all                                                                                            ✔  at 09:16:06 PM  ▓▒░
--- CPU Stats ---
CPU temp:               0.0°C       ▁▂▃▅▆▇

--- Fan Stats ---
Total fans in system:   2
Fan 0 speed:            0 RPM       ▁▂▃▅▆▇
Fan 1 speed:            0 RPM       ▁▂▃▅▆▇

--- Battery Stats ---
Battery health:         Check Battery
Cycle count:            19          ▁▂▃▅▆▇  1.9%
Max cycles:             1000
Current charge:         64 mAh      ▁▂▃▅▆▇  64%
Maximum charge:         100 mAh     ▁▂▃▅▆▇  1.2%
Design capacity:        8694 mAh
Battery temp:           0.0°C

shouryasaha avatar Jul 07 '22 15:07 shouryasaha