- From: Grig Gheorghiu <
>
- To:
- Subject: [chef] Re: Re: Issue with easy_install_package provider
- Date: Mon, 22 Nov 2010 21:01:40 -0800
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=AXi+xK74JfmAIcQLToqLSNwMlsDvikoq+Ptv1uGNXTeUefUi69RkYRb+0HL84REW1M aPUEmHprypyCaL77yQPc6M24BPkYBm1dXa1g6kDWrg9AKwB1/CsaxnZ8Mtxaxi+stjUV +G2Z9SlTi2EcVSNB/+O1RCt6hKlLUcwmlw+HU=
On Mon, Nov 22, 2010 at 8:45 PM, Joe Williams
<
>
wrote:
>
Grig,
>
>
I happened to write that provider. I found that it is difficult to detect
>
what python eggs are installed without attempting an import or scanning
>
through sys.path. Currently the provider should do it in that order but it
>
looks like it's exiting rather than getting rescued and trying to find it
>
in the sys.path. I'll work up a patch and get back to you.
>
>
-Joe
>
Hi Joe
Thanks for the quick reply. You're right, the original package name
(dnspython) should have been found by inspecting sys.path. Not sure
why it wasn't found. Here's what I get when I run this line (from
https://github.com/opscode/chef/blob/master/chef/lib/chef/provider/package/easy_install.rb)
on my target node:
# python -c "import sys; print sys.path"
['', '/usr/local/lib/python2.6/dist-packages/Jinja2-2.5.5-py2.6.egg',
'/usr/local/lib/python2.6/dist-packages/isodate-0.4.3-py2.6.egg',
'/usr/local/lib/python2.6/dist-packages/eventlet-0.9.13-py2.6.egg',
'/usr/local/lib/python2.6/dist-packages/greenlet-0.3.1-py2.6-linux-x86_64.egg',
'/usr/local/lib/python2.6/dist-packages/DBUtils-1.0-py2.6.egg',
'/usr/local/lib/python2.6/dist-packages/boto-2.0b3-py2.6.egg',
'/usr/local/lib/python2.6/dist-packages/amqplib-0.6.1-py2.6.egg',
'/usr/local/lib/python2.6/dist-packages/dnspython-1.9.1-py2.6.egg',
'/usr/local/lib/python2.6/dist-packages/pydkim-0.3-py2.6.egg',
'/usr/local/lib/python2.6/dist-packages/Django-1.2.3-py2.6.egg',
'/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2',
'/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old',
'/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages',
'/usr/lib/python2.6/dist-packages/PIL',
'/usr/lib/pymodules/python2.6',
'/usr/lib/pymodules/python2.6/gtk-2.0',
'/usr/local/lib/python2.6/dist-packages']
Grig
- [chef] Issue with easy_install_package provider, Grig Gheorghiu, 11/22/2010
- [chef] Re: Issue with easy_install_package provider, Joe Williams, 11/22/2010
- [chef] Re: Re: Issue with easy_install_package provider, Grig Gheorghiu, 11/22/2010
- [chef] Re: Re: Re: Issue with easy_install_package provider, Joe Williams, 11/22/2010
- [chef] Re: Re: Re: Re: Issue with easy_install_package provider, Grig Gheorghiu, 11/22/2010
- [chef] Re: Re: Re: Re: Re: Issue with easy_install_package provider, Joe Williams, 11/22/2010
- [chef] Re: Re: Re: Re: Re: Re: Issue with easy_install_package provider, Grig Gheorghiu, 11/22/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: Issue with easy_install_package provider, Joe Williams, 11/22/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Issue with easy_install_package provider, Rob Guttman, 11/23/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Issue with easy_install_package provider, Rob Guttman, 11/23/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Issue with easy_install_package provider, Joe Williams, 11/23/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Issue with easy_install_package provider, Gilles Devaux, 11/23/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Issue with easy_install_package provider, Joe Williams, 11/23/2010
Archive powered by MHonArc 2.6.16.