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

gherkin-dependency incompatibility with vagrant #518

Closed
tomaszdurka opened this issue Jan 30, 2013 · 21 comments
Closed

gherkin-dependency incompatibility with vagrant #518

tomaszdurka opened this issue Jan 30, 2013 · 21 comments

Comments

@tomaszdurka
Copy link

veewee-0.3.7 depends on cucumber >=1.0.0
cucumber-1.2.1 depends on gherkin ~> 2.11.0
gherkin-2.11.6 depends on json >= 1.7.6

BUT

vagrant-1.0.6 depends on json ~> 1.5.1

@dragonfax
Copy link

I've got this as an issue as well. It breaks not only veewee, but vagrant completely.

little-boobop:~ dragonfax$ vagrant
/Users/dragonfax/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1637:in `raise_if_conflicts': Unable to activate gherkin-2.11.6, because json-1.5.1 conflicts with json (>= 1.7.6) (Gem::LoadError)

@jedi4ever
Copy link
Owner

@tomasdurka @dragonfax - I hear you ... you can try to use veewee standalone for now instead of through vagrant. (workaround)

I guess this gherkin - json - vagrant - fog - chef version dance comes up more often now . The right answer is probably to remove the gherkin/cucumber dependency completely and use simple script execution and check exit code .

@Xylakant
Copy link

Xylakant commented Feb 2, 2013

I think the better way would be to get rid of the vagrant dependency. Vagrant will sooner or later not be installable as gem, so relying on it in the gemfile is not helpful. I actually consider the integration of veewee as vagrant plugin as not very essential - it just doesn't matter if I call vagrant basebox build oder veewee vbox build.

@jedi4ever
Copy link
Owner

@Xylakant - Good point - we can make the vagrant gem optional -
@mitchellh what do you think about that?

@prep
Copy link

prep commented Feb 5, 2013

As a temp solution, what worked for me was:

gem install json -v 1.5.4 --no-rdoc --no-ri
gem install gherkin -v 2.11.5 --no-rdoc --no-ri
gem install veewee --no-rdoc --no-ri

@petecheslock
Copy link
Contributor

Awesome - that did the trick for me in the meantime.

@btoone
Copy link

btoone commented Feb 7, 2013

Vendoring the gems also works in the meantime

bundle install --path vendor

Be sure to use bundle exec when using a vagrant command to use the vendored version

bundle exec vagrant basebox templates

@kevinburke
Copy link

this is still breaking - is there a fix that won't break everyone's environments?

@njam
Copy link

njam commented Feb 16, 2013

Using gherkin <= "2.11.5" should work.
So for me uninstalling the "2.11.6" works: gem uninstall gherkin -v 2.11.6

@mstanislav
Copy link

I went with the following and all is well for me.

gem uninstall gherkin -v 2.11.6
gem install gherkin -v 2.11.5 --no-rdoc --no-ri

@jedi4ever
Copy link
Owner

I'm pretty close to removing the gherkin dependency . Give me another day or so.

@MattGronwald
Copy link

In addition to the workarounds above I had to install missing xslt libs to make it work

sudo apt-get install libxslt-dev libxml2-dev

@jedi4ever
Copy link
Owner

Bye bye cucumber - 86bdd78

@nickchappell
Copy link

I tried @prep's steps but didn't have any luck. I'm actually using rbenv instead of RVM, if that makes any difference.

@jedi4ever
Copy link
Owner

@nickchappell can you try the latest git version ? I've removed the gherkin dependency completely in the new version

@dexterous
Copy link

Has this been released? Am still facing this issue with 0.3.7

@nickchappell
Copy link

@jedi4ever Is there a way to get the git version of Veewee to play with Vagrant installed via gems? Or is the git version of veewee intended to be installed and run with bundler, keeping it's own copy of the Vagrant gem in the folder you clone the veewee repo to? FWIW, I read (can't remember where) that Vagrant 1.0.7 would take care of the json gem dependency, but I don't know when that will be released.

@jedi4ever
Copy link
Owner

take the git version , run rake build , this will generate a gem file. that you can probably use for vagrant install

On 06 Mar 2013, at 18:45, nickchappell notifications@github.com wrote:

@jedi4ever Is there a way to get the git version of Veewee to play with Vagrant installed via gems? Or is the git version of veewee intended to be installed and run with bundler, keeping it's own copy of the Vagrant gem in the folder you clone the veewee repo to? FWIW, I read (can't remember where) that Vagrant 1.0.7 would take care of the json gem dependency, but I don't know when that will be released.


Reply to this email directly or view it on GitHub.

@nickchappell
Copy link

@jedi4ever Cool, I'll try it out when I get home from work. Thanks!

@nickchappell
Copy link

@jedi4ever Still had issues, but they were different, with Vagrant's gem dependency specifications. Changed the ~> to >= for net-ssh and net-scp in Vagrant's gemspec file. Things seem to function normally now.

@hcguersoy
Copy link

Hi folks,

have same issues here - conflicts due to dependencies in fog with net-scp. I fall back to fog 1.8 - this solved them.

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

No branches or pull requests