appoxy/aws

NameError: uninitialized constant Aws

Closed this issue · 5 comments

I'm running on a Mac, Snow Leopard and I get the above error.

Here's the trace from irb:

require 'aws'
NameError: uninitialized constant Aws
from ./aws.rb:7
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:inrequire'
from (irb):1

Any ideas why this is?

This is using aws-2.3.13

Sorry, the above was the wrong trace, here's the correct one:

require 'aws'
ArgumentError: wrong number of arguments (2 for 1)
from /Library/Ruby/Gems/1.8/gems/aws-2.3.13/lib/awsbase/support.rb:49:in const_get' from /Library/Ruby/Gems/1.8/gems/aws-2.3.13/lib/awsbase/support.rb:49:inconstantize'
from /Library/Ruby/Gems/1.8/gems/aws-2.3.13/lib/awsbase/support.rb:48:in each' from /Library/Ruby/Gems/1.8/gems/aws-2.3.13/lib/awsbase/support.rb:48:inconstantize'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:529:in new_constants_in' from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:525:incollect'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:525:in new_constants_in' from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:inrequire'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support.rb:58
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:inrequire'
from /Library/Ruby/Gems/1.8/gems/aws-2.3.13/lib/awsbase/right_awsbase.rb:31
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:inrequire'
from /Library/Ruby/Gems/1.8/gems/aws-2.3.13/lib/aws.rb:18
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:inrequire'

I had this problem also, I needed to include the :require

gem 'aws-s3', :require => 'aws/s3'

hope that helps!
-Chris

Yeah, that works.