Monterey OSX. `const_defined?': uninitialized constant Fog::Rackspace::CDN (NameError) - ruby-on-rails

I have recently upgraded my OS. from Big sur to Montery.
When I was running my ruby application I am getting an error with careerwave
.rvm/gems/ruby-2.3.1/gems/fog-core-2.3.0/lib/fog/core/provider.rb:48:in `const_defined?': uninitialized constant Fog::Rackspace::CDN (NameError)
Can you please help in this regard, there was no change in the Gemfile or Gemfile.lock.
/Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/fog-core-2.3.0/lib/fog/core/provider.rb:48:in `const_defined?': uninitialized constant Fog::Rackspace::CDN (NameError)
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/fog-core-2.3.0/lib/fog/core/provider.rb:48:in `service_klass'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/fog-core-2.3.0/lib/fog/core/provider.rb:37:in `service'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/fog-rackspace-0.1.6/lib/fog/rackspace.rb:53:in `<module:Rackspace>'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/fog-rackspace-0.1.6/lib/fog/rackspace.rb:28:in `<module:Fog>'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/fog-rackspace-0.1.6/lib/fog/rackspace.rb:10:in `<top (required)>'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/fog-2.2.0/lib/fog.rb:42:in `<top (required)>'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/bundler/gems/carrierwave-ff89d6e1c055/lib/carrierwave/storage.rb:5:in `<top (required)>'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/bundler/gems/carrierwave-ff89d6e1c055/lib/carrierwave.rb:78:in `<top (required)>'
from /Users/rajesh.banoth/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/bundler/runtime.rb:81:in `require'
from /Users/rajesh.banoth/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/bundler/runtime.rb:81:in `block (2 levels) in require'
from /Users/rajesh.banoth/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/bundler/runtime.rb:76:in `each'
from /Users/rajesh.banoth/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/bundler/runtime.rb:76:in `block in require'
from /Users/rajesh.banoth/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/bundler/runtime.rb:65:in `each'
from /Users/rajesh.banoth/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/bundler/runtime.rb:65:in `require'
from /Users/rajesh.banoth/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/bundler.rb:114:in `require'
from /Users/rajesh.banoth/code/pwm/config/application.rb:7:in `<top (required)>'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/railties-4.2.11.3/lib/rails/commands/commands_tasks.rb:78:in `require'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/railties-4.2.11.3/lib/rails/commands/commands_tasks.rb:78:in `block in server'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/railties-4.2.11.3/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/railties-4.2.11.3/lib/rails/commands/commands_tasks.rb:75:in `server'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/railties-4.2.11.3/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /Users/rajesh.banoth/.rvm/gems/ruby-2.3.1/gems/railties-4.2.11.3/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
Thanks in advance.

Looks like you need to include https://github.com/fog/fog-rackspace gem also. fog-core gem doesnt have code for Rackspace.

Related

Ruby: incompatible library version

I am learning Ruby on Rails, so I've created my first project and I got this error:
/Users/Anton/.rvm/gems/ruby-2.3.0/gems/debug_inspector-0.0.2/lib/debug_inspector.rb:6:in `require': incompatible library version - /Users/Anton/.rvm/gems/ruby-2.3.0/gems/debug_inspector-0.0.2/lib/debug_inspector.bundle (fatal)
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/debug_inspector-0.0.2/lib/debug_inspector.rb:6:in `<top (required)>'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/binding_of_caller-0.7.2/lib/binding_of_caller/mri2.rb:1:in `require'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/binding_of_caller-0.7.2/lib/binding_of_caller/mri2.rb:1:in `<top (required)>'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/binding_of_caller-0.7.2/lib/binding_of_caller.rb:9:in `require'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/binding_of_caller-0.7.2/lib/binding_of_caller.rb:9:in `<top (required)>'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/web-console-2.3.0/lib/web_console.rb:1:in `require'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/web-console-2.3.0/lib/web_console.rb:1:in `<top (required)>'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/web-console-2.3.0/lib/web-console.rb:1:in `require'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/web-console-2.3.0/lib/web-console.rb:1:in `<top (required)>'
from /Users/Anton/.rvm/gems/ruby-2.3.0#global/gems/bundler-1.12.5/lib/bundler/runtime.rb:86:in `require'
from /Users/Anton/.rvm/gems/ruby-2.3.0#global/gems/bundler-1.12.5/lib/bundler/runtime.rb:86:in `block (2 levels) in require'
from /Users/Anton/.rvm/gems/ruby-2.3.0#global/gems/bundler-1.12.5/lib/bundler/runtime.rb:81:in `each'
from /Users/Anton/.rvm/gems/ruby-2.3.0#global/gems/bundler-1.12.5/lib/bundler/runtime.rb:81:in `block in require'
from /Users/Anton/.rvm/gems/ruby-2.3.0#global/gems/bundler-1.12.5/lib/bundler/runtime.rb:70:in `each'
from /Users/Anton/.rvm/gems/ruby-2.3.0#global/gems/bundler-1.12.5/lib/bundler/runtime.rb:70:in `require'
from /Users/Anton/.rvm/gems/ruby-2.3.0#global/gems/bundler-1.12.5/lib/bundler.rb:102:in `require'
from /Users/Anton/Work/2-Work/s-art-main/config/application.rb:7:in `<top (required)>'
from /Users/Anton/.rvm/gems/ruby-2.3.0#global/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:78:in `require'
from /Users/Anton/.rvm/gems/ruby-2.3.0#global/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:78:in `block in server'
from /Users/Anton/.rvm/gems/ruby-2.3.0#global/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /Users/Anton/.rvm/gems/ruby-2.3.0#global/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `server'
from /Users/Anton/.rvm/gems/ruby-2.3.0#global/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /Users/Anton/.rvm/gems/ruby-2.3.0#global/gems/railties-4.2.6/lib/rails/commands.rb:17:in `<top (required)>'
from /Users/Anton/Work/2-Work/s-art-main/bin/rails:9:in `require'
from /Users/Anton/Work/2-Work/s-art-main/bin/rails:9:in `<top (required)>'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/spring-1.7.1/lib/spring/client/rails.rb:28:in `load'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/spring-1.7.1/lib/spring/client/rails.rb:28:in `call'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/spring-1.7.1/lib/spring/client/command.rb:7:in `call'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/spring-1.7.1/lib/spring/client.rb:30:in `run'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/spring-1.7.1/bin/spring:49:in `<top (required)>'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/spring-1.7.1/lib/spring/binstub.rb:11:in `load'
from /Users/Anton/.rvm/gems/ruby-2.3.0/gems/spring-1.7.1/lib/spring/binstub.rb:11:in `<top (required)>'
from /Users/Anton/Work/2-Work/s-art-main/bin/spring:13:in `require'
from /Users/Anton/Work/2-Work/s-art-main/bin/spring:13:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
Can you please help me? I've googled tons of similar errors and still haven't found the right answer.
Rails 4.2.6
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]
Thank you!
If you see an error relating to .bundle it's generally the case that your gem was compiled against a version of some shared library that's been updated or removed.
The normal fix for this is to uninstall and reinstall the offending gem. That will link it to the current version you have.

uninitialized constant Valium::ValueOf (NameError)

I got error when i start rails project as the following error. I feel it may be because of incompatible gem version but i am not sure if it is because of Bundler gem or Valium gem. Thank in advance for the reply.
root#ip-10-152-178-228:/var/www/resource_map_sea# bundle exec rails s
/usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/valium-0.5.0/lib/valium.rb:113:in `<top (required)>': uninitialized constant Valium::ValueOf (NameError)
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in `require'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in `each'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in `block in require'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in `each'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in `require'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/bundler-1.5.3/lib/bundler.rb:131:in `require'
from /var/www/resource_map_sea/config/application.rb:13:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/railties-4.1.13/lib/rails/commands/commands_tasks.rb:79:in `require'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/railties-4.1.13/lib/rails/commands/commands_tasks.rb:79:in `block in server'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/railties-4.1.13/lib/rails/commands/commands_tasks.rb:76:in `tap'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/railties-4.1.13/lib/rails/commands/commands_tasks.rb:76:in `server'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/railties-4.1.13/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /usr/local/rvm/gems/ruby-2.1.2#resource_map_v4/gems/railties-4.1.13/lib/rails/commands.rb:17:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

