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

No such file or directory - ioreg #49

Closed
stea4lth opened this issue Mar 31, 2017 · 8 comments
Closed

No such file or directory - ioreg #49

stea4lth opened this issue Mar 31, 2017 · 8 comments

Comments

@stea4lth
Copy link

iStats was working fine and all of the sudden I started getting this error. Any suggestions?

--- CPU Stats ---
CPU temp: 51.13°C ▁▂▃▅▆▇

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

--- Battery Stats ---
Battery health: Good
/Library/Ruby/Gems/2.0.0/gems/iStats-1.4.0/lib/iStats/battery.rb:49:in ``': No such file or directory - ioreg (Errno::ENOENT)
from /Library/Ruby/Gems/2.0.0/gems/iStats-1.4.0/lib/iStats/battery.rb:49:in cycle_count' from /Library/Ruby/Gems/2.0.0/gems/iStats-1.4.0/lib/iStats/battery.rb:41:in all'
from /Library/Ruby/Gems/2.0.0/gems/iStats-1.4.0/lib/iStats/command.rb:70:in `all'
from /Library/Ruby/Gems/2.0.0/gems/iStats-1.4.0/lib/iStats/command.rb:40:in `delegate'
from /Library/Ruby/Gems/2.0.0/gems/iStats-1.4.0/lib/iStats/command.rb:20:in `execute'
from /Library/Ruby/Gems/2.0.0/gems/iStats-1.4.0/bin/istats:8:in `<top (required)>'
from /usr/local/bin/istats:23:in `load'
from /usr/local/bin/istats:23:in `

'

@Chris911
Copy link
Owner

Chris911 commented Apr 4, 2017

ioreg is a system command. Do you get the same error if you enter ioreg in your command line?

@stea4lth
Copy link
Author

stea4lth commented Apr 4, 2017 via email

@Chris911
Copy link
Owner

Chris911 commented Apr 4, 2017

That's weird. ioreg should be available by default on OS X. What shell/terminal are you using?

@stea4lth
Copy link
Author

stea4lth commented Apr 5, 2017

I am using zsh.

@LopezNathan
Copy link

LopezNathan commented Jun 9, 2017

I am having the same issue myself, on ZSH.

/Library/Ruby/Gems/2.0.0/gems/iStats-1.4.0/lib/iStats/battery.rb:49:in ``': No such file or directory - ioreg (Errno::ENOENT)
	from /Library/Ruby/Gems/2.0.0/gems/iStats-1.4.0/lib/iStats/battery.rb:49:in `cycle_count'
	from /Library/Ruby/Gems/2.0.0/gems/iStats-1.4.0/lib/iStats/battery.rb:41:in `all'
	from /Library/Ruby/Gems/2.0.0/gems/iStats-1.4.0/lib/iStats/command.rb:70:in `all'
	from /Library/Ruby/Gems/2.0.0/gems/iStats-1.4.0/lib/iStats/command.rb:40:in `delegate'
	from /Library/Ruby/Gems/2.0.0/gems/iStats-1.4.0/lib/iStats/command.rb:20:in `execute'
	from /Library/Ruby/Gems/2.0.0/gems/iStats-1.4.0/bin/istats:8:in `<top (required)>'
	from /usr/local/bin/istats:23:in `load'
	from /usr/local/bin/istats:23:in `<main>'

It seems the error only appears when executing through a script (bash). I am able to run the istats command itself without any errors.

Also, ioreg is an available command on my system and that executes without issues.

@stea4lth
Copy link
Author

stea4lth commented Jun 9, 2017 via email

@Chris911
Copy link
Owner

Thanks for replying back with the fix @stea4lth. I'm going to close this issue as it is not directly related to iStats.

@LopezNathan
Copy link

There is nothing wrong with my path variables, and I am still having the issue.

→ which ioreg
/usr/sbin/ioreg

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

3 participants