-
-
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
Cannot run pip with sudo #1075
Comments
I strongly suggest to switch to using a user-owned virtual environment so that this is NOT necessary. Since plugins can basically contain anything, running their install routines as root might not be the best idea. That being said, I'll look into fixing the call so that it allows sudo prefixing again (and add a warning that this is a bad idea in the process...) |
@foosel Thank you! I will use a virtual environment as suggested! |
Let me also add a big thank you for the fully fleshed out bug report :) |
@foosel thank you for such a great piece of software :) |
Modifying
config.yaml
in order to change the defaultpip
command tosudo /usr/bin/pip2
as stated in the docs here: https://github.com/foosel/OctoPrint/wiki/Plugin:-Plugin-Manager#configuring-the-pluginTo be able to install new plugins using the plugin manager because I need
sudo
in order to do it.The plugin manager is not able to detect pip. If I use
pip: '/usr/bin/pip2'
thenpip
is detected, but when usingpip: 'sudo /usr/bin/pip2'
it's not. I see in the log (attached below) that there is anOSError: [Errno 13] Permission denied
but I don't know what permission is referring to, I already edited thesudoers
file to allow runningpip2
without password.Latest
devel
branch as 28 September of 2015(if applicable - always include if unsure):
M3D Micro with M3D-Fio plugin for Octoprint
System running Browser (if applicable - always
include if unsure):
Chrome 46.0.2490.33 beta (64-bit) on OS X Yosemite 10.10.5
(ALWAYS INCLUDE AND DO NOT TRUNCATE):
http://pastebin.com/zapTMVWk
gist.github.com or pastebin.com (if applicable - always
include if unsure or reporting communication issues AND
DO NOT TRUNCATE):
Just lots of
Recv: wait
on gist.github.com or pastebin.com or alternatively a
screenshot (if applicable - always include if unsure
or reporting UI issues):
http://pastebin.com/CqWX8bFe
include if unsure or reporting UI issues):
I have read the FAQ.
The text was updated successfully, but these errors were encountered: