Appdynamics / appdynamics-cookbooks

29 stars 36 forks source link

No such method - python #73

Closed spuder closed 7 years ago

spuder commented 7 years ago

running kitchen converge ubuntu-1604

================================================================================
       Recipe Compile Error in /tmp/kitchen/cache/cookbooks/python/attributes/default.rb
       ================================================================================

       NoMethodError
       -------------
       undefined method `python' for #<Chef::Node::Attribute:0x0000000458c010>

       Cookbook Trace:
       ---------------
         /tmp/kitchen/cache/cookbooks/python/attributes/default.rb:23:in `from_file'

       Relevant File Content:
       ----------------------
       /tmp/kitchen/cache/cookbooks/python/attributes/default.rb:

        16:  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        17:  # See the License for the specific language governing permissions and
        18:  # limitations under the License.
        19:  #
        20:
        21:  default['python']['install_method'] = 'package'
        22:
        23>> if python['install_method'] == 'package'
        24:    case platform
        25:    when "smartos"
        26:      default['python']['prefix_dir']         = '/opt/local'
        27:    else
        28:      default['python']['prefix_dir']         = '/usr'
        29:    end
        30:  else
        31:    default['python']['prefix_dir']         = '/usr/local'
        32:  end

       System Info:
       ------------
       chef_version=13.2.20
       platform=ubuntu
       platform_version=16.04
       ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
       program_name=chef-solo worker: ppid=5025;start=16:46:31;
       executable=/opt/chef/bin/chef-solo

       Running handlers:
       [2017-07-13T16:46:33+00:00] ERROR: Running exception handlers
       [2017-07-13T16:46:33+00:00] ERROR: Running exception handlers
       Running handlers complete
       [2017-07-13T16:46:33+00:00] ERROR: Exception handlers complete
       [2017-07-13T16:46:33+00:00] ERROR: Exception handlers complete
       Chef Client failed. 0 resources updated in 02 seconds
       [2017-07-13T16:46:33+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
       [2017-07-13T16:46:33+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
       [2017-07-13T16:46:33+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
       [2017-07-13T16:46:33+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
       [2017-07-13T16:46:33+00:00] ERROR: undefined method `python' for #<Chef::Node::Attribute:0x0000000458c010>
       [2017-07-13T16:46:33+00:00] ERROR: undefined method `python' for #<Chef::Node::Attribute:0x0000000458c010>
       [2017-07-13T16:46:33+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
       [2017-07-13T16:46:33+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
dkoepke commented 7 years ago

This is an issue int he Python cookbook, unrelated to the AppDynamics cookbook.

dkoepke commented 7 years ago

However, I do see that https://supermarket.chef.io/cookbooks/python is listed as deprecated. I'll put a PR for moving us over to https://supermarket.chef.io/cookbooks/poise-python 1.6.0.