capsize icon indicating copy to clipboard operation
capsize copied to clipboard

The loading of 'EC2' failed

Open skyzyx opened this issue 16 years ago • 4 comments

I ran sudo gem install jnewland-capsize which automatically installed the amazon-ec2 gem. Immediately afterwards, I ran cap ec2:setup and received the following message:

The loading of 'EC2' failed in capsize.rb with message : no such file to load -- EC2.

I've been fighting with this for an hour or so. Any tips?

skyzyx avatar Oct 09 '09 06:10 skyzyx

+1 Same problem.

inem avatar Oct 13 '09 11:10 inem

+1 Same problem

cruggles avatar Nov 25 '09 10:11 cruggles

+1 Same problem

konklone avatar Dec 09 '09 21:12 konklone

The problem is that amazon-ec2 has changed its filenames.

I fixed this for me, as a temporary workaround, by modifying capsize.rb in my gems directory, which for me is: /usr/lib/ruby/gems/1.8/gems/jnewland-capsize-0.5.2/lib/capsize.rb

The file starts off with a list of includes. I changed the line with "EC2" in it to be "AWS", followed beneath it "AWS/EC2".

You can verify before doing this that this is likely to work by opening up an irb console, requiring rubygems, then requiring "AWS" followed by "AWS/EC2".

konklone avatar Jan 12 '10 04:01 konklone