Coder Social home page Coder Social logo

Comments (8)

Chris911 avatar Chris911 commented on August 19, 2024

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

from istats.

stea4lth avatar stea4lth commented on August 19, 2024

from istats.

Chris911 avatar Chris911 commented on August 19, 2024

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

from istats.

stea4lth avatar stea4lth commented on August 19, 2024

I am using zsh.

from istats.

LopezNathan avatar LopezNathan commented on August 19, 2024

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.

from istats.

stea4lth avatar stea4lth commented on August 19, 2024

from istats.

Chris911 avatar Chris911 commented on August 19, 2024

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

from istats.

LopezNathan avatar LopezNathan commented on August 19, 2024

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

→ which ioreg
/usr/sbin/ioreg

from istats.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.