Question

getting this error on a new project - its driving me mad!

its a minefield out there trying to figure all this stuff, jeez once I've got this sorted i'll defo make a simple to follow guide!!

please please help

Bundler could not find compatible versions for gem "sass":
  In Gemfile:
    singularitygs (~> 1.2.0) ruby depends on
      sass (~> 3.3.0) ruby

compass (~> 0.12.3) ruby depends on
  sass (3.2.14)

my gem file

# A sample Gemfile
source "https://rubygems.org"

# gem "rails"
gem "compass", "~> 0.12.3"
gem "singularitygs", "~> 1.2.0"
gem "singularity-extras", "~> 0.0.3"
gem "breakpoint", "~> 2.4.2"
gem "jacket", "~> 1.1.1"
gem "toolkit", "~> 2.0.1"
gem "bourbon", "~> 3.1.8"

heres the gems on my mac

$ gem list

* LOCAL GEMS *

actionmailer (4.0.4)
actionpack (4.0.4)
activemodel (4.0.4)
activerecord (4.0.4)
activerecord-deprecated_finders (1.0.3)
activesupport (4.0.4, 3.2.17)
arel (4.0.2)
atomic (1.1.16)
bigdecimal (1.2.5, 1.2.0)
bourbon (3.1.8)
breakpoint (2.4.2)
builder (3.1.4)
bundler (1.5.3)
celluloid (0.15.2)
celluloid-io (0.15.0)
chunky_png (1.3.0)
coffee-script (2.2.0)
coffee-script-source (1.7.0)
compass (1.0.0.alpha.19, 0.12.3)
compass-core (1.0.0.alpha.19)
compass-import-once (1.0.4, 1.0.3)
erubis (2.7.0)
execjs (2.0.2, 1.4.0)
ffi (1.9.3)
fssm (0.2.10)
haml (4.0.5)
hike (1.2.3)
i18n (0.6.9)
io-console (0.4.2)
jacket (1.1.1)
json (1.8.1, 1.7.7)
kramdown (1.3.3, 1.3.2)
listen (2.7.1, 1.1.6)
mail (2.5.4)
middleman (3.2.2)
middleman-core (3.2.2)
middleman-sprockets (3.3.1)
mime-types (1.25.1)
minitest (5.3.1, 4.3.2)
modular-scale (2.0.4)
multi_json (1.9.0)
nio4r (1.0.0)
polyglot (0.3.4)
psych (2.0.4, 2.0.0)
rack (1.5.2)
rack-test (0.6.2)
rails (4.0.4)
railties (4.0.4)
rake (10.1.1, 0.9.6)
rb-fsevent (0.9.4)
rb-inotify (0.9.3)
rb-kqueue (0.2.2)
rdoc (4.1.1, 4.0.0)
sass (3.3.3, 3.3.1, 3.2.14)
sassy-maps (0.3.2)
sassy-math (1.5)
singularity-extras (0.0.3)
singularitygs (1.2.0)
sprockets (2.12.0)
sprockets-helpers (1.1.0, 1.0.1)
sprockets-rails (2.0.1)
sprockets-sass (1.0.3)
susy (2.1.1, 1.0.9)
test-unit (2.5.5, 2.0.0.0)
thor (0.18.1)
thread_safe (0.2.0)
tilt (2.0.0, 1.4.1)
timers (1.1.0)
toolkit (2.0.1)
treetop (1.4.15)
tzinfo (0.3.39)
uglifier (2.5.0, 2.4.0)

OK I think i'm getting there but still getting some errors

my config.rb file

require 'compass/import-once/activate'
require 'singularitygs'
require 'singularity-extras'
require 'breakpoint'
require 'jacket'
require 'toolkit'
require 'bourbon'


# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"
sass_dir = "sass"
images_dir = "img".
fonts_dir = "fonts"
javascripts_dir = "js"

# You can select your preferred output style here (can be overridden via the command line):
output_style = :compact 

# To enable relative paths to assets via compass helper functions. Uncomment:
relative_assets = true

# To disable debugging comments that display the original location of your selectors. Uncomment:
# line_comments = false


# If you prefer the indented syntax, you might want to regenerate this
# project again passing --syntax sass, or you can uncomment this:
preferred_syntax = :sass
# and then run:
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass

my app.sass file

@import "compass"
@import "singularitygs"
@import "singularity-extras"
@import "breakpoint"
@import "jacket"
@import "toolkit"
@import "bourbon"
// My sass
@import "partials/normalize"

my Gemfile file

source "https://rubygems.org"

gem "compass"
gem "singularitygs"
gem "singularity-extras"
gem "breakpoint"
gem "jacket"
gem "toolkit"
gem "bourbon"

the error

  error sass/app.sass (Line 2: File to import not found or unreadable: jacket.
Load paths:
  /Applications/MAMP/htdocs/MachuPicchuMobile.com/7DayShapeUp/sass
  /Users/nathanielharman/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/compass-core-1.0.0.alpha.19/stylesheets
  /Users/nathanielharman/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/susy-2.1.1/sass
  Compass::SpriteImporter)
overwrite css/app.css
     info sass/app.sass was modified
    error sass/app.sass (Line 2: File to import not found or unreadable: jacket.
Load paths:
  /Applications/MAMP/htdocs/MachuPicchuMobile.com/7DayShapeUp/sass
  /Users/nathanielharman/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/compass-core-1.0.0.alpha.19/stylesheets
  /Users/nathanielharman/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/susy-2.1.1/sass
  Compass::SpriteImporter)
identical css/app.css
     info sass/app.sass was modified
    error sass/app.sass (Line 2: File to import not found or unreadable: singularitygs.
Load paths:
  /Applications/MAMP/htdocs/MachuPicchuMobile.com/7DayShapeUp/sass
  /Users/nathanielharman/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/compass-core-1.0.0.alpha.19/stylesheets
  /Users/nathanielharman/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/susy-2.1.1/sass
  Compass::SpriteImporter)
overwrite css/app.css
Was it helpful?

Solution

Also bundle update only allows you to update one gem at a time, which is hard if you are updating to Rails 4 and a whole lot of gems have to be updated at the same time.

I solved this by deleting the Gemfile.lock and doing bundle install.

Remove version number's inside your Gemfile and than try bundle update.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top