{"action":"created","issue":{"url":"https://api.github.com/repos/ptwobrussell/Mining-the-Social-Web-2nd-Edition/issues/243","labels_url":"https://api.github.com/repos/ptwobrussell/Mining-the-Social-Web-2nd-Edition/issues/243/labels{/name}","comments_url":"https://api.github.com/repos/ptwobrussell/Mining-the-Social-Web-2nd-Edition/issues/243/comments","events_url":"https://api.github.com/repos/ptwobrussell/Mining-the-Social-Web-2nd-Edition/issues/243/events","html_url":"https://github.com/ptwobrussell/Mining-the-Social-Web-2nd-Edition/issues/243","id":51898638,"number":243,"title":"Python issue installing VM","user":{"login":"jknipp","id":84280,"avatar_url":"https://avatars.githubusercontent.com/u/84280?v=3","gravatar_id":"","url":"https://api.github.com/users/jknipp","html_url":"https://github.com/jknipp","followers_url":"https://api.github.com/users/jknipp/followers","following_url":"https://api.github.com/users/jknipp/following{/other_user}","gists_url":"https://api.github.com/users/jknipp/gists{/gist_id}","starred_url":"https://api.github.com/users/jknipp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jknipp/subscriptions","organizations_url":"https://api.github.com/users/jknipp/orgs","repos_url":"https://api.github.com/users/jknipp/repos","events_url":"https://api.github.com/users/jknipp/events{/privacy}","received_events_url":"https://api.github.com/users/jknipp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":49,"created_at":"2014-12-13T20:30:08Z","updated_at":"2015-02-26T14:44:11Z","closed_at":null,"body":"On OSX Yosemite host, ran into the following issue installing setup tools (ez_setup & pip).  Looks like python was not linked as expected by Chef.  Resolved it by running `vagrant ssh` and then `sudo ln -s /usr/bin/python /bin/python`.  \r\n\r\nAfter that I had to run `vagrant provision`.\r\n\r\n==> default: ================================================================================\r\n==> default: Error executing action `run` on resource 'execute[install-setuptools]'\r\n==> default: ================================================================================\r\n==> default:\r\n==> default:\r\n==> default: Mixlib::ShellOut::ShellCommandFailed\r\n==> default: ------------------------------------\r\n==> default: Expected process to exit with [0], but received '127'\r\n==> default: ---- Begin output of   /bin/python ez_setup.py\r\n==> default:  ----\r\n==> default: STDOUT:\r\n==> default:\r\n==> default: STDERR: sh: 1: /bin/python: not found\r\n==> default: ---- End output of   /bin/python ez_setup.py\r\n==> default:  ----\r\n==> default: Ran   /bin/python ez_setup.py\r\n==> default:  returned 127\r\n==> default:\r\n==> default: Resource Declaration:\r\n==> default: ---------------------\r\n==> default: # In /tmp/vagrant-chef-5/chef-solo-1/cookbooks/python/recipes/pip.rb\r\n==> default:\r\n==> default:\r\n==> default:\r\n==> default:  48: execute \"install-setuptools\" do\r\n==> default:\r\n==> default:  49:   cwd Chef::Config[:file_cache_path]\r\n==> default:  50:   command <<-EOF\r\n==> default:  51:   #{node['python']['binary']} ez_setup.py\r\n==> default:  52:   EOF\r\n==> default:  53:   not_if \"#{node['python']['binary']} -c 'import setuptools'\"\r\n==> default:  54: end\r\n==> default:  55:\r\n==> default:\r\n==> default:\r\n==> default:\r\n==> default: Compiled Resource:\r\n==> default: ------------------\r\n==> default: # Declared in /tmp/vagrant-chef-5/chef-solo-1/cookbooks/python/recipes/pip.rb:48:in `from_file'\r\n==> default:\r\n==> default:\r\n==> default:\r\n==> default: execute(\"install-setuptools\") do\r\n==> default:\r\n==> default:   action \"run\"\r\n==> default:\r\n==> default:   retries 0\r\n==> default:\r\n==> default:   retry_delay 2\r\n==> default:\r\n==> default:   default_guard_interpreter :execute\r\n==> default:   command \"  /bin/python ez_setup.py\\n\"\r\n==> default:\r\n==> default:   backup 5\r\n==> default:\r\n==> default:   cwd \"/var/chef/cache\"\r\n==> default:   returns 0\r\n==> default:\r\n==> default:   cookbook_name :python\r\n==> default:\r\n==> default:   recipe_name \"pip\"\r\n==> default:\r\n==> default:   not_if \"/bin/python -c 'import setuptools'\"\r\n==> default:\r\n==> default: end\r\n==> default:\r\n==> default:\r\n==> default:\r\n==> default: [2014-12-13T19:50:14+00:00] INFO: Running queued delayed notifications before re-raising exception\r\n==> default: [2014-12-13T19:50:14+00:00] DEBUG: Re-raising exception: Mixlib::ShellOut::ShellCommandFailed - execute[install-setuptools] (python::pip line 48) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '127'\r\n==> default: ---- Begin output of   /bin/python ez_setup.py\r\n==> default:  ----\r\n==> default: STDOUT:\r\n==> default: STDERR: sh: 1: /bin/python: not found\r\n==> default: ---- End output of   /bin/python ez_setup.py\r\n==> default:  ----\r\n==> default: Ran   /bin/python ez_setup.py\r\n==> default:  returned 127\r\n==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.0.0/lib/mixlib/shellout.rb:267:in `invalid!'\r\n==> default:   /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.0.0/lib/mixlib/shellout.rb:254:in `error!'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/mixin/shell_out.rb:50:in `shell_out!'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/provider/execute.rb:60:in `block in action_run'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/mixin/why_run.rb:52:in `call'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/mixin/why_run.rb:52:in `add_action'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/provider.rb:180:in `converge_by'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/provider/execute.rb:59:in `action_run'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/provider.rb:145:in `run_action'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/resource.rb:654:in `run_action'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/runner.rb:49:in `run_action'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/runner.rb:81:in `block (2 levels) in converge'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/runner.rb:81:in `each'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/runner.rb:81:in `block in converge'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/resource_collection/resource_list.rb:83:in `block in execute_each_resource'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:116:in `call'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/resource_collection/resource_list.rb:81:in `execute_each_resource'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/runner.rb:80:in `converge'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/client.rb:315:in `converge'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/client.rb:400:in `block in run'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/client.rb:399:in `catch'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/client.rb:399:in `run'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/application.rb:261:in `block in fork_chef_client'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/application.rb:249:in `fork'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/application.rb:249:in `fork_chef_client'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/application.rb:215:in `block in run_chef_client'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/local_mode.rb:38:in `with_server_connectivity'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/application.rb:201:in `run_chef_client'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/application/solo.rb:245:in `block in interval_run_chef_client'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/application/solo.rb:234:in `loop'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/application/solo.rb:234:in `interval_run_chef_client'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/application/solo.rb:224:in `run_application'\r\n==> default:   /opt/chef/embedded/apps/chef/lib/chef/application.rb:58:in `run'\r\n==> default:   /opt/chef/embedded/apps/chef/bin/chef-solo:25:in `<top (required)>'\r\n==> default:   /usr/bin/chef-solo:40:in `load'\r\n==> default:   /usr/bin/chef-solo:40:in `<main>'\r\n==> default: [2014-12-13T19:50:14+00:00] ERROR: Running exception handlers\r\n==> default: [2014-12-13T19:50:14+00:00] ERROR: Exception handlers complete\r\n==> default: [2014-12-13T19:50:14+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out\r\n==> default: [2014-12-13T19:50:14+00:00] DEBUG: Mixlib::ShellOut::ShellCommandFailed: execute[install-setuptools] (python::pip line 48) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '127'\r\n==> default: ---- Begin output of   /bin/python ez_setup.py\r\n==> default:  ----\r\n==> default: STDOUT:\r\n==> default: STDERR: sh: 1: /bin/python: not found\r\n==> default: ---- End output of   /bin/python ez_setup.py\r\n==> default:  ----\r\n==> default: Ran   /bin/python ez_setup.py\r\n==> default:  returned 127\r\n==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.0.0/lib/mixlib/shellout.rb:267:in `invalid!'\r\n==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.0.0/lib/mixlib/shellout.rb:254:in `error!'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/mixin/shell_out.rb:50:in `shell_out!'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/provider/execute.rb:60:in `block in action_run'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/mixin/why_run.rb:52:in `call'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/mixin/why_run.rb:52:in `add_action'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/provider.rb:180:in `converge_by'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/provider/execute.rb:59:in `action_run'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/provider.rb:145:in `run_action'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/resource.rb:654:in `run_action'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/runner.rb:49:in `run_action'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/runner.rb:81:in `block (2 levels) in converge'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/runner.rb:81:in `each'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/runner.rb:81:in `block in converge'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/resource_collection/resource_list.rb:83:in `block in execute_each_resource'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:116:in `call'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/resource_collection/resource_list.rb:81:in `execute_each_resource'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/runner.rb:80:in `converge'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/client.rb:315:in `converge'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/client.rb:400:in `block in run'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/client.rb:399:in `catch'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/client.rb:399:in `run'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/application.rb:261:in `block in fork_chef_client'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/application.rb:249:in `fork'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/application.rb:249:in `fork_chef_client'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/application.rb:215:in `block in run_chef_client'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/local_mode.rb:38:in `with_server_connectivity'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/application.rb:201:in `run_chef_client'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/application/solo.rb:245:in `block in interval_run_chef_client'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/application/solo.rb:234:in `loop'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/application/solo.rb:234:in `interval_run_chef_client'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/application/solo.rb:224:in `run_application'\r\n==> default: /opt/chef/embedded/apps/chef/lib/chef/application.rb:58:in `run'\r\n==> default: /opt/chef/embedded/apps/chef/bin/chef-solo:25:in `<top (required)>'\r\n==> default: /usr/bin/chef-solo:40:in `load'\r\n==> default: /usr/bin/chef-solo:40:in `<main>'\r\n==> default: [2014-12-13T19:50:14+00:00] ERROR: execute[install-setuptools] (python::pip line 48) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '127'\r\n==> default: ---- Begin output of   /bin/python ez_setup.py\r\n==> default:  ----\r\n==> default: STDOUT:\r\n==> default: STDERR: sh: 1: /bin/python: not found\r\n==> default: ---- End output of   /bin/python ez_setup.py\r\n==> default:  ----\r\n==> default: Ran   /bin/python ez_setup.py\r\n==> default:  returned 127\r\n==> default: [2014-12-13T19:50:15+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)\r\nChef never successfully completed! Any errors should be visible in the\r\noutput above. Please fix your recipes so that they properly complete.\r\n"},"comment":{"url":"https://api.github.com/repos/ptwobrussell/Mining-the-Social-Web-2nd-Edition/issues/comments/76189375","html_url":"https://github.com/ptwobrussell/Mining-the-Social-Web-2nd-Edition/issues/243#issuecomment-76189375","issue_url":"https://api.github.com/repos/ptwobrussell/Mining-the-Social-Web-2nd-Edition/issues/243","id":76189375,"user":{"login":"hugokoopmans","id":2493853,"avatar_url":"https://avatars.githubusercontent.com/u/2493853?v=3","gravatar_id":"","url":"https://api.github.com/users/hugokoopmans","html_url":"https://github.com/hugokoopmans","followers_url":"https://api.github.com/users/hugokoopmans/followers","following_url":"https://api.github.com/users/hugokoopmans/following{/other_user}","gists_url":"https://api.github.com/users/hugokoopmans/gists{/gist_id}","starred_url":"https://api.github.com/users/hugokoopmans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugokoopmans/subscriptions","organizations_url":"https://api.github.com/users/hugokoopmans/orgs","repos_url":"https://api.github.com/users/hugokoopmans/repos","events_url":"https://api.github.com/users/hugokoopmans/events{/privacy}","received_events_url":"https://api.github.com/users/hugokoopmans/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T14:44:11Z","updated_at":"2015-02-26T14:44:11Z","body":"on linux mint 17 i can confirm the above works for me(see @astrego )\r\n"}}