How to use python pip to install a package

Hi,

The is the error I get in the chef run…

[Wed, 09 May 2012 07:06:14 +0000] FATAL: NoMethodError: undefined
method `python_pip’ for #Chef::Recipe:0x7f267f10e9b8

Below is the code for the package I want to install.

python_pip “uwsgi” do
action :install
end

So…what is the proper way to use pip in chef?

Thanks

You need the python cookbook in your cookbook metadata or on the edge.

Cheers,

AJ
On May 9, 2012 7:14 PM, "David Montgomery" davidmontgomery@gmail.com
wrote:

Hi,

The is the error I get in the chef run....

[Wed, 09 May 2012 07:06:14 +0000] FATAL: NoMethodError: undefined
method `python_pip' for #Chef::Recipe:0x7f267f10e9b8

Below is the code for the package I want to install.

python_pip "uwsgi" do
action :install
end

So...what is the proper way to use pip in chef?

Thanks

The following will help you out coz I've recently used the python_pip.

include_recipe 'python'
include_recipe "python::pip"
node['python']['distribute_install_py_version'] = "0.6.25"

python_pip "virtualenv" do
action :install
end


@millisami
~ Sachin Sagar Rai
Ruby on Rails Developer
http://tfm.com.np
http://nepalonrails.tumblr.com
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On Wednesday, May 9, 2012 at 1:01 PM, AJ Christensen wrote:

You need the python cookbook in your cookbook metadata or on the edge.
Cheers,
AJ
On May 9, 2012 7:14 PM, "David Montgomery" <davidmontgomery@gmail.com (mailto:davidmontgomery@gmail.com)> wrote:

Hi,

The is the error I get in the chef run....

[Wed, 09 May 2012 07:06:14 +0000] FATAL: NoMethodError: undefined
method `python_pip' for #Chef::Recipe:0x7f267f10e9b8

Below is the code for the package I want to install.

python_pip "uwsgi" do
action :install
end

So...what is the proper way to use pip in chef?

Thanks