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

Unknown command "undervolt" #136

Closed
gvgndr opened this issue Dec 13, 2020 · 3 comments
Closed

Unknown command "undervolt" #136

gvgndr opened this issue Dec 13, 2020 · 3 comments

Comments

@gvgndr
Copy link

gvgndr commented Dec 13, 2020

pip list outputs undervolt 0.3.0;
~$ pip check undervolt No broken requirements found.;
but $ pip help undervolt ERROR: unknown command "undervolt", and
so does sudo undervolt.
I'm using ubuntu 20.10.

@MariusSp
Copy link

MariusSp commented Dec 23, 2020

Did you install undervolt for the user or root?

I assume you installed it in your userspace. Please check if your user python /bin is part of your $PATH
echo $PATH
should contain
/home/<user>/.local/bin
or whereever your python environment installs its packages to.

@gvgndr
Copy link
Author

gvgndr commented Dec 27, 2020

Did you install undervolt for the user or root?

I assume you installed it in your userspace. Please check if your user python /bin is part of your $PATH
echo $PATH
should contain
/home//.local/bin
or whereever your python environment installs its packages to.

Yes, indeed, that is the output I get. In fact, ~$ undervolt works as expected,
but with $ undervolt --read I get

modprobe: ERROR: could not insert 'msr': Operation not permitted
Traceback (most recent call last):
  File "/home/andrea/.local/bin/undervolt", line 8, in <module>
    sys.exit(main())
  File "/home/andrea/.local/bin/undervolt.py", line 386, in main
    subprocess.check_call(['modprobe', 'msr'])
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['modprobe', 'msr']' returned non-zero exit status 1.

What does this mean? Also, would it be better to install undervolt as root?
Thank you!

@MariusSp
Copy link

MariusSp commented Dec 27, 2020

I'm certain it would be easier if you installed it globally.

have a look at this issue #46
There are suggestions on how to install and run undervolt.

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