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:ingem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
require'
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:inconst_get' from /Library/Ruby/Gems/1.8/gems/aws-2.3.13/lib/awsbase/support.rb:49:in
constantize'
from /Library/Ruby/Gems/1.8/gems/aws-2.3.13/lib/awsbase/support.rb:48:ineach' from /Library/Ruby/Gems/1.8/gems/aws-2.3.13/lib/awsbase/support.rb:48:in
constantize'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:529:innew_constants_in' from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:525:in
collect'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:525:innew_constants_in' from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in
require'
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:ingem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in
require'
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:ingem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
require'
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:ingem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in
require'
See issue 10: http://github.com/appoxy/aws/issues#issue/10
I had this problem also, I needed to include the :require
gem 'aws-s3', :require => 'aws/s3'
hope that helps!
-Chris
Yeah, that works.