I am attempting to use dryml views for my rails project without using hobo. My version of ruby is 2.0.0 and the version of rails I am using is 4.2.3. I was following the instructions on this page: https://github.com/Hobo/hobo/blob/master/dryml/README
I attempted to follow them through but instead got this error when updating the bundler:
Bundler could not find compatible versions for gem "actionpack":
In snapshot (Gemfile.lock):
actionpack (= 4.2.3)
In Gemfile:
rails (= 4.2.3) x64-mingw32 depends on
actionmailer (= 4.2.3) x64-mingw32 depends on
actionpack (= 4.2.3) x64-mingw32
rails (= 4.2.3) x64-mingw32 depends on
actionmailer (= 4.2.3) x64-mingw32 depends on
actionpack (= 4.2.3) x64-mingw32
sass-rails (~> 5.0) x64-mingw32 depends on
sprockets-rails (< 4.0, >= 2.0) x64-mingw32 depends on
actionpack (>= 3.0) x64-mingw32
rails (= 4.2.3) x64-mingw32 depends on
actionmailer (= 4.2.3) x64-mingw32 depends on
actionpack (= 4.2.3) x64-mingw32
dryml (>= 0) x64-mingw32 depends on
actionpack (< 3.0.0, >= 2.2.2) x64-mingw32
dryml (>= 0) x64-mingw32 depends on
actionpack (< 3.0.0, >= 2.2.2) x64-mingw32
I am using Windows 8 if that makes any difference.
It looks like the latest version of dryml locks you into Rails 4.0.x (see actionpack dependency). You won't be able to use it with Rails 4.2 unless you fork the gem and loosen the gemspec dependency yourself.
However it looks like there is already an open issue on that project about some issues with Rails 4.2 so you probably don't want to do that. You could help out on that issue by making the needed fixes or helping test them after someone else does.
Related
I have multiple gems failing on my app. My bundler is not able to find compatible versions for all. I also do not have a 'Gemfile.lock' and it does not get created on bundle install. As follows:
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
draper was resolved to 2.1.0, which depends on
actionpack (>= 3.0)
jquery-datatables-rails (~> 3.3.0) was resolved to 3.3.0, which depends on
actionpack (>= 3.1)
rails (= 4.1.6) was resolved to 4.1.6, which depends on
actionpack (= 4.1.6)
rails-api was resolved to 0.4.1, which depends on
actionpack (>= 3.2.11)
ransack was resolved to 1.8.10, which depends on
actionpack (< 5.2, >= 3.0)
redis-rails was resolved to 5.0.2, which depends on
redis-actionpack (< 6, >= 5.0) was resolved to 5.1.0, which depends on
actionpack (< 7, >= 4.0)
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
acts_as_api (= 1.0.1) was resolved to 1.0.1, which depends on
activemodel (>= 3.0.0)
carrierwave (>= 1.0.0.beta, < 2.0) was resolved to 1.3.2, which depends on
activemodel (>= 4.0.0)
paperclip (~> 4.3.2) was resolved to 4.3.7, which depends on
activemodel (>= 3.2.0)
rails (= 4.1.6) was resolved to 4.1.6, which depends on
activemodel (= 4.1.6)
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
activerecord-postgres-hstore was resolved to 0.7.8, which depends on
activerecord (>= 3.1)
audited (~> 4.7) was resolved to 4.8.0, which depends on
activerecord (< 5.3, >= 4.0)
rails (= 4.1.6) was resolved to 4.1.6, which depends on
activerecord (= 4.1.6)
I am trying it again with the following specifications and getting the same result.
bundler: 1.16.6
rails: 4.1.6
ruby: 2.3.8
ubuntu: 18.04
I can see my gems when I do gem list but it still says bundler is not able to find anything for rails 4.1.6.
Add source in your Gemfile like below:
Gemfile
source 'https://rubygems.org'
delete everything form your Gemfile.lock and run bundle install
I listed the below
gem in my gemfile and after running "bundle install" i get the below
error.
Can someone tell me what to do, where to list or edit the correct
gems/dependencies
gem file :
gem 'rails', '~> 5.0.2'
gem 'shopify_app'
===========================
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
shopify_app x64-mingw32 was resolved to 7.0.10, which depends on
shopify_api (~> 4.2) x64-mingw32 was resolved to 4.2.0, which
depends on
activeresource x64-mingw32 was resolved to 2.0.1, which depends
on
activesupport (= 2.0.1) x64-mingw32
rails (~> 5.0.2) x64-mingw32 was resolved to 5.0.2, which depends on
activejob (= 5.0.2) x64-mingw32 was resolved to 5.0.2, which
depends on
globalid (>= 0.3.6) x64-mingw32 was resolved to 0.4.0, which
depends on
activesupport (>= 4.2.0) x64-mingw32
rails (~> 5.0.2) x64-mingw32 was resolved to 5.0.2, which depends on
activesupport (= 5.0.2) x64-mingw32
rails (~> 5.0.2) x64-mingw32 was resolved to 5.0.2, which depends on
activesupport (= 5.0.2) x64-mingw32
rails (~> 5.0.2) x64-mingw32 was resolved to 5.0.2, which depends on
activesupport (= 5.0.2) x64-mingw32
rails (~> 5.0.2) x64-mingw32 was resolved to 5.0.2, which depends on
activesupport (= 5.0.2) x64-mingw32
rails (~> 5.0.2) x64-mingw32 was resolved to 5.0.2, which depends on
activesupport (= 5.0.2) x64-mingw32
rails (~> 5.0.2) x64-mingw32 was resolved to 5.0.2, which depends on
activesupport (= 5.0.2) x64-mingw32
rails (~> 5.0.2) x64-mingw32 was resolved to 5.0.2, which depends on
activesupport (= 5.0.2) x64-mingw32
rails (~> 5.0.2) x64-mingw32 was resolved to 5.0.2, which depends on
actionpack (= 5.0.2) x64-mingw32 was resolved to 5.0.2, which
depends on
rails-dom-testing (~> 2.0) x64-mingw32 was resolved to 2.0.2, which
depends on
activesupport (< 6.0, >= 4.2.0) x64-mingw32
rails (~> 5.0.2) x64-mingw32 was resolved to 5.0.2, which depends on
sprockets-rails (>= 2.0.0) x64-mingw32 was resolved to 3.2.0, which
depends on
activesupport (>= 4.0) x64-mingw32
Bundler could not find compatible versions for gem "rails":
In Gemfile:
rails (~> 5.0.2) x64-mingw32
shopify_app x64-mingw32 was resolved to 0.1.0, which depends on
rails (~> 3) x64-mingw32
D:\Ruby On Rails\firstRailsProject>rails s
Could not find gem 'shopify_app x64-mingw32' in any of the gem sources
listed in
your Gemfile.
Run bundle install to install missing gems.
if you read carefuly the github readme for shopify_app, you'll find that there are some issues between ruby R versions:
so, you must do:
gem 'shopify_app'
gem 'activeresource', github: 'rails/activeresource'
for more info -> github shoopy
I was trying to upgrade my current rails 5.0.2 version to the latest rails 5.1.0 version by running bundle update rails after adding gem 'rails', '~> 5.1' on my Gemfile and I got this error message.
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
rails (~> 5.1) was resolved to 5.1.0, which depends on
activejob (= 5.1.0) was resolved to 5.1.0, which depends on
globalid (>= 0.3.6) was resolved to 0.4.0, which depends on
activesupport (>= 4.2.0)
jbuilder (~> 2.5) was resolved to 2.6.1, which depends on
activesupport (< 5.1, >= 3.0.0)
rails (~> 5.1) was resolved to 5.1.0, which depends on
activesupport (= 5.1.0)
rails (~> 5.1) was resolved to 5.1.0, which depends on
activesupport (= 5.1.0)
rails (~> 5.1) was resolved to 5.1.0, which depends on
activesupport (= 5.1.0)
rails (~> 5.1) was resolved to 5.1.0, which depends on
activesupport (= 5.1.0)
rails (~> 5.1) was resolved to 5.1.0, which depends on
activesupport (= 5.1.0)
rails (~> 5.1) was resolved to 5.1.0, which depends on
activesupport (= 5.1.0)
rails (~> 5.1) was resolved to 5.1.0, which depends on
activesupport (= 5.1.0)
rails (~> 5.1) was resolved to 5.1.0, which depends on
actionpack (= 5.1.0) was resolved to 5.1.0, which depends on
rails-dom-testing (~> 2.0) was resolved to 2.0.2, which depends on
activesupport (< 6.0, >= 4.2.0)
rails (~> 5.1) was resolved to 5.1.0, which depends on
sprockets-rails (>= 2.0.0) was resolved to 3.2.0, which depends on
activesupport (>= 4.0)
This sounds like you need to try and upgrade to a newer version of jbuilder. However, looking at RubyGems the current dependancies for Jbuilder still say:
activesupport < 5.1, >= 3.0.0
IF this is the case, JBuilder doesn't yet support the more recent Activesupport, now required by Rails 5.1 - so perhaps JBuilder isn't yet available in Rails 5.1.
If you need to get the newer Rails, then you should probably consider:
Checking to see if there is a roadmap in JBuilder for this.
Raising a JBuilder ticket requesting support for that later Rails version.
You could try an override - since it may potentially just work, and that <5.1 is just since it's not yet been tested with the more recent version - just be prepared for glitches if there are genuine compatibility issues. I'd definitely rerun the whole of your test suite after trying that.
The alternative is to wait a little bit - this is a very fresh release - give other packages a chance to catch up with it.
Deleting Gemfile.lock then running bundle worked for me
When trying to install a rails gem that ships the twitter-bootstrap-rails into my application, I got the following issue:
C:\workinrails\mytrelloapp>bundle install
Bundler could not find compatible versions for gem "railties":
In snapshot (Gemfile.lock):
railties (= 4.2.5.1)
In Gemfile:
coffee-rails (~> 4.1.0) x86-mingw32 was resolved to 4.1.1, which depends on
railties (< 5.1.x, >= 4.0.0) x86-mingw32
jquery-rails x86-mingw32 was resolved to 4.2.2, which depends on
railties (>= 4.2.0) x86-mingw32
rails (= 4.2.5.1) x86-mingw32 was resolved to 4.2.5.1, which depends on
railties (= 4.2.5.1) x86-mingw32
sass-rails (~> 5.0) x86-mingw32 was resolved to 5.0.6, which depends on
railties (< 6, >= 4.0.0) x86-mingw32
twitter-bootstrap-rails x86-mingw32 was resolved to 4.0.0, which depends on
railties (>= 5.0.1, ~> 5.0) x86-mingw32
web-console (~> 2.0) x86-mingw32 was resolved to 2.3.0, which depends on
railties (>= 4.0) x86-mingw32
After getting this "Running bundle update will rebuild your snapshot from scratch, using only the gems in your Gemfile, which may resolve the conflict." message, I got a new issue telling me that Bundler could not find compatible versions for gem "actionpack"
To summarize, I just did these steps:
Step 1 - Pasted gem 'twitter-bootstrap-rails', :git => 'git://github.com/seyhunak/twitter-bootstrap-rails.git' to my gemfile.
Step 2 - Bundle install
And I was hoping to arrive to Step 3 - rails generate bootstrap:install static
What's the issue?
Pardon my lack of knowledge as I am learning RoR.
when I run bundle update I get this error.
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
rails (= 4.2.2) x64-mingw32 was resolved to 4.2.2, which depends on
railties (= 4.2.2) x64-mingw32 was resolved to 4.2.2, which depends on
actionpack (= 4.2.2) x64-mingw32
rails (= 4.2.2) x64-mingw32 was resolved to 4.2.2, which depends on
railties (= 4.2.2) x64-mingw32 was resolved to 4.2.2, which depends on
actionpack (= 4.2.2) x64-mingw32
rails (= 4.2.2) x64-mingw32 was resolved to 4.2.2, which depends on
railties (= 4.2.2) x64-mingw32 was resolved to 4.2.2, which depends on
actionpack (= 4.2.2) x64-mingw32
refinerycms (~> 3.0) x64-mingw32 was resolved to 3.0.0, which depends on
refinerycms-core (= 3.0.0) x64-mingw32 was resolved to 3.0.0, which
depends on
actionpack (< 5.0, >= 4.2.3) x64-mingw32
C:\Ruby200-x64\my_new_application>ruby --v
ruby: invalid option --v (-h will show valid options) (RuntimeError)
Here is my ruby version
ruby 2.0.0p648 (2015-12-16) [x64-mingw32]
actually rails was working perfectly until I decided to install refinerycms from here. following the guideline posted on that page.
I searched this error and people suggested bundle update or bundle install but neither of them worked.
The problem is that you're using Rails 4.2.2 which uses ActionPack 4.2.2 while Refinery CMS wants at least 4.2.3. If you update Rails (probably need to adapt your Gemfile to use a newer version, like ~> 4.2.3), everything should be fine.
I think the version of refinerycms you are using depends on Rails 4.2.3 and you are using 4.2.2. Can you try either upgrading Rails to 4.2.3 or downgrading Refinerycms to one that supports 4.2.2?