Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

aws-sdk gem 3.0.1+ raises uninitialized constant Aws::VERSION #2484

Closed
ghost opened this issue Sep 12, 2017 · 9 comments
Closed

aws-sdk gem 3.0.1+ raises uninitialized constant Aws::VERSION #2484

ghost opened this issue Sep 12, 2017 · 9 comments

Comments

@ghost
Copy link

ghost commented Sep 12, 2017

I think this is happening because aws-sdk gem has removed the constant Aws::VERSION, which is used by Paperclip here and here.

@tsujigiri
Copy link

aws-sdk also got split up into different gems for the different services. I assume, only aws-sdk-s3 would be needed.

@MSeneadza
Copy link

you'll get the same error with aws-sdk-s3

@rlugge
Copy link

rlugge commented Sep 19, 2017

So is there any fix for this? A workaround? Something?

@rlugge
Copy link

rlugge commented Sep 19, 2017

OK, I found a workaround. Instead of simply specifying gem 'aws-sdk', I'm using a specific version instead: gem 'aws-sdk', '2.10.47'

Long-term this is NOT a good solution, but if you're like me and just trying to get off ground zero temporarily its 'a' solution while Paperclip gets updated.

@ghost
Copy link
Author

ghost commented Sep 21, 2017

@rlugge you can specify it as gem 'aws-sdk', '< 3.0' so you'll get the latest 2.x version :)

@RohitRox
Copy link

RohitRox commented Oct 8, 2017

A workaround to keep using ''>= 2.0''
I did this (for rails)

# config/initializers/aws.rb
Aws::VERSION =  Gem.loaded_specs["aws-sdk"].version

NuckChorris added a commit to hummingbird-me/kitsu-server that referenced this issue Dec 11, 2017
@tomrossi7
Copy link

Is there a way to not include the whole aws-sdk gem? So many dependencies!

@martinemde
Copy link

@tomrossi7 There's a PR working on this: #2481

jonkerz added a commit to jonkerz/antcat that referenced this issue Mar 28, 2019
See next commit for CHANGELOGs.

Will not work without updating aws-sdk as well, see thoughtbot/paperclip#2484
@vidurpunj
Copy link

vidurpunj commented Jul 9, 2019

gem "paperclip", "~> 6.1.0"
gem 'aws-sdk', '~> 3.0', '>= 3.0.1'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants