[chef] Re: Re: Re: Re: Issue with easy_install_package provider


Chronological Thread 
  • From: Rob Guttman < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Issue with easy_install_package provider
  • Date: Tue, 23 Nov 2010 00:51:53 -0500
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; b=UjfUlfVYTjFYc0eZO1nD+FY0Fno7zRyZQYuWYhZhrAtlgrFe/pibIGMmKJIuo0L3LS g3/ToyBF9NL0JHz1sTuymMXhXddssW+VKH5a9aJ4dbBYfaVFfZ4l+b8SigkspnurSONM wL+Vs19dJ+Sbkwsi2ZuoEg4fU7KKRgnoQB090=

Since you're in the mode, Joe, I had trouble using the easy_install provider for web.py <http://webpy.org> for similar (but perhaps not identical) reasons.

Also, as a future enhancement, it would be handy if the easy_install provider could handle installing local files as well.  For now I've needed to resort to custom execute resources.

Thanks for otherwise handy the provider, Joe!
- Rob


On Tue, Nov 23, 2010 at 12:28 AM, Joe Williams < "> > wrote:

On Nov 22, 2010, at 9:01 PM, Grig Gheorghiu wrote:

On Mon, Nov 22, 2010 at 8:45 PM, Joe Williams < " target="_blank"> > 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:


Try this patch out (works for me on a handful of packages):


If it works for you I'll create a bug ticket and get it submitted for the next release.

-Joe




Archive powered by MHonArc 2.6.16.

§