-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[Request] Support non standard pip executable locations in the plugin manager #3700
Comments
It is indeed. I'm going to reclassify this as a feature request to support non-standard pip locations for the plugin manager to use. |
Plugin Manager, Software Update and Backup will use that if set. Otherwise the old default of using LocalPipCaller is used. Not exposed via the UI as this REALLY should only be used by people who know what they are doing and the majority of users out there will never ever have to use it. Implements #3700
Ready for 1.5.0. A globally configured local pip command can be set via |
1.5.0 has just been released. |
@foosel
It seems to be that
As can be seen, the whole effort is to make OctoPrint calling pip via sudo to allow managing a global/system-side instance via web UI plugins management and updater. I also found |
Just verified by the log output on the web UI.
But the OctoPrint self-update ignores it and uses the default:
|
@MichaIng can you open a bug report, since this issue has been closed & the original request was solved, even if it seems broken, life is easier if we can separate it. |
New issue opened: #3892 |
What were you doing?
services.octoprint.enable
pip
to the OctoPrint systemd unit's PATH withsystemd.services.octoprint.path = [ pkgs.python3Packages.pip ];
pip
was not foundWhat did you expect to happen?
Pip should be found via the PATH, that is, under my current NixOS system,
/nix/store/lg8bzxkn9af1bky6dxvbyw2gm9rzr9rr-python3.8-pip-20.1.1/bin
What happened instead?
Pip is searched for in the Python install directory, which does not include Pip on NixOS:
/nix/store/ysfhjsvlrc7ra5qnsghmnwkk9p45jb1n-python3-3.8.5-env/bin
.I highly suspect this to be an issue in the function
autodetect_pip()
in/src/octoprint/util/pip.py
, which relies onsys.executable
to find pip.Did the same happen when running OctoPrint in safe mode?
Yes.
Version of OctoPrint
1.4.0
Operating System running OctoPrint
NixOS 20.09 (unstable branch)
Printer model & used firmware incl. version
N/A
Browser and version of browser, operating system running browser
N/A
Link to octoprint.log
https://gist.github.com/j0hax/f5c85c1e7bd164e60289bd4e824b7132
Link to contents of terminal tab or serial.log
N/A
Link to contents of Javascript console in the browser
N/A
Screenshot(s)/video(s) showing the problem:
N/A
I have read the FAQ.
The text was updated successfully, but these errors were encountered: