Manageiq: bundle update error

Created on 20 Jul 2017  路  6Comments  路  Source: ManageIQ/manageiq

bundle update =>
Bundler could not find compatible versions for gem "activesupport":
  In Gemfile:
    google-api-client (~> 0.8.6) was resolved to 0.8.7, which depends on
      activesupport (< 5.0, >= 3.2)

    jbuilder (~> 2.5.0) was resolved to 2.5.0, which depends on
      activesupport (< 5.1, >= 3.0.0)

    rails (~> 5.0.2) was resolved to 5.0.4, which depends on
      activesupport (= 5.0.4)

    rails (~> 5.0.2) was resolved to 5.0.4, which depends on
      activesupport (= 5.0.4)

    rails (~> 5.0.2) was resolved to 5.0.4, which depends on
      activesupport (= 5.0.4)

    rails (~> 5.0.2) was resolved to 5.0.4, which depends on
      activesupport (= 5.0.4)

    rails (~> 5.0.2) was resolved to 5.0.4, which depends on
      activesupport (= 5.0.4)

    rails (~> 5.0.2) was resolved to 5.0.4, which depends on
      activesupport (= 5.0.4)

    rspec-rails (~> 3.6.0) was resolved to 3.6.0, which depends on
      activesupport (>= 3.0)
Bundler could not find compatible versions for gem "faraday":
  In Gemfile:
    ansible_tower_client (~> 0.12.2) was resolved to 0.12.2, which depends on
      faraday

    google-api-client (~> 0.8.6) was resolved to 0.8.6, which depends on
      faraday (~> 0.9)

    google-api-client (~> 0.8.6) was resolved to 0.8.6, which depends on
      faraday (~> 0.9)

    google-api-client (~> 0.8.6) was resolved to 0.8.6, which depends on
      googleauth (~> 0.3) was resolved to 0.5.2, which depends on
        faraday (~> 0.12)

    manageiq-api-client (~> 0.1.0) was resolved to 0.1.0, which depends on
      faraday (~> 0.9.2)

Most helpful comment

@carbonin I am still getting error on master without this change(after bundle update)

Using foreman_api_client 0.1.0 from https://github.com/ManageIQ/foreman_api_client.git (at master@1cdf102)
Using manageiq-providers-azure 0.1.0 from https://github.com/ManageIQ/manageiq-providers-azure (at master@807b790)
Using manageiq-providers-hawkular 0.1.0 from https://github.com/ManageIQ/manageiq-providers-hawkular (at master@b65c1a1)
Using manageiq-providers-kubernetes 0.1.0 from https://github.com/ManageIQ/manageiq-providers-kubernetes (at master@5ad91c9)
diff --git a/Gemfile b/Gemfile
index 393756a2e2..3072dcaa3f 100644
--- a/Gemfile
+++ b/Gemfile
@@ -93,6 +93,7 @@ group :google, :manageiq_default do
   manageiq_plugin "manageiq-providers-google"
   gem "fog-google",                     ">=0.5.2",       :require => false
   gem "google-api-client",              "~>0.8.6",       :require => false
+  gem "googleauth",                     "=0.5.1",        :require => false
 end

 group :hawkular, :manageiq_default do

are we going to add it to master too?

All 6 comments

temporal workaround, comment out google-api-client gem

diff --git a/Gemfile b/Gemfile
index c66172f751..4eeff94816 100644
--- a/Gemfile
+++ b/Gemfile
@@ -92,7 +92,7 @@ end
 group :google, :manageiq_default do
   manageiq_plugin "manageiq-providers-google"
   gem "fog-google",                     ">=0.5.2",       :require => false
-  gem "google-api-client",              "~>0.8.6",       :require => false
+  #gem "google-api-client",              "~>0.8.6",       :require => false
 end

@carbonin I am still getting error on master without this change(after bundle update)

Using foreman_api_client 0.1.0 from https://github.com/ManageIQ/foreman_api_client.git (at master@1cdf102)
Using manageiq-providers-azure 0.1.0 from https://github.com/ManageIQ/manageiq-providers-azure (at master@807b790)
Using manageiq-providers-hawkular 0.1.0 from https://github.com/ManageIQ/manageiq-providers-hawkular (at master@b65c1a1)
Using manageiq-providers-kubernetes 0.1.0 from https://github.com/ManageIQ/manageiq-providers-kubernetes (at master@5ad91c9)
diff --git a/Gemfile b/Gemfile
index 393756a2e2..3072dcaa3f 100644
--- a/Gemfile
+++ b/Gemfile
@@ -93,6 +93,7 @@ group :google, :manageiq_default do
   manageiq_plugin "manageiq-providers-google"
   gem "fog-google",                     ">=0.5.2",       :require => false
   gem "google-api-client",              "~>0.8.6",       :require => false
