rr3tt / rumbda

Run ruby scripts on aws lambda.
MIT License
105 stars 18 forks source link

Could not find multi_xml-0.6.0 in any of the sources (Bundler::GemNotFound) #7

Open joarleymoraes opened 6 years ago

joarleymoraes commented 6 years ago

Getting this error on Lambda, using the example provided, no changes.

2017-12-18T17:51:47.174Z    1d5709ba-e41c-11e7-95ab-5d9ce3591034    /var/task/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find multi_xml-0.6.0 in any of the sources (Bundler::GemNotFound)
from /var/task/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/spec_set.rb:85:in `map!'
from /var/task/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/spec_set.rb:85:in `materialize'
from /var/task/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/definition.rb:132:in `specs'
from /var/task/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/definition.rb:177:in `specs_for'
from /var/task/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/definition.rb:166:in `requested_specs'
from /var/task/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/environment.rb:18:in `requested_specs'
from /var/task/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/runtime.rb:13:in `setup'
from /var/task/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler.rb:122:in `setup'
from /var/task/ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.9/lib/bundler/setup.rb:18:in `<top (required)>'
abmBispo commented 6 years ago

I'm also getting this error. Probably it's because you are building the .zip package with a different ruby version than 2.2.2. Try use Rbenv or another Ruby version manager to solve this.