mitchellh / vagrant-aws

Use Vagrant to manage your EC2 and VPC instances.
MIT License
2.61k stars 574 forks source link

Install error json `check_version_conflict' #524

Open maocorte opened 6 years ago

maocorte commented 6 years ago

Hello, i have the following error when i try to install vagrant-aws plugin

Installing the 'vagrant-aws' plugin. This can take a few minutes...
/opt/vagrant/embedded/lib/ruby/2.2.0/rubygems/specification.rb:2100:in `check_version_conflict': can't activate json-2.1.0, already activated json-1.8.1 (Gem::LoadError)
    from /opt/vagrant/embedded/lib/ruby/2.2.0/rubygems/specification.rb:1276:in `activate'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/bundler.rb:357:in `block in activate_solution'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/bundler.rb:354:in `each'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/bundler.rb:354:in `activate_solution'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/bundler.rb:279:in `internal_install'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/bundler.rb:104:in `install'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/plugin/manager.rb:62:in `block in install_plugin'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/plugin/manager.rb:72:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/plugin/manager.rb:72:in `install_plugin'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.3/plugins/commands/plugin/action/install_gem.rb:29:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/action/warden.rb:34:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/action/builder.rb:116:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/action/runner.rb:66:in `block in run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/util/busy.rb:19:in `busy'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/action/runner.rb:66:in `run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.3/plugins/commands/plugin/command/base.rb:14:in `action'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.3/plugins/commands/plugin/command/install.rb:32:in `block in execute'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.3/plugins/commands/plugin/command/install.rb:31:in `each'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.3/plugins/commands/plugin/command/install.rb:31:in `execute'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.3/plugins/commands/plugin/command/root.rb:66:in `execute'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/cli.rb:42:in `execute'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.3/lib/vagrant/environment.rb:308:in `cli'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.9.3/bin/vagrant:127:in `<main>'
Mauros-MacBook-Pro:ec2 mcortellazzi$ vagrant -v
Vagrant 1.9.3
Mauros-MacBook-Pro:ec2 mcortellazzi$ ruby -v
ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin16]
Mauros-MacBook-Pro:ec2 mcortellazzi$ gem -v
2.6.13

My mac os is Sierra 10.12.6, vagrant version is 1.9.3, ruby version is 2.4.2p198 and gem version is 2.6.13. Am I missing something? Thank you for your help.

joedborg commented 6 years ago

I get the same issue on High Sierra 10.13, Vagrant is at 1.9.1, Ruby is at 2.3.3p222 and Gem is at 2.5.2.

joedborg commented 6 years ago

@maocorte I think updating to Vagrant 2.0 fixes this

RylanSchaeffer commented 5 years ago

I got the same error on Vagrant 1.9.4, which I'm required to use by my company. Any workaround?