2011-12-08 227 views
2

我正在通過廚師設置python virtualenv設置。廚師獨奏在Chef::Resource::PythonPip抱怨缺少的方法,我相信:廚師獨奏無法找到廚師::資源:: PythonPip

$ chef-solo -c (my path)/solo.rb -l debug -j (my path)/solo.json 
... 
[Thu, 08 Dec 2011 16:49:58 +0000] DEBUG: Loading Recipe python::pip via include_recipe 
[Thu, 08 Dec 2011 16:49:58 +0000] DEBUG: Found recipe pip in cookbook python 
[Thu, 08 Dec 2011 16:49:58 +0000] DEBUG: Loading Recipe python::virtualenv via include_recipe 
[Thu, 08 Dec 2011 16:49:58 +0000] DEBUG: Found recipe virtualenv in cookbook python 
[Thu, 08 Dec 2011 16:49:58 +0000] DEBUG: I am not loading python::pip, because I have already seen it. 
/usr/lib/ruby/1.8/chef/recipe.rb:200:in `method_missing': Cannot find Chef::Resource::PythonPip for python_pip (NameError) 

我設置此服務器:

sudo apt-get -q -y update 
sudo apt-get -q -y install rubygems unzip ruby1.8-dev chef 
sudo gem install chef net-ssh-multi 

是否有寶石或其他包,我需要得到這個運行Ubuntu 10.04?

感謝

+1

您是否找到解決此問題的解決方案?請不要忘記標記答案是正確的! :) – sethvargo

回答

3

嘗試把:

depends python 
在metadata.rb文件