Comments (4)
Hmm, could you please share a link to the powerplan AUR page? I wasn't aware there was one, I also couldn't find it
By default powerplan tries to use /usr/bin/python3 to run, which is the system's python install (rather than conda's). So powerplan would require psutil to be installed systemwide. What is a bit puzzling is that it worked before conda. Did you uninstall your system's psutil? I think the output of /usr/bin/python3 could hint the cause of the problem.
from powerplan.
Oh sh*t
Really sorry, it was not AUR.
And nope I did not remove psutil from my system
Now i tried this
Deactivate conda first
pip install psutil (as sudo, because powerplan runs as root)
reopen terminal, and all good to go
If u install a module with sudo while in conda, it dosent actually install it for the root user for some reason (or I might be wrong)
from powerplan.
Installing python-psutil with pacman should also work if you prefer that route
If u install a module with sudo while in conda, it dosent actually install it for the root user for some reason (or I might be wrong)
Conda is normally installed somewhere under the user's home directory with user access in mind. Installing conda packages with sudo is normally discouraged because it would write to the same user's conda directory but with root permissions (if the conda command is found). It might be different for system wide conda installations but I personally don't see the benefit to installing conda like that.
In this case installing psutil with conda wouldn't work because the python executable being used is the one provided by your system, not the conda one. I've thought enabling the use of /usr/bin/env python3 which could work with conda installs but that also brings it's own small set of problems. I've been slowly replacing psutil functions with more performant ones, in the future powerplan won't depend on psutil at all.
from powerplan.
I'm closing this issue since it looks like it was just a missing library, but feel free to comment here if there's any question/feedback.
from powerplan.
Related Issues (10)
- Turb doesn't turn off after laptop unplugged from power HOT 31
- There should be a "balanced" policy! HOT 5
- GUI HOT 13
- [Bug] IndexError: tuple index out of range in cpu.py HOT 7
- Issues with using arguments with powerplan HOT 12
- powerplan -s shows a different battery policy than what's set in powerplan.conf HOT 27
- switch between cpu power configurations depending on the current workload HOT 4
- AttributeError: 'Battery' object has no attribute 'charge_now' HOT 2
- Is it possible to integrate powerplan into KDE's panel and settings? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powerplan.