Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not load the 'vagrant' driver from the load path. #164

Closed
dgorack opened this issue Apr 28, 2015 · 9 comments
Closed

Could not load the 'vagrant' driver from the load path. #164

dgorack opened this issue Apr 28, 2015 · 9 comments

Comments

@dgorack
Copy link

dgorack commented Apr 28, 2015

In my ~/chef-repo/Gemfile I've added gem 'test-kitchen' and ran bundle update.

In my ~/chef-repo/cookbooks/git I ran kitchen init. When I do kitchen list I get:

>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ClientError
>>>>>> Message: Could not load the 'vagrant' driver from the load path. Please ensure that your driver is installed as a gem or included in your Gemfile if using Bundler.
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

I have the default .kitchen.yml file.

Chef Development Kit Version: 0.4.0
Chef: 12.0.3
Vagrant 1.7.2

Gem list includes:

test-kitchen (1.4.0, 1.3.1)
kitchen-vagrant (0.17.0, 0.15.0)
@ehorne
Copy link

ehorne commented Apr 28, 2015

Rolling back to 0.16.0 addressed the issue; similar parameters as above..

@dgorack
Copy link
Author

dgorack commented Apr 29, 2015

Doing a gem install kitchen-vagrant -v '0.16.0'
Results in:

ERROR:  While executing gem ... (Errno::EACCES)
    Permission denied @ rb_sysopen - /Users/dgorack/.chefdk/gem/ruby/2.1.0/gems/kitchen-vagrant-0.16.0/.gitignore

I shouldn't have to use sudo for this should I?

@bbc88ks
Copy link

bbc88ks commented Apr 29, 2015

Rolling back to 0.16.0 helped

@dgoradia
Copy link

That's not very helpful. I'm telling you that I tried and failed and posted the error message. Maybe I'm not getting what's meant by rolling back so please tell me exactly what I have to do to roll back to 0.16.0.

@ehorne
Copy link

ehorne commented Apr 29, 2015

Oh sorry.. I'm not sure what's broken in either my environment or the released code, but 0.17.0 when it was pulled onto my system something broke the test kitchen. So I went into my gems folder in my home directory and renamed the 0.17 release to 0.17.0bad -- effectively hiding it from ruby. I'm quite sure there is a better way to remove that gem properly, though I'm not much of a ruby guy and just did what I needed to do to make the pain stop :) Hope that helps.

@501st-alpha1
Copy link

I also had this problem, and can confirm that rolling back to version 0.16 of kitchen-vagrant fixed the issue for me.

@chaim1221
Copy link

yeah same here

@s2t2
Copy link

s2t2 commented Nov 20, 2015

I got this error after using bundler to install the kitchen-ec2 driver. Even though there is no Gemfile in the directory anymore, kitchen commands are not working. I'm getting error messages about the PATH and its all very confusing.

edit: i uninstalled chefdk, re-installed chefdk, ran another kitchen init in the same cookbook directory as before, which installed the kitchen-vagrant gem again, which solved the issue for me.

@cheeseplus
Copy link
Contributor

This condition should no longer exist and it appears not all of the issues in thread are related - if using ChefDK then you will have test-kitchen already embedded in that Ruby context. If anyone has an issue please open a new one with current logs.

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

No branches or pull requests

8 participants