GithubHelp home page GithubHelp logo

Comments (4)

Haptein avatar Haptein commented on July 17, 2024

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.

SuperSecureHuman avatar SuperSecureHuman commented on July 17, 2024

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.

Haptein avatar Haptein commented on July 17, 2024

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.

Haptein avatar Haptein commented on July 17, 2024

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)

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.