Rails server error after updating Ruby (Name Error)

I updated Ruby to 2.2.2 from 2.0.0 because I think it may have been causing issues with Heroku, but now when I try and start the rails server I'm getting a name error, and because I'm new to RoR I have no idea what's causing it.
Here is my log:
C:\row\dev\my_app>rails s
C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/actionview-4.2.1/lib/action_view/helpers.
rb:40:in `<module:Helpers>': uninitialized constant ActionView::Helpers::ActiveM
odelHelper (NameError)
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/actionview-4.2.1/lib/action_
view/helpers.rb:4:in `<module:ActionView>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/actionview-4.2.1/lib/action_
view/helpers.rb:3:in `<top (required)>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/actionview-4.2.1/lib/action_
view/base.rb:5:in `<top (required)>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/actionview-4.2.1/lib/action_
view/view_paths.rb:1:in `<top (required)>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/abstrac
t_controller/rendering.rb:4:in `<top (required)>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_
controller/base.rb:204:in `<class:Base>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_
controller/base.rb:164:in `<module:ActionController>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_
controller/base.rb:5:in `<top (required)>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/responders-2.1.0/lib/respond
ers/controller_method.rb:37:in `<top (required)>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/responders-2.1.0/lib/respond
ers.rb:15:in `<module:Responders>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/responders-2.1.0/lib/respond
ers.rb:9:in `<top (required)>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/devise-3.5.1/lib/devise.rb:7
:in `<top (required)>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/r
untime.rb:76:in `require'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/r
untime.rb:76:in `block (2 levels) in require'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/r
untime.rb:72:in `each'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/r
untime.rb:72:in `block in require'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/r
untime.rb:61:in `each'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/r
untime.rb:61:in `require'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler.r
b:134:in `require'
from C:/row/dev/david_youtube/config/application.rb:7:in `<top (required
)>'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
mands/commands_tasks.rb:78:in `require'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
mands/commands_tasks.rb:78:in `block in server'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
mands/commands_tasks.rb:75:in `tap'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
mands/commands_tasks.rb:75:in `server'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
mands/commands_tasks.rb:39:in `run_command!'
from C:/row/Ruby22/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
mands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
The issue seemed to be that I had two versions of Ruby installed. After removing all versions of Ruby, and doing a clean install of 2.2.2 I was able to start the Rails server.

Switched my shell to fish and now rails wont load a server. How can I get it running?

Ok, well I just changed my shell to use fish instead of oh-my-zsh. I removed oh-my-zsh and everything got a bit messed up. So I installed rails and bundle installed my application, but i'm getting this error when I try to load the server.
/Library/Ruby/Gems/2.0.0/gems/actionview-4.2.0/lib/action_view/helpers.rb:40:in `<module:Helpers>': uninitialized constant ActionView::Helpers::ActiveModelHelper (NameError)
from /Library/Ruby/Gems/2.0.0/gems/actionview-4.2.0/lib/action_view/helpers.rb:4:in `<module:ActionView>'
from /Library/Ruby/Gems/2.0.0/gems/actionview-4.2.0/lib/action_view/helpers.rb:3:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/actionview-4.2.0/lib/action_view/base.rb:5:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/actionview-4.2.0/lib/action_view/view_paths.rb:1:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/actionpack-4.2.0/lib/abstract_controller/rendering.rb:4:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/actionpack-4.2.0/lib/action_controller/base.rb:204:in `<class:Base>'
from /Library/Ruby/Gems/2.0.0/gems/actionpack-4.2.0/lib/action_controller/base.rb:164:in `<module:ActionController>'
from /Library/Ruby/Gems/2.0.0/gems/actionpack-4.2.0/lib/action_controller/base.rb:5:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/responders-2.1.0/lib/responders/controller_method.rb:37:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/responders-2.1.0/lib/responders.rb:15:in `require'
from /Library/Ruby/Gems/2.0.0/gems/responders-2.1.0/lib/responders.rb:15:in `<module:Responders>'
from /Library/Ruby/Gems/2.0.0/gems/responders-2.1.0/lib/responders.rb:9:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/bundler-1.9.9/lib/bundler/runtime.rb:76:in `require'
from /Library/Ruby/Gems/2.0.0/gems/bundler-1.9.9/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /Library/Ruby/Gems/2.0.0/gems/bundler-1.9.9/lib/bundler/runtime.rb:72:in `each'
from /Library/Ruby/Gems/2.0.0/gems/bundler-1.9.9/lib/bundler/runtime.rb:72:in `block in require'
from /Library/Ruby/Gems/2.0.0/gems/bundler-1.9.9/lib/bundler/runtime.rb:61:in `each'
from /Library/Ruby/Gems/2.0.0/gems/bundler-1.9.9/lib/bundler/runtime.rb:61:in `require'
from /Library/Ruby/Gems/2.0.0/gems/bundler-1.9.9/lib/bundler.rb:134:in `require'
from /Users/jay/current_projects/s/config/application.rb:9:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `require'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:78:in `block in server'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `server'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.0/lib/rails/commands.rb:17:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
It's pointing /Library/Ruby/Gems/2.0.0/gems/ here, but I use rbenv. I'm not sure if it should be looking inside of rbenv.
D-side gave this link above in a comment.
https://github.com/sstephenson/rbenv/issues/195
adding these shims to my config.fish fixed the problem:
set PATH $HOME/.rbenv/bin $PATH
set PATH $HOME/.rbenv/shims $PATH
rbenv rehash >/dev/null ^&1

