Have to create static pages using the same layout of rest of the spree commerce site. Spree_static_content is the gem I tried using. However, getting following error on bundle install.
Bundler could not find compatible versions for gem "spree_core":
In snapshot (Gemfile.lock):
spree_core (= 3.3.1)
In Gemfile:
spree (~> 3.3.0) was resolved to 3.3.1, which depends on
spree_core (= 3.3.1)
spree (~> 3.3.0) was resolved to 3.3.1, which depends on
spree_core (= 3.3.1)
spree (~> 3.3.0) was resolved to 3.3.1, which depends on
spree_core (= 3.3.1)
spree (~> 3.3.0) was resolved to 3.3.1, which depends on
spree_core (= 3.3.1)
spree (~> 3.3.0) was resolved to 3.3.1, which depends on
spree_core (= 3.3.1)
spree_gateway (~> 3.3) was resolved to 3.3.0, which depends on
spree_core (< 4.0, >= 3.1.0)
spree_gateway (~> 3.3) was resolved to 3.3.0, which depends on
spree_core (< 4.0, >= 3.1.0)
spree_static_content was resolved to 3.0.1, which depends on
spree_core (~> 3.0.0)
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Found the solution this issue is because of dependent gem globalize with Rails 5. Add the following to your Gemfile:
gem 'globalize', git: 'https://github.com/globalize/globalize'
gem 'activemodel-serializers-xml'
Next, bundle install and you will net the above-mentioned error in questions.
Related
I'm upgrading rails from 4.2 to 5.0, and I'm getting some mean dependency issues.
When I run bundle update i get the following output.
The thing is that when i look through the messages, it looks like the gems should be able to install just fine when looking at the version requirements.
I also tried to delete my Gemfile.lock, that didn't help.
Any suggestions would be appreciated.
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
activeadmin (~> 1.1.0) was resolved to 1.1.0, which depends on
inherited_resources (~> 1.7) was resolved to 1.10.0, which depends on
actionpack (< 6.0, >= 5.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
actionpack (= 5.0.0)
ransack (= 1.8.10) was resolved to 1.8.10, which depends on
actionpack (< 5.2, >= 3.0)
route_translator (= 5.0.0) was resolved to 5.0.0, which depends on
actionpack (< 5.1, >= 5.0.0)
simple_form (= 3.5.0) was resolved to 3.5.0, which depends on
actionpack (< 5.2, > 4)
slim-rails (~> 3.2.0) was resolved to 3.2.0, which depends on
actionpack (>= 3.1)
Bundler could not find compatible versions for gem "activeadmin":
In Gemfile:
activeadmin (~> 1.1.0)
activeadmin_quill_editor (= 0.2.0) was resolved to 0.2.0, which depends on
activeadmin (>= 1.0)
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
openid_connect (~> 1.2.0) was resolved to 1.2.0, which depends on
activemodel
paperclip (= 5.2.1) was resolved to 5.2.1, which depends on
activemodel (>= 4.2.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
activemodel (= 5.0.0)
simple_form (= 3.5.0) was resolved to 3.5.0, which depends on
activemodel (< 5.2, > 4)
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
friendly_id (= 5.0.5) was resolved to 5.0.5, which depends on
activerecord (>= 4.0.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
activerecord (= 5.0.0)
ransack (= 1.8.10) was resolved to 1.8.10, which depends on
activerecord (< 5.2, >= 3.0)
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
paperclip (= 5.2.1) was resolved to 5.2.1, which depends on
activesupport (>= 4.2.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
activesupport (= 5.0.0)
ransack (= 1.8.10) was resolved to 1.8.10, which depends on
activesupport (< 5.2, >= 3.0)
route_translator (= 5.0.0) was resolved to 5.0.0, which depends on
activesupport (< 5.1, >= 5.0.0)
Bundler could not find compatible versions for gem "autoprefixer-rails":
In Gemfile:
autoprefixer-rails (~> 9.7.4)
bootstrap (~> 4.4.1) was resolved to 4.4.1, which depends on
autoprefixer-rails (>= 9.1.0)
Bundler could not find compatible versions for gem "devise":
In Gemfile:
devise (= 4.0.0)
devise-token_authenticatable (~> 0.5.3) was resolved to 0.5.3, which depends on
devise (< 4.4.0, >= 4.0.0)
Bundler could not find compatible versions for gem "execjs":
In Gemfile:
execjs (= 1.4.0)
autoprefixer-rails (~> 9.7.4) was resolved to 9.7.6, which depends on
execjs
uglifier (~> 3.0) was resolved to 3.2.0, which depends on
execjs (< 3, >= 0.3.0)
Bundler could not find compatible versions for gem "inherited_resources":
In Gemfile:
inherited_resources
activeadmin (~> 1.1.0) was resolved to 1.1.0, which depends on
inherited_resources (~> 1.7)
Bundler could not find compatible versions for gem "jquery-rails":
In Gemfile:
jquery-rails (= 4.0.0)
activeadmin (~> 1.1.0) was resolved to 1.1.0, which depends on
jquery-rails
Bundler could not find compatible versions for gem "mimemagic":
In Gemfile:
mimemagic
paperclip (= 5.2.1) was resolved to 5.2.1, which depends on
mimemagic (~> 0.3.0)
Bundler could not find compatible versions for gem "nokogiri":
In Gemfile:
nokogiri (= 1.8.2)
paperclip (= 5.2.1) was resolved to 5.2.1, which depends on
mimemagic (~> 0.3.0) was resolved to 0.3.10, which depends on
nokogiri (~> 1)
savon (~> 2.12.1) was resolved to 2.12.1, which depends on
nokogiri (>= 1.8.1)
Bundler could not find compatible versions for gem "paperclip":
In Gemfile:
paperclip (= 5.2.1)
paperclip-compression (~> 1.1) was resolved to 1.1.1, which depends on
paperclip (>= 5.2.1)
Bundler could not find compatible versions for gem "railties":
In Gemfile:
coffee-rails (= 5.0.0) was resolved to 5.0.0, which depends on
railties (>= 5.2.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
railties (= 5.0.0)
Bundler could not find compatible versions for gem "rake":
In Gemfile:
rake (= 10.4.2)
paperclip (= 5.2.1) was resolved to 5.2.1, which depends on
mimemagic (~> 0.3.0) was resolved to 0.3.10, which depends on
rake
rails (= 5.0.0) was resolved to 5.0.0, which depends on
railties (= 5.0.0) was resolved to 5.0.0, which depends on
rake (>= 0.8.7)
Bundler could not find compatible versions for gem "responders":
In Gemfile:
responders (~> 2.3.0)
devise (= 4.0.0) was resolved to 4.0.0, which depends on
responders
activeadmin (~> 1.1.0) was resolved to 1.1.0, which depends on
inherited_resources (~> 1.7) was resolved to 1.10.0, which depends on
responders (~> 2.0)
Most likely you have some strong constraints on some particular gems in your Gemfile that's it's blocking bundle from updating a dependency.
I am working on Ruby on Rails application. I am trying to upgrade the rails version from 4.2 to 5.0
I have changed the rails dependency in engine's gemspec file.
On running bundle update in engine it is showing the following error -
Bundler could not find compatible versions for gem "actionmailer":
In Gemfile:
engine was resolved to 0.0.1, which depends on
rails (~> 5.0) was resolved to 5.2.4.4, which depends on
actionmailer (= 5.2.4.4)
simple_token_authentication was resolved to 1.17.0, which depends on
actionmailer (>= 3.2.6, < 7)
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
engine was resolved to 0.0.1, which depends on
rails (~> 5.0) was resolved to 5.2.4.4, which depends on
actionpack (= 5.2.4.4)
rspec-rails was resolved to 4.0.2, which depends on
actionpack (>= 4.2)
simple_token_authentication was resolved to 1.17.0, which depends on
actionpack (>= 3.2.6, < 7)
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
paranoia (~> 2.2) was resolved to 2.4.3, which depends on
activerecord (>= 4.0, < 6.2)
engine was resolved to 0.0.1, which depends on
rails (~> 5.0) was resolved to 5.2.4.4, which depends on
activerecord (= 5.2.4.4)
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
factory_girl_rails was resolved to 4.9.0, which depends on
factory_girl (~> 4.9.0) was resolved to 4.9.0, which depends on
activesupport (>= 3.0.0)
engine was resolved to 0.0.1, which depends on
rails (~> 5.0) was resolved to 5.2.4.4, which depends on
activesupport (= 5.2.4.4)
rspec-rails was resolved to 4.0.2, which depends on
activesupport (>= 4.2)
Bundler could not find compatible versions for gem "rails":
In Gemfile:
engine was resolved to 0.0.1, which depends on
activeadmin (= 1.0.0.pre2) was resolved to 1.0.0.pre2, which depends on
rails (>= 3.2, < 5.0)
engine was resolved to 0.0.1, which depends on
rails (~> 5.0)
Bundler could not find compatible versions for gem "railties":
In Gemfile:
factory_girl_rails was resolved to 4.9.0, which depends on
railties (>= 3.0.0)
engine was resolved to 0.0.1, which depends on
rails (~> 5.0) was resolved to 5.2.4.4, which depends on
railties (= 5.2.4.4)
rspec-rails was resolved to 4.0.2, which depends on
railties (>= 4.2)
I tried to delete gemfile.lock of engine and run command bundle install then it is showing the following error -
Bundler could not find compatible versions for gem "rails":
In Gemfile:
engine was resolved to 0.0.1, which depends on
activeadmin (= 1.0.0.pre2) was resolved to 1.0.0.pre2, which depends on
rails (>= 3.2, < 5.0)
engine1 was resolved to 0.0.1, which depends on
engine2 was resolved to 0.0.1, which depends on
rails (~> 5.0)
Do anyone have any idea how to resolve it? Please help!
Re-read the error message, it says exactly what's going on.
Bundler could not find compatible versions for gem "rails":
There is no single version of rails that satisfies all requirements. From your issue description I see that you're trying to update to 5, so lets see what is not okay with 5.
In Gemfile:
engine was resolved to 0.0.1, which depends on
activeadmin (= 1.0.0.pre2)
Engine depends on activeadmin with a fixed version
was resolved to 1.0.0.pre2, which depends on
rails (>= 3.2, < 5.0)
This version requires rails of at least 3.2 and less than 5.0. This disallows rails 5. You'll need to update activeadmin in engine before you update rails in the application using the engine.
Bundler could not find compatible versions for gem "pg":
In Gemfile:
pg (= 0.18.4)
multilang-hstore (= 1.0.0) was resolved to 1.0.0, which depends on
pg (>= 0.0.1)
Bundler could not find compatible versions for gem "responders":
In Gemfile:
responders (= 1.1.2)
devise (= 3.4.1) was resolved to 3.4.1, which depends on
responders
Bundler could not find compatible versions for gem "rubyzip":
In Gemfile:
axlsx (= 2.0) was resolved to 2.0.0, which depends on
rubyzip (= 0.9.9)
zip-zip was resolved to 0.3, which depends on
rubyzip (>= 1.0.0)
I need help understanding this bundler error message:
Bundler could not find compatible versions for gem "faraday":
In Gemfile:
metainspector (= 5.4.1) was resolved to 5.4.1, which depends on
faraday-http-cache (~> 2.0) was resolved to 2.0.0, which depends on
faraday (~> 0.8)
metainspector (= 5.4.1) was resolved to 5.4.1, which depends on
faraday_middleware (~> 0.11) was resolved to 0.11.0.1, which depends on
faraday (< 1.0, >= 0.7.4)
instagram-continued (= 1.2.1) was resolved to 1.2.1, which depends on
faraday (~> 0.9.2)
metainspector (= 5.4.1) was resolved to 5.4.1, which depends on
faraday (~> 0.11)
sendgrid-ruby (= 1.1.6) was resolved to 1.1.6, which depends on
faraday (~> 0.9)
Maybe I’m not understanding it correctly, but I don’t see where the issue is with faraday. All these dependencies seem to require a faraday version greater or equal than 0.7.4 but less than 1.0. My current version is 0.9.2. I've always understood the ~> pointer to indicate greater than or equal to. Is that incorrect?
Here is the relevant portion of my Gemfile:
gem 'instagram-continued', '1.2.1', require: "instagram"
gem 'metainspector', '5.4.1'
I am trying to use rails_admin with rails5 application. rails_admin 0.8.1 didn't work because
Bundler could not find compatible versions for gem "rails": In
snapshot (Gemfile.lock):
rails (= 5.0.0.beta1)
In Gemfile:
rails (< 5.1, >= 5.0.0.beta1)
rails_admin was resolved to 0.8.1, which depends on
rails (~> 4.0)
Then I tried using the latest code from github by using
gem 'rails_admin', git: 'https://github.com/sferik/rails_admin.git'
Now I am getting conflicting rack dependicies.
In snapshot (Gemfile.lock):
rack (= 2.0.0.alpha)
In Gemfile:
rails (< 5.1, >= 5.0.0.beta1) was resolved to 5.0.0.beta1, which depends on
actionmailer (= 5.0.0.beta1) was resolved to 5.0.0.beta1, which depends on
actionpack (= 5.0.0.beta1) was resolved to 5.0.0.beta1, which depends on
rack (~> 2.x)
rails_admin was resolved to 0.8.1, which depends on
rack-pjax (~> 0.7) was resolved to 0.7.0, which depends on
rack (~> 1.3)
rails (< 5.1, >= 5.0.0.beta1) was resolved to 5.0.0.beta1, which depends on
sprockets-rails (>= 2.0.0) was resolved to 3.0.0, which depends on
sprockets (>= 3.0.0) was resolved to 3.5.2, which depends on
rack (< 3, > 1)
devise was resolved to 4.0.0.pre.dev, which depends on
warden (~> 1.2.3) was resolved to 1.2.4, which depends on
rack (>= 1.0)
devise was resolved to 4.0.0.pre.dev, which depends on
warden (~> 1.2.3) was resolved to 1.2.4, which depends on
rack (>= 1.0)
Is it too early to start using rails5? Should I go back to rails4.2?
I see that RA has Rails5 gemfile https://github.com/sferik/rails_admin/blob/master/gemfiles/rails_5.0.gemfile. I would try upgrading to all gems mentioned in that file.
I fixed by doing:
gem 'rails_admin', github: 'sferik/rails_admin'
gem 'rack-pjax', github: 'afcapel/rack-pjax'
gem 'remotipart', github: 'mshibuya/remotipart', ref: '3a6acb3'
see this article