-
Notifications
You must be signed in to change notification settings - Fork 604
COOK-4183 Set $HOME to new owner as in the pip provider when shelling ou... #72
Conversation
fixed the issue for us 👍 |
+1 for getting this fixed, running in to the exact same issue and the patch fixed it. |
…shelling out" This reverts commit f4b6af6.
hi @comandrei |
Looks better, thanks
👍 This might be happening as a result of pypa/virtualenv#532 |
👍 |
Dir.home will cause 'NoMethodError: undefined method `home' for Dir:Class' on Amazon Opsworks (Chef version 11.4.4) |
@wolfg1969 Dir.home was added in Ruby 1.9, is Amazon using Ruby 1.8? |
@coderanger yes, I think so. Using File.expand_path should be ok. |
@wolfg1969 That is unfortunate, Chef ships Ruby 1.9.3 so anything earlier than that is formally unsupported. As I rewrite this cookbook a bit it will definitely become 1.9+-only, so I would recommend avoiding Opsworks if they are indeed using an incorrect version of Ruby. |
@coderanger I understand. I'll do the trick in my cookbook. |
Thank you @coderanger for upgrading this cookbook to Ruby 1.9+. |
This patch fixes virtual env creation but the pip provider keeps raising the same OSError: [Errno 13] Permission denied: '/root/.distlib' for me. |
Fixed the issue for me 👍 |
Just curious if we are going to merge this or wait for a pip update instead? |
COOK-4183 Set $HOME to new owner as in the pip provider when shelling ou...
I'm getting the "NoMethodError: undefined method `home' for Dir:Class" error using Vagrant. When did chef move on to ruby 1.9? does this backwards-compatability snag mean Vagrant should update their dependencies? |
@cpdean Chef omnibus has always used Ruby 1.9. The provisioner-included baseboxes have been deprecated by both Vagrant and Chef for a long time, use the vagrant-omnibus plugin. |
ah, thanks!
|
...t