{"action":"created","issue":{"url":"https://api.github.com/repos/poise/poise-python/issues/7","labels_url":"https://api.github.com/repos/poise/poise-python/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/poise/poise-python/issues/7/comments","events_url":"https://api.github.com/repos/poise/poise-python/issues/7/events","html_url":"https://github.com/poise/poise-python/issues/7","id":109533253,"number":7,"title":"Unable to replace python cookbook with poise-python","user":{"login":"jamiebuxxx","id":1173214,"avatar_url":"https://avatars.githubusercontent.com/u/1173214?v=3","gravatar_id":"","url":"https://api.github.com/users/jamiebuxxx","html_url":"https://github.com/jamiebuxxx","followers_url":"https://api.github.com/users/jamiebuxxx/followers","following_url":"https://api.github.com/users/jamiebuxxx/following{/other_user}","gists_url":"https://api.github.com/users/jamiebuxxx/gists{/gist_id}","starred_url":"https://api.github.com/users/jamiebuxxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamiebuxxx/subscriptions","organizations_url":"https://api.github.com/users/jamiebuxxx/orgs","repos_url":"https://api.github.com/users/jamiebuxxx/repos","events_url":"https://api.github.com/users/jamiebuxxx/events{/privacy}","received_events_url":"https://api.github.com/users/jamiebuxxx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-02T17:15:31Z","updated_at":"2015-10-02T18:11:36Z","closed_at":null,"body":"We are trying to replace the depreciated [`python`](https://github.com/poise/python) cookbook with the `poise-python` cookbook in our Chef 12 environment. When running chef-client(`version 12.3.0`) on a system that previously had the `python` cookbook on it, we receive the following error message:\r\n\r\n```\r\nRecipe: poise-python::default\r\n  * python_runtime[2] action install\r\n\r\n    ================================================================================\r\n    Error executing action `install` on resource 'python_runtime[2]'\r\n    ================================================================================\r\n\r\n    Poise::Error\r\n    ------------\r\n    Unable to find cookbook for file \"/var/chef/cache/cookbooks/poise-python/files/halite_gem/poise_python/python_providers/base.rb\"\r\n\r\n    Cookbook Trace:\r\n    ---------------\r\n    /var/chef/cache/cookbooks/poise/files/halite_gem/poise/utils.rb:64:in `find_cookbook_name'\r\n    /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/defined_in.rb:69:in `poise_defined_in_cookbook'\r\n    /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/inversion.rb:233:in `default_inversion_attributes'\r\n    /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/inversion.rb:252:in `resolve_inversion_attribute'\r\n    /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/inversion.rb:268:in `block in inversion_options'\r\n    /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/inversion.rb:267:in `tap'\r\n    /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/inversion.rb:267:in `inversion_options'\r\n    /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/inversion.rb:307:in `resolve_inversion_provider'\r\n    /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/inversion.rb:350:in `provides?'\r\n\r\n    Resource Declaration:\r\n    ---------------------\r\n    # In /var/chef/cache/cookbooks/poise-python/recipes/default.rb\r\n\r\n     20: python_runtime '2' if node['poise-python']['install_python2']\r\n\r\n    Compiled Resource:\r\n    ------------------\r\n    # Declared in /var/chef/cache/cookbooks/poise-python/recipes/default.rb:20:in `from_file'\r\n\r\n    python_runtime(\"2\") do\r\n      action [:install]\r\n      retries 0\r\n      retry_delay 2\r\n      default_guard_interpreter :default\r\n      subresources [python_package[pymssql], python_package[pexpect]]\r\n      declared_type :python_runtime\r\n      cookbook_name \"poise-python\"\r\n      recipe_name \"default\"\r\n    end\r\n```\r\nHowever, we can see that cookbook files do exist:\r\n\r\n```\r\n$:~# ls -la /var/chef/cache/cookbooks/poise-python/files/halite_gem/poise_python/python_providers/\r\ntotal 28\r\ndrwxr-xr-x 2 root root 4096 Oct  2 16:58 .\r\ndrwxr-xr-x 5 root root 4096 Oct  2 16:58 ..\r\n-rw------- 1 root root 5819 Oct  2 16:58 base.rb\r\n-rw------- 1 root root 2646 Oct  2 16:58 portable_pypy.rb\r\n-rw------- 1 root root 3029 Oct  2 16:58 scl.rb\r\n-rw------- 1 root root 2647 Oct  2 16:58 system.rb\r\n```\r\nThere are no issues running the `poise-python` cookbook on brand new nodes or nodes that have never ran the `python` cookbook before."},"comment":{"url":"https://api.github.com/repos/poise/poise-python/issues/comments/145111391","html_url":"https://github.com/poise/poise-python/issues/7#issuecomment-145111391","issue_url":"https://api.github.com/repos/poise/poise-python/issues/7","id":145111391,"user":{"login":"jamiebuxxx","id":1173214,"avatar_url":"https://avatars.githubusercontent.com/u/1173214?v=3","gravatar_id":"","url":"https://api.github.com/users/jamiebuxxx","html_url":"https://github.com/jamiebuxxx","followers_url":"https://api.github.com/users/jamiebuxxx/followers","following_url":"https://api.github.com/users/jamiebuxxx/following{/other_user}","gists_url":"https://api.github.com/users/jamiebuxxx/gists{/gist_id}","starred_url":"https://api.github.com/users/jamiebuxxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamiebuxxx/subscriptions","organizations_url":"https://api.github.com/users/jamiebuxxx/orgs","repos_url":"https://api.github.com/users/jamiebuxxx/repos","events_url":"https://api.github.com/users/jamiebuxxx/events{/privacy}","received_events_url":"https://api.github.com/users/jamiebuxxx/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T18:11:36Z","updated_at":"2015-10-02T18:11:36Z","body":"Using the `env POISE_DEBUG=1 chef-client -l debug` command gives me the following, which looks simular to the original error message.\r\n\r\n```\r\nRecipe: poise-python::default\r\n  * python_runtime[2] action install\r\n\r\n    ================================================================================\r\n    Error executing action `install` on resource 'python_runtime[2]'\r\n    ================================================================================\r\n\r\n    Poise::Error\r\n    ------------\r\n    Unable to find cookbook for file \"/var/chef/cache/cookbooks/poise-python/files/halite_gem/poise_python/python_providers/base.rb\"\r\n\r\n    Cookbook Trace:\r\n    ---------------\r\n    /var/chef/cache/cookbooks/poise/files/halite_gem/poise/utils.rb:64:in `find_cookbook_name'\r\n    /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/defined_in.rb:69:in `poise_defined_in_cookbook'\r\n    /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/inversion.rb:237:in `default_inversion_attributes'\r\n    /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/inversion.rb:256:in `resolve_inversion_attribute'\r\n    /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/inversion.rb:272:in `block in inversion_options'\r\n    /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/inversion.rb:271:in `tap'\r\n    /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/inversion.rb:271:in `inversion_options'\r\n    /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/inversion.rb:311:in `resolve_inversion_provider'\r\n    /var/chef/cache/cookbooks/poise/files/halite_gem/poise/helpers/inversion.rb:354:in `provides?'\r\n\r\n    Resource Declaration:\r\n    ---------------------\r\n    # In /var/chef/cache/cookbooks/poise-python/recipes/default.rb\r\n\r\n     20: python_runtime '2' if node['poise-python']['install_python2']\r\n\r\n    Compiled Resource:\r\n    ------------------\r\n    # Declared in /var/chef/cache/cookbooks/poise-python/recipes/default.rb:20:in `from_file'\r\n\r\n    python_runtime(\"2\") do\r\n      action [:install]\r\n      retries 0\r\n      retry_delay 2\r\n      default_guard_interpreter :default\r\n      subresources [python_package[pymssql], python_package[pexpect]]\r\n      declared_type :python_runtime\r\n      cookbook_name \"poise-python\"\r\n      recipe_name \"default\"\r\n    end\r\n```\r\nI know the debug level is set because the chef-client is giving me a lot of extra output. And the environment variable is set as well.\r\n```\r\n$:~# export POISE_DEBUG=1\r\n$:~# echo $POISE_DEBUG\r\n1\r\n```"}}