{"action":"created","issue":{"url":"https://api.github.com/repos/MycroftAI/mycroft-core/issues/414","repository_url":"https://api.github.com/repos/MycroftAI/mycroft-core","labels_url":"https://api.github.com/repos/MycroftAI/mycroft-core/issues/414/labels{/name}","comments_url":"https://api.github.com/repos/MycroftAI/mycroft-core/issues/414/comments","events_url":"https://api.github.com/repos/MycroftAI/mycroft-core/issues/414/events","html_url":"https://github.com/MycroftAI/mycroft-core/issues/414","id":196737279,"number":414,"title":"Pip easy_install requires sudo in dev_setup.sh","user":{"login":"aatchison","id":8539707,"avatar_url":"https://avatars.githubusercontent.com/u/8539707?v=3","gravatar_id":"","url":"https://api.github.com/users/aatchison","html_url":"https://github.com/aatchison","followers_url":"https://api.github.com/users/aatchison/followers","following_url":"https://api.github.com/users/aatchison/following{/other_user}","gists_url":"https://api.github.com/users/aatchison/gists{/gist_id}","starred_url":"https://api.github.com/users/aatchison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aatchison/subscriptions","organizations_url":"https://api.github.com/users/aatchison/orgs","repos_url":"https://api.github.com/users/aatchison/repos","events_url":"https://api.github.com/users/aatchison/events{/privacy}","received_events_url":"https://api.github.com/users/aatchison/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-20T17:52:10Z","updated_at":"2016-12-20T21:07:24Z","closed_at":null,"body":"I'm not sure when this changed, but I'm having problems using the dev setup script without sudo on a Raspbian image. `sudo easy_install pip` is working, but I wonder if it's necessary.\r\n\r\n\r\n> ./dev_setup.sh \r\nerror: can't create or remove files in install directory\r\n\r\nThe following error occurred while trying to add or remove files in the\r\ninstallation directory:\r\n\r\n    [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/test-easy-install-2699.write-test'\r\n\r\nThe installation directory you specified (via --install-dir, --prefix, or\r\nthe distutils default setting) was:\r\n\r\n    /usr/local/lib/python2.7/dist-packages/\r\n\r\nPerhaps your account does not have write access to this directory?  If the\r\ninstallation directory is a system-owned directory, you may need to sign in\r\nas the administrator or \"root\" account.  If you do not have administrative\r\naccess to this machine, you may wish to choose a different installation\r\ndirectory, preferably one that is listed in your PYTHONPATH environment\r\nvariable.\r\n\r\nFor information on other options, you may wish to consult the\r\ndocumentation at:\r\n\r\n  https://pythonhosted.org/setuptools/easy_install.html\r\n\r\nPlease make the appropriate changes for your system and try again.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/MycroftAI/mycroft-core/issues/comments/268359964","html_url":"https://github.com/MycroftAI/mycroft-core/issues/414#issuecomment-268359964","issue_url":"https://api.github.com/repos/MycroftAI/mycroft-core/issues/414","id":268359964,"user":{"login":"clusterfudge","id":1755317,"avatar_url":"https://avatars.githubusercontent.com/u/1755317?v=3","gravatar_id":"","url":"https://api.github.com/users/clusterfudge","html_url":"https://github.com/clusterfudge","followers_url":"https://api.github.com/users/clusterfudge/followers","following_url":"https://api.github.com/users/clusterfudge/following{/other_user}","gists_url":"https://api.github.com/users/clusterfudge/gists{/gist_id}","starred_url":"https://api.github.com/users/clusterfudge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clusterfudge/subscriptions","organizations_url":"https://api.github.com/users/clusterfudge/orgs","repos_url":"https://api.github.com/users/clusterfudge/repos","events_url":"https://api.github.com/users/clusterfudge/events{/privacy}","received_events_url":"https://api.github.com/users/clusterfudge/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T21:07:24Z","updated_at":"2016-12-20T21:07:24Z","body":"easy_install is used to install pip at a fixed version inside the virtualenv. If easy_install is complaining that it needs permissions to install/upgrade pip, that means that the bash session inside dev_setup is not currently operating within the virtualenv. Either virtualenv was not properly installed by build_host_setup, the virtualenv failed to create for some reason, or the virtualenv failed to activate for some reason. \r\n\r\nWe absolutely should not change the easy_install command to use sudo, and should fix the underlying cause instead."}}
{"actor":{"display_login":"clusterfudge"}}