Getting error while running rails server

I am migrating my web app to Microsoft Azure. When I do rails s, I am getting this log:
/home/mnpatel0611/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.0.0/lib/active_support/values/time_zone.rb:282: warning: circular argument reference - now
/home/mnpatel0611/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/puppet-3.7.3/lib/puppet/defaults.rb:465: warning: duplicated key at line 466 ignored: :queue_type
/home/mnpatel0611/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/syck_node_monkeypatch.rb:42:in `<top (required)>': uninitialized constant Syck (NameError)
from /home/mnpatel0611/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml.rb:197:in `<module:YAML>'
from /home/mnpatel0611/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml.rb:132:in `<top (required)>'
from /home/mnpatel0611/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/puppet-3.7.3/lib/puppet/vendor/require_vendored.rb:4:in `<top (required)>'
from /home/mnpatel0611/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/puppet-3.7.3/lib/puppet/vendor.rb:40:in `require_libs'
from /home/mnpatel0611/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/puppet-3.7.3/lib/puppet/vendor.rb:53:in `load_vendored'
from /home/mnpatel0611/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/puppet-3.7.3/lib/puppet.rb:172:in `<module:Puppet>'
from /home/mnpatel0611/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/puppet-3.7.3/lib/puppet.rb:29:in `<top (required)>'
from /home/mnpatel0611/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.10.0/lib/bundler/runtime.rb:76:in `require'
from /home/mnpatel0611/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.10.0/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /home/mnpatel0611/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.10.0/lib/bundler/runtime.rb:72:in `each'
from /home/mnpatel0611/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.10.0/lib/bundler/runtime.rb:72:in `block in require'
from /home/mnpatel0611/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.10.0/lib/bundler/runtime.rb:61:in `each'
from /home/mnpatel0611/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.10.0/lib/bundler/runtime.rb:61:in `require'
from /home/mnpatel0611/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.10.0/lib/bundler.rb:133:in `require'
from /home/mnpatel0611/mapial-stage/mapial/config/application.rb:7:in `<top (required)>'
from /home/mnpatel0611/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.0.0/lib/rails/commands.rb:76:in `require'
from /home/mnpatel0611/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.0.0/lib/rails/commands.rb:76:in `block in <top (required)>'
from /home/mnpatel0611/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
from /home/mnpatel0611/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
Anyone face this error?
Puppatlabs describe that Puppet 3.7.3 is not supported on Ruby 2.2 but now thay change status to resolved. So you should go more into this and find rid of this problem. You can show this issue from puppatlabs ticket Puppet 3.7.3 is not supported on Ruby 2.2

Resources