ptwobrussell / Mining-the-Social-Web-2nd-Edition

The official online compendium for Mining the Social Web, 2nd Edition (O'Reilly, 2013)
http://bit.ly/135dHfs
Other
2.9k stars 1.49k forks source link

compile error in cookbooks\python\attributes\default.rb #301

Open dfletter opened 8 years ago

dfletter commented 8 years ago

If anyone is still watching this, I could use your help.

I got a compile error in default.rb, ERROR: no implicit conversion of String into Integer. I do not know Ruby or Chef so I am stuck. I will give the whole dialog below.

thanks for any help. Dale Fletter

==> default: :required => "optional" ==> default: ==> default: attribute "yum/proxy_username", ==> default: :display_name => "yum.conf proxy_username", ==> default: :description => "Set the proxy_username to use for yum.conf", ==> default: :required => "optional" ==> default: ==> default: attribute "yum/proxy_password", ==> default: :display_name => "yum.conf proxy_password", ==> default: :description => "Set the proxy_password to use for yum.conf", ==> default: :required => "optional" ==> default: --- END RESPONSE --- ==> default: [2016-06-21T21:11:32+00:00] DEBUG: content_encoding = '' initializing noop stream deflator. ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Chef::HTTP::StreamHandler callin g Chef::HTTP::ValidateContentLength::ContentLengthCounter#handle_chunk ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Streaming download from chefzero ://localhost:8889/file_store/repo/cookbooks/yum/metadata.rb to tempfile /tmp/che f-rest20160621-1652-moluec ==> default: [2016-06-21T21:11:32+00:00] DEBUG: content_encoding = '' initializing noop stream deflator. ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Chef::HTTP::StreamHandler callin g Chef::HTTP::ValidateContentLength::ContentLengthCounter#handle_chunk ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Chef::HTTP::StreamHandler callin g Chef::HTTP::Decompressor::NoopInflater#handle_chunk ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::V alidateContentLength#handle_stream_complete ==> default: [2016-06-21T21:11:32+00:00] DEBUG: HTTP server did not include a Co ntent-Length header in response, cannot identify truncated downloads. ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::R emoteRequestID#handle_stream_complete ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::A uthenticator#handle_stream_complete ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::D ecompressor#handle_stream_complete ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::C ookieManager#handle_stream_complete ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::J SONOutput#handle_stream_complete ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::J SONInput#handle_stream_complete ==> default: [2016-06-21T21:11:32+00:00] INFO: Storing updated cookbooks/yum/met adata.rb in the cache. ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Chef::HTTP::StreamHandler callin g Chef::HTTP::Decompressor::NoopInflater#handle_chunk ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::V alidateContentLength#handle_stream_complete ==> default: [2016-06-21T21:11:32+00:00] DEBUG: HTTP server did not include a Co ntent-Length header in response, cannot identify truncated downloads. ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::R emoteRequestID#handle_stream_complete ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::A uthenticator#handle_stream_complete ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::D ecompressor#handle_stream_complete ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::C ookieManager#handle_stream_complete ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::J SONOutput#handle_stream_complete ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::J SONInput#handle_stream_complete ==> default: [2016-06-21T21:11:32+00:00] INFO: Storing updated cookbooks/yum/REA DME.md in the cache. ==> default: ==> default: - yum (2.3.0) ==> default: Installing Cookbook Gems: ==> default: Compiling Cookbooks... ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Cookbooks to compile: [:apt, :"b uild-essential", :yum, :python, :runit, :mtsw2e] ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Loading cookbook runit's library file: /var/chef/cache/cookbooks/runit/libraries/default.rb ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Loading cookbook runit's library file: /var/chef/cache/cookbooks/runit/libraries/provider_runit_service.rb ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Loading cookbook runit's library file: /var/chef/cache/cookbooks/runit/libraries/resource_runit_service.rb ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Node vagrant-00cf004a loading co okbook apt's attribute file /var/chef/cache/cookbooks/apt/attributes/default.rb ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Loading Attribute apt::default ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Node vagrant-00cf004a loading co okbook build-essential's attribute file /var/chef/cache/cookbooks/build-essentia l/attributes/default.rb ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Loading Attribute build-essentia l::default ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Node vagrant-00cf004a loading co okbook yum's attribute file /var/chef/cache/cookbooks/yum/attributes/default.rb ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Loading Attribute yum::default ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Node vagrant-00cf004a loading co okbook yum's attribute file /var/chef/cache/cookbooks/yum/attributes/elrepo.rb ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Loading Attribute yum::elrepo ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Node vagrant-00cf004a loading co okbook yum's attribute file /var/chef/cache/cookbooks/yum/attributes/epel.rb ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Loading Attribute yum::epel ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Node vagrant-00cf004a loading co okbook yum's attribute file /var/chef/cache/cookbooks/yum/attributes/remi.rb ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Loading Attribute yum::remi ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Node vagrant-00cf004a loading co okbook python's attribute file /var/chef/cache/cookbooks/python/attributes/defau lt.rb ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Loading Attribute python::defaul t ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Filtered backtrace of compile er ror: /var/chef/cache/cookbooks/python/attributes/default.rb:43:in []=',/var/che f/cache/cookbooks/python/attributes/default.rb:43:infrom_file' ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Backtrace entry for compile erro r: '/var/chef/cache/cookbooks/python/attributes/default.rb:43:in `[]='' ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Line number of compile error: '4 3' ==> default:

==> default: ===================================================================

==> default: Recipe Compile Error in /var/chef/cache/cookbooks/python/attributes /default.rb

==> default: ===================================================================

==> default: ==> default: TypeError ==> default: --------- ==> default: no implicit conversion of String into Integer ==> default: ==> default: Cookbook Trace: ==> default: --------------- ==> default: /var/chef/cache/cookbooks/python/attributes/default.rb:43:in []= ' ==> default: /var/chef/cache/cookbooks/python/attributes/default.rb:43:infro m_file' ==> default: ==> default: Relevant File Content: ==> default: ---------------------- ==> default: /var/chef/cache/cookbooks/python/attributes/default.rb: ==> default: ==> default: 36: default['python']['url'] = 'http://www.python.org/ftp/python'

==> default: 37: default['python']['version'] = '2.7.5' ==> default: 38: default['python']['checksum'] = '3b477554864e616a041ee4d7cef9 849751770bc7c39adaf78a94ea145c488059' ==> default: 39: default['python']['configure_options'] = %W{--prefix=#{python ['prefix_dir']}} ==> default: 40: ==> default: 41: default['python']['setuptools_script_url'] = 'https://bitbuck et.org/pypa/setuptools/raw/0.8/ez_setup.py' ==> default: 42: #default['python']['pip_script_url'] = 'https://raw.github.co m/pypa/pip/master/contrib/get-pip.py' ==> default: 43>> default ['python']['pip_script_url'] = 'https://bootstrap.pyp a.io/get-pip.py' 44: ==> default: ==> default: Platform: ==> default: --------- ==> default: x86_64-linux ==> default: [2016-06-21T21:11:32+00:00] DEBUG: Re-raising exception: TypeError

C:\Users\fletterd\Mining-the-Social-Web-2nd-Edition>