+  gem "googleauth",                     "=0.5.1",        :require => false
 end

 group :hawkular, :manageiq_default do

are we going to add it to master too?

Still broken for me as well, with clean (removed) Gemfile.lock and bundler 1.14.3...

My workaround is..

--- a/Gemfile
+++ b/Gemfile
@@ -92,7 +92,8 @@ end
 group :google, :manageiq_default do
   manageiq_plugin "manageiq-providers-google"
   gem "fog-google",                     ">=0.5.2",       :require => false
-  gem "google-api-client",              "~>0.8.6",       :require => false
+  gem "google-api-client",              "= 0.8.6",       :require => false
+  gem "googleauth",                     "= 0.5.1",       :require => false
 end

 group :hawkular, :manageiq_default do

I'm sorry, but this must be your environment.

I just did a fresh clone of the repo and could bundle without issue:

10:54:25:/tmp$ git clone [email protected]:ManageIQ/manageiq.git
Cloning into 'manageiq'...
remote: Counting objects: 344980, done.
remote: Compressing objects: 100% (67/67), done.
remote: Total 344980 (delta 42), reused 35 (delta 19), pack-reused 344893
Receiving objects: 100% (344980/344980), 200.11 MiB | 5.24 MiB/s, done.
Resolving deltas: 100% (251307/251307), done.
Checking connectivity... done.
10:55:04:/tmp$ cd manageiq/
10:55:07:/tmp/manageiq (master)$ ls
app      bin        certs         config     CONTRIBUTING.md  docker-assets  Gemfile  LICENSE.txt  log                    product  Rakefile   spec  tools
AUTHORS  bundler.d  CHANGELOG.md  config.ru  db               Dockerfile     lib      locale       mime-types-redirector  public   README.md  tmp   VERSION
10:55:08:/tmp/manageiq (master)$ bundle
Fetching https://github.com/ManageIQ/manageiq-gems-pending.git
Fetching https://github.com/ManageIQ/handsoap.git
Fetching https://github.com/ManageIQ/manageiq-providers-ansible_tower
Fetching https://github.com/ManageIQ/manageiq-schema
Fetching https://github.com/ManageIQ/amazon_ssa_support.git
Fetching https://github.com/ManageIQ/ruport.git
Fetching https://github.com/ManageIQ/manageiq-providers-amazon
Fetching https://github.com/ManageIQ/manageiq-providers-azure
Fetching https://github.com/ManageIQ/manageiq-providers-foreman
Fetching https://github.com/ManageIQ/foreman_api_client.git
Fetching https://github.com/ManageIQ/manageiq-providers-google
Fetching https://github.com/ManageIQ/manageiq-providers-hawkular
Fetching https://github.com/ManageIQ/manageiq-providers-kubernetes
Fetching https://github.com/ManageIQ/manageiq-providers-lenovo
Fetching https://github.com/ManageIQ/manageiq-providers-nuage
Fetching https://github.com/ManageIQ/manageiq-providers-openshift
Fetching https://github.com/ManageIQ/manageiq-providers-openstack
Fetching https://github.com/ManageIQ/manageiq-providers-ovirt
Fetching https://github.com/ManageIQ/manageiq-providers-scvmm
Fetching https://github.com/ManageIQ/manageiq-providers-vmware
Fetching https://github.com/ManageIQ/manageiq-automation_engine
Fetching https://github.com/ManageIQ/manageiq-content
Fetching https://github.com/ManageIQ/manageiq-ui-classic
Fetching https://github.com/ManageIQ/font-fabulous.git
Fetching https://github.com/ManageIQ/jquery-rjs.git
Fetching gem metadata from https://rubygems.org/......
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies....
Using rake 11.3.0
... much more output here ...
Using manageiq-ui-classic 0.1.0 from https://github.com/ManageIQ/manageiq-ui-classic (at master@b7cfb27)
Bundle complete! 94 Gemfile dependencies, 266 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
10:55:21:/tmp/manageiq (master)$ echo $?
0

Additionally travis is resolving dependencies on master, which is as clean of an environment as we have.
For what it's worth I'm on bundler 1.15.3

@carbonin I updated the bundler to 1.15.3 and it works, thanks!!!

Same here, 1.15.3 works :).

Also, wow, it now resolves ui-classic to an absolute path, not relative in gemfile.lock :+1: :)

Was this page helpful?
0 / 5 - 0 ratings