Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upCannot run pip with sudo #1075
Cannot run pip with sudo #1075
Comments
This comment has been minimized.
This comment has been minimized.
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...) |
This comment has been minimized.
This comment has been minimized.
|
@foosel Thank you! I will use a virtual environment as suggested! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Let me also add a big thank you for the fully fleshed out bug report :) |
This comment has been minimized.
This comment has been minimized.
|
@foosel thank you for such a great piece of software :) |

Modifying
config.yamlin order to change the defaultpipcommand tosudo /usr/bin/pip2as 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
sudoin order to do it.The plugin manager is not able to detect pip. If I use
pip: '/usr/bin/pip2'thenpipis 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 deniedbut I don't know what permission is referring to, I already edited thesudoersfile to allow runningpip2without password.Latest
develbranch 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: waiton 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.