[chef] Python cookbook


Chronological Thread 
  • From: Nikhil Shah < >
  • To: " " < >
  • Subject: [chef] Python cookbook
  • Date: Mon, 11 Aug 2014 16:17:15 -0400

Can anyone point me in the right direction:
 
I've been using this cookbook, https://github.com/poise/python and i've set an override attribute for a later version for python. I've also tried to set the setuptools version to match the python version but no luck...HOWEVER, when I build from package, it installs everything fine, but the wrong version. 

default_attributes(

'python' => {

    'version' => '3.4.1',

    'install_method' => 'source'

}

)



ec2.compute-1.amazonaws.com   * remote_file[/var/chef/cache/Python-3.4.1.tgz] action create

ec2.compute-1.amazonaws.com     - create new file /var/chef/cache/Python-3.4.1.tgz

ec2.compute-1.amazonaws.com     - update content in file /var/chef/cache/Python-3.4.1.tgz from none to 8d007e

ec2.compute-1.amazonaws.com         (file sizes exceed 10000000 bytes, diff output suppressed)

ec2.compute-1.amazonaws.com     - change mode from '' to '0644'

ec2.compute-1.amazonaws.com 

ec2.compute-1.amazonaws.com   * link[/usr/local/bin/python] action create

ec2.compute-1.amazonaws.com     - create symlink at /usr/local/bin/python to /usr/local/bin/python3.4

ec2.compute-1.amazonaws.com 

ec2.compute-1.amazonaws.com Recipe: python::pip

ec2.compute-1.amazonaws.com   * cookbook_file[/var/chef/cache/get-pip.py] action create

ec2.compute-1.amazonaws.com     - create new file /var/chef/cache/get-pip.py

ec2.compute-1.amazonaws.com     - update content in file /var/chef/cache/get-pip.py from none to 415b4d

ec2.compute-1.amazonaws.com         (long diff of over 1000000 characters, diff output suppressed)

ec2.compute-1.amazonaws.com     - change mode from '' to '0644'

ec2.compute-1.amazonaws.com 

ec2.compute-1.amazonaws.com   * execute[install-pip] action run

ec2.compute-1.amazonaws.com     - execute   /usr/local/bin/python get-pip.py

ec2.compute-1.amazonaws.com 

ec2.compute-1.amazonaws.com 

ec2.compute-1.amazonaws.com   * python_pip[setuptools] action upgrade

ec2.compute-1.amazonaws.com ================================================================================

ec2.compute-1.amazonaws.com Error executing action `upgrade` on resource 'python_pip[setuptools]'

ec2.compute-1.amazonaws.com ================================================================================

ec2.compute-1.amazonaws.com 

ec2.compute-1.amazonaws.com 

ec2.compute-1.amazonaws.com Errno::ENOENT

ec2.compute-1.amazonaws.com -------------

ec2.compute-1.amazonaws.com No such file or directory - pip list

ec2.compute-1.amazonaws.com 

ec2.compute-1.amazonaws.com 

ec2.compute-1.amazonaws.com Cookbook Trace:

ec2.compute-1.amazonaws.com ---------------

ec2.compute-1.amazonaws.com /var/chef/cache/cookbooks/python/providers/pip.rb:112:in `current_installed_version'

ec2.compute-1.amazonaws.com /var/chef/cache/cookbooks/python/providers/pip.rb:100:in `load_current_resource'

ec2.compute-1.amazonaws.com 

ec2.compute-1.amazonaws.com 

ec2.compute-1.amazonaws.com Resource Declaration:

ec2.compute-1.amazonaws.com ---------------------

ec2.compute-1.amazonaws.com # In /var/chef/cache/cookbooks/python/recipes/pip.rb

ec2.compute-1.amazonaws.com 

ec2.compute-1.amazonaws.com  50: python_pip 'setuptools' do

ec2.compute-1.amazonaws.com  51:   action :upgrade

ec2.compute-1.amazonaws.com  52:   version node['python']['setuptools_version']

ec2.compute-1.amazonaws.com  53: end

ec2.compute-1.amazonaws.com 

ec2.compute-1.amazonaws.com 

ec2.compute-1.amazonaws.com 

ec2.compute-1.amazonaws.com Compiled Resource:

ec2.compute-1.amazonaws.com ------------------

ec2.compute-1.amazonaws.com # Declared in /var/chef/cache/cookbooks/python/recipes/pip.rb:50:in `from_file'

ec2.compute-1.amazonaws.com 

ec2.compute-1.amazonaws.com python_pip("setuptools") do

ec2.compute-1.amazonaws.com   action [:upgrade]

ec2.compute-1.amazonaws.com   retries 0

ec2.compute-1.amazonaws.com   retry_delay 2

ec2.compute-1.amazonaws.com   guard_interpreter :default

ec2.compute-1.amazonaws.com   cookbook_name "python"

ec2.compute-1.amazonaws.com   recipe_name "pip"

ec2.compute-1.amazonaws.com   version "3.4.1"

ec2.compute-1.amazonaws.com   package_name "setuptools"

ec2.compute-1.amazonaws.com end

ec2.compute-1.amazonaws.com 

ec2.compute-1.amazonaws.com 

ec2.compute-1.amazonaws.com 

ec2.compute-1.amazonaws.com 

ec2.compute-1.amazonaws.com Running handlers:

ec2.compute-1.amazonaws.com [2014-08-11T19:59:19+00:00] ERROR: Running exception handlers

ec2.compute-1.amazonaws.com Running handlers complete

ec2.compute-1.amazonaws.com 

ec2.compute-1.amazonaws.com [2014-08-11T19:59:19+00:00] ERROR: Exception handlers complete

ec2.compute-1.amazonaws.com [2014-08-11T19:59:19+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out

ec2.compute-1.amazonaws.com Chef Client failed. 18 resources updated in 393.998412496 seconds

ec2.compute-1.amazonaws.com [2014-08-11T19:59:19+00:00] ERROR: python_pip[setuptools] (python::pip line 50) had an error: Errno::ENOENT: No such file or directory - pip list

ec2.compute-1.amazonaws.com [2014-08-11T19:59:19+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)


--
Nikhil Shah  System Administrator

THE ORCHARD Distribution Done Right
23 E 4th St Fl 3, New York, NY 10003

Follow us: The Daily Rind  Facebook  Twitter  YouTube  LinkedIn

Privileged And Confidential Communication. This electronic transmission, and any documents attached hereto, (a) are protected by the Electronic Communications Privacy Act (18 USC §§ 2510-2521), (b) may contain confidential and/or legally privileged information, and (c) are for the sole use of the intended recipient named above. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of the information received in error is strictly prohibited.


  • [chef] Python cookbook, Nikhil Shah, 08/11/2014

Archive powered by MHonArc 2.6.16.

§