I have a site that I freshly installed using the Open Atrium 2 package from Pantheon on the Pantheon hosting platform. I've followed the tutorial at https://drupal.org/node/1896382.

I specifically followed these instructions:

Installing Compass Radix gem
    Install rubygems: sudo apt-get install rubygems
    Install Compass Radix: sudo gem update; sudo gem install compass_radix

Since I'm on a Pantheon hosting platform and not using a local db, I followed the manual instructions:

Manually
    Get the latest Radix
    Copy the default kit and place it in your themes directory.
    Rename default to YOUR_THEME_NAME.
    Rename default.info to YOUR_THEME_NAME.info
    Edit YOUR_THEME_NAME.info. Add a name, description and comment out the line hidden: true.
    Open a terminal and cd to your theme directory.
    Run the following command: compass clean && compass watch.
    Visit Appearance in your Drupal admin and enable your new theme.

My issue is that once I get to $ compass clean && compass watch, I get an error.

This is the error:

$ compass clean && compass watch
   remove .sass-cache/ 
   remove assets/stylesheets/ie7.css 
   remove assets/stylesheets/ie8.css 
   remove assets/stylesheets/print.css 
   remove assets/stylesheets/screen.css 
>>> Change detected at 16:02:01 to: ie7.scss
   create assets/stylesheets/ie7.css 
   create assets/stylesheets/ie8.css 
   create assets/stylesheets/print.css 
    error assets/sass/screen.scss (Line 17 of extensions/compass_radix/stylesheets/_compass_radix.scss: File to import not found or unreadable: bootstrap.
Load paths:
  /Users/mac/ClientSites/Pantheon/[PantheonSiteName]/sites/all/themes/[themeName]/assets/sass
  /Library/Ruby/Gems/2.0.0/gems/compass-0.12.2/frameworks/blueprint/stylesheets
  /Library/Ruby/Gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets
  /Library/Ruby/Gems/2.0.0/gems/compass_twitter_bootstrap-2.3.1/stylesheets
  /Users/mac/ClientSites/Pantheon/[PantheonSiteName]/sites/all/themes/[themeName]/extensions/compass_radix/stylesheets
  Compass::SpriteImporter)
   create assets/stylesheets/screen.css 
>>> Compass is polling for changes. Press Ctrl-C to Stop.

The issue is at: error assets/sass/screen.scss (Line 17 of extensions/compass_radix/stylesheets/_compass_radix.scss: File to import not found or unreadable: bootstrap. I have searched and search and can't find anyone with the same issues.

Thanks for any help.
E.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

erok415’s picture

Title: Can't compass clean && compass watch with error » Can't compass clean && compass watch without error
shadcn’s picture

Can you run sudo gem install bootstrap-sass and then compass watch again?

erok415’s picture

@arshadcn
Yes, I definitely have bootstrap-sass installed. See the image attached for what I have installed. This image is from /Library/Ruby/Gems/2.0.0/gems .

This is still my error:
error assets/sass/screen.scss (Line 17 of extensions/compass_radix/stylesheets/_compass_radix.scss: File to import not found or unreadable: bootstrap.

shadcn’s picture

Can you remove the extensions folder from your subtheme and run compass clean && compass watch? Thanks

erok415’s picture

@arshadcn
Hi,
I have tried it both ways. I'm specifically referring to the extensions folder in the Radix theme. Like I said, I tried it both ways.

BTW, are your referring to the extensions folder in the image I attached above. If so, the extensions folder is in /Library/Ruby/Gems/2.0.0/ .

I'll temporarily remove it to see what happens and report back.
E.

erok415’s picture

Actually, there's nothing in the extensions folder located at /Library/Ruby/Gems/2.0.0/
E.

shadcn’s picture

I meant the extensions folder inside /Users/mac/ClientSites/Pantheon/[PantheonSiteName]/sites/all/themes/[themeName]/.

erok415’s picture

Hi @arshadcn,
I tried it with no success. I'm now removing all gems that I tried to install to get the Compass and Sass to work. I'm going to start over again and report back.
E.

erok415’s picture

Hi @arshadcn,
I've successfully removed all gems that I originally installed following https://drupal.org/node/1896382 and others.

I'm on a mac btw. I ran:

$sudo gem update
&
$sudo gem install compass_radix

I noticed that I received more gems this time and this seemed to be productive (see screenshot). I then created the subtheme manually and ran:

$compass clean && compass watch

This is the output:

sudo compass clean && compass watch --trace
LoadError on line ["55"] of /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb: cannot load such file -- compass_twitter_bootstrap
Run with --trace to see the full backtrace

It seems that I need to get compass_twitter_bootstrap.

I install it by running:
$ sudo gem install compass_twitter_bootstrap

and this is the output:

 sudo compass clean && compass watch --trace
   remove .sass-cache/ 
   remove assets/stylesheets/ie7.css 
   remove assets/stylesheets/ie8.css 
   remove assets/stylesheets/print.css 
   remove assets/stylesheets/screen.css 
>>> Compass is watching for changes. Press Ctrl-C to Stop.
   create assets/stylesheets/ie7.css 
   create assets/stylesheets/ie8.css 
   create assets/stylesheets/print.css 
    error assets/sass/screen.scss (Line 17 of _compass_radix.scss: File to import not found or unreadable: bootstrap.
Load paths:
  /Users/mac/Sites/Pantheon/[sitename]/sites/all/themes/[themeName]/assets/sass
  /Library/Ruby/Gems/2.0.0/gems/compass-core-1.0.0.alpha.17/stylesheets
  /Library/Ruby/Gems/2.0.0/gems/compass_twitter_bootstrap-2.3.1/stylesheets
  /Library/Ruby/Gems/2.0.0/gems/compass_radix-3.0.2/stylesheets
  Compass::SpriteImporter)
   create assets/stylesheets/screen.css 
Errno::EACCES on line ["1143"] of /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb: Permission denied - /Library/Ruby/Gems/2.0.0/gems/compass-core-1.0.0.alpha.17/stylesheets/.listen_test
  /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1143:in `open'
  /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1143:in `rescue in block in touch'
  /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1139:in `block in touch'
  /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1137:in `each'
  /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1137:in `touch'
  /Library/Ruby/Gems/2.0.0/gems/listen-1.1.6/lib/listen/adapter.rb:221:in `works?'
  /Library/Ruby/Gems/2.0.0/gems/listen-1.1.6/lib/listen/adapter.rb:182:in `block in usable_and_works?'
  /Library/Ruby/Gems/2.0.0/gems/listen-1.1.6/lib/listen/adapter.rb:182:in `each'
  /Library/Ruby/Gems/2.0.0/gems/listen-1.1.6/lib/listen/adapter.rb:182:in `all?'
  /Library/Ruby/Gems/2.0.0/gems/listen-1.1.6/lib/listen/adapter.rb:182:in `usable_and_works?'
  /Library/Ruby/Gems/2.0.0/gems/listen-1.1.6/lib/listen/adapter.rb:49:in `block in select_and_initialize'
  /Library/Ruby/Gems/2.0.0/gems/listen-1.1.6/lib/listen/adapter.rb:47:in `each'
  /Library/Ruby/Gems/2.0.0/gems/listen-1.1.6/lib/listen/adapter.rb:47:in `select_and_initialize'
  /Library/Ruby/Gems/2.0.0/gems/listen-1.1.6/lib/listen/listener.rb:272:in `initialize_adapter'
  /Library/Ruby/Gems/2.0.0/gems/listen-1.1.6/lib/listen/listener.rb:264:in `setup'
  /Library/Ruby/Gems/2.0.0/gems/listen-1.1.6/lib/listen/listener.rb:64:in `start!'
  /Library/Ruby/Gems/2.0.0/gems/compass-1.0.0.alpha.18/lib/compass/watcher/project_watcher.rb:31:in `watch!'
  /Library/Ruby/Gems/2.0.0/gems/compass-1.0.0.alpha.18/lib/compass/commands/watch_project.rb:48:in `perform'
  /Library/Ruby/Gems/2.0.0/gems/compass-1.0.0.alpha.18/lib/compass/commands/base.rb:18:in `execute'
  /Library/Ruby/Gems/2.0.0/gems/compass-1.0.0.alpha.18/lib/compass/commands/project_base.rb:19:in `execute'
  /Library/Ruby/Gems/2.0.0/gems/compass-1.0.0.alpha.18/lib/compass/exec/sub_command_ui.rb:43:in `perform!'
  /Library/Ruby/Gems/2.0.0/gems/compass-1.0.0.alpha.18/lib/compass/exec/sub_command_ui.rb:15:in `run!'
  /Library/Ruby/Gems/2.0.0/gems/compass-1.0.0.alpha.18/bin/compass:30:in `block in <top (required)>'
  /Library/Ruby/Gems/2.0.0/gems/compass-1.0.0.alpha.18/bin/compass:44:in `call'
  /Library/Ruby/Gems/2.0.0/gems/compass-1.0.0.alpha.18/bin/compass:44:in `<top (required)>'
  /usr/bin/compass:23:in `load'
  /usr/bin/compass:23:in `<main>'
erok415’s picture

Hi,
I'm really troubled with this solution I found with my teammate. There were two of us that experienced the issues above on 3 separate operating systems (all Mac's). Here are the steps we took.

Clean install (removed all gems from system) and followed: https://drupal.org/node/1896382

  • $ sudo gem update
  • $ sudo gem install compass_radix

Error 1

After copying the default theme from radix/kit/ and running $compass clean && compass watch as instructed, an error was given requesting "compass_twitter_bootstrap".

Solution

  • Install "compass_twitter_bootstrap": $ sudo gem install compass_twitter_bootstrap This should really be in the instructions since an error is thrown when running $ compass clean && compass watch.

Error 2

error assets/sass/screen.scss (Line 17 of _compass_radix.scss: File to import not found or unreadable: bootstrap.

(reported above) we needed to run the following steps.

Solution

  • In /Library/Ruby/Gems/2.0.0/gems/bootstrap-sass-3.1.1.0/vendor/assets/stylesheets/ we copied the entire directory called "bootstrap" and pasted in:
  • /Library/Ruby/Gems/2.0.0/gems/compass_radix-3.0.2/stylesheets/

Error 3

But....the next issue was a similar error asking for "compass_radix_responsive". That's odd since I thought radix was responsive as a default. We couldn't find "compass_radix_responsive anywhere including /Library/Ruby/Gems/2.0.0/gems/ and in the radix-starter kit that comes with OA2 (Open Atrium 2).

Solution

  • We fixed this by commenting out line 20
  • /*@import "compass_radix_responsive";*/
  • of /sites/all/themes/[themeName]/assets/sass/screens.scss. This resolved all issues and finally.....$compass clean && compass watch was able to complete. However, there was one error but it seemed to not cause any issues.

The final inconsequential error was:

Errno::EACCES on line ["1143"] of /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb: Permission denied - /Library/Ruby/Gems/2.0.0/gems/compass-core-1.0.0.alpha.17/stylesheets/.listen_test
Run with --trace to see the full backtrace

I'm assuming that this workaround is not intended. It does do the job though, but I'm concerned that by manually adding the bootstrap directory from "bootstrap-sass" is not intended out of the box as well as commenting out the @import "compass_radix_responsive" as noted above. Please tell me I've done this wrong and provide some guidance as to why this workaround needed to happen.

I want to note that I think the folks that worked on this did a great job. I'm really surprised that I'm the first to bring up this issue.

Any guidance is appreciated.
E.

shadcn’s picture

Can you check if you have the correct version of compass_radix installed? Radix 2.x ships with Open Atrium and Radix 2.x needs compass_radix 2.x. Install it as follows:

sudo gem install compass_radix -v 2

banoodle’s picture

Yes - I think this is it. I'm on version 3.0.2 and I think E is as well.

I just installed -v 2, but compass is still looking for the loadpath to 3.0.2 even though I removed it. So I'm still getting the error...

error assets/sass/screen.scss (Line 20: File to import not found or unreadable: compass_radix_responsive.

Any idea how I make compass look for version 2 of compass_radix?

erok415’s picture

Hi @arshadcn,
Does this answer Error #2 in my post above?
E.

banoodle’s picture

My load path issue was fixed by uninstalling all compas_radix versions and just installing version 2. I thought I had uninstalled it but forgot to use sudo like I should have.

So I started from scratch (removed all my gems), then did:

sudo gem update

followed by:

sudo gem install compass_rradix -v 2

Now when I try compass clean && compass watch, I don't get any of the bootstrap or other errors we saw previously, but compass exits with this error:

Errno::EACCES on line ["1143"] of /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb: Permission denied - /Library/Ruby/Gems/2.0.0/gems/compass-core-1.0.0.alpha.17/stylesheets/.listen_test

I tried making the directories in these paths more permissive but it didn't help.

banoodle’s picture

OK - if I use sudo for my compass commands everything works:

sudo compass clean && sudo compass watch

I guess I can live with this. Clearly, I have permissions issues on my computer which I'll need to sort out. I inherited it from my spouse and he did strange things to it ; )

Thanks for all your help - feeling SASSy now!

erok415’s picture

I can concur with @banoodle. However, I still get the error reported by @banoodle Errno::EACCES on line ["1143"] of /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb: Permission denied - /Library/Ruby/Gems/2.0.0/gems/compass-core-1.0.0.alpha.17/stylesheets/.listen_test whether I use $sudo or not.

On my Mac, all of the Gem stuff belongs to the wheel group. $ compass clean && compass watch now work after a fresh install. But the compass watch terminates after the first successful run rather than staying active as expected. Any thoughts?

BTW @arshadcn, I edited the Radix subtheme page. I hope it helps others as I was not clued in to what Radix version I was using with Open Atrium.
E.

shadcn’s picture

Is this working now? Let us know if this was a radix specific bug or mac related. Thanks.

shadcn’s picture

Status: Active » Fixed

I'm going to mark this as fixed. Feel free to reopen.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

mrP’s picture

Version: 7.x-3.0-alpha2 » 7.x-2.x-dev
Category: Support request » Task
Status: Closed (fixed) » Needs review
Related issues: +#2212449: Error on compass watch
FileSize
542 bytes

I'm reopening this as a Task because a simple Gemfile for Radix 2.x would solve the problem entirely.

See attached patch against radix-7.x-2.x to add Gemfile that requires compass_radix gem version 2.x

gem 'compass_radix', '~> 2'

  • Commit 8f23dd3 on 7.x-2.x authored by mrP, committed by arshadcn:
    Issue #2204349 by mrP | erok415: Can't compass clean...
shadcn’s picture

Thanks @mrP. I've committed the patch. Should be in latest dev. Let's test and I can tag a new release.

alexweber’s picture

Status: Needs review » Fixed

I was just about to chime and say add a Gemfile, you guys are fast! :)

Marking as fixed since the commit is in there...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Argus’s picture

Status: Closed (fixed) » Reviewed & tested by the community

Was this added to the latest release? Because I'm still getting those errors with radix 7.x-3.0-beta1 and when I use the dev release there are no problems.

dsnopek’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Yes, this has been committed to -dev!