gpt4 book ai didi

ruby - Chef 独奏无法找到 Chef::Resource::PythonPip

转载 作者:数据小太阳 更新时间:2023-10-29 08:40:23 28 4
gpt4 key购买 nike

我正在通过 Chef 设置 Python virtualenv 设置。 Chef-solo 提示 Chef::Resource::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

是否需要 gem 或其他软件包才能在 Ubuntu 10.04 上运行它?

谢谢

最佳答案

尝试放置:

depends python

在您的 metadata.rb 文件中。

关于ruby - Chef 独奏无法找到 Chef::Resource::PythonPip,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8434655/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com