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.
Comment | File | Size | Author |
---|---|---|---|
#20 | 2204349-20-add-Radix-2.x-Gemfile.patch | 542 bytes | mrP |
#9 | Screen Shot 2014-02-25 at 2.49.14 PM.png | 59.87 KB | erok415 |
#3 | Screen Shot 2014-02-25 at 9.51.48 AM.png | 34.18 KB | erok415 |
Comments
Comment #1
erok415 CreditAttribution: erok415 commentedComment #2
shadcn CreditAttribution: shadcn commentedCan you run
sudo gem install bootstrap-sass
and then compass watch again?Comment #3
erok415 CreditAttribution: erok415 commented@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.
Comment #4
shadcn CreditAttribution: shadcn commentedCan you remove the extensions folder from your subtheme and run
compass clean && compass watch
? ThanksComment #5
erok415 CreditAttribution: erok415 commented@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.
Comment #6
erok415 CreditAttribution: erok415 commentedActually, there's nothing in the extensions folder located at /Library/Ruby/Gems/2.0.0/
E.
Comment #7
shadcn CreditAttribution: shadcn commentedI meant the extensions folder inside /Users/mac/ClientSites/Pantheon/[PantheonSiteName]/sites/all/themes/[themeName]/.
Comment #8
erok415 CreditAttribution: erok415 commentedHi @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.
Comment #9
erok415 CreditAttribution: erok415 commentedHi @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:
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:
Comment #10
erok415 CreditAttribution: erok415 commentedHi,
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
$ 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
(reported above) we needed to run the following steps.
Solution
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
/*@import "compass_radix_responsive";*/
The final inconsequential error was:
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.
Comment #11
shadcn CreditAttribution: shadcn commentedCan 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
Comment #12
banoodle CreditAttribution: banoodle commentedYes - 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?
Comment #13
erok415 CreditAttribution: erok415 commentedHi @arshadcn,
Does this answer Error #2 in my post above?
E.
Comment #14
banoodle CreditAttribution: banoodle commentedMy 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.
Comment #15
banoodle CreditAttribution: banoodle commentedOK - 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!
Comment #16
erok415 CreditAttribution: erok415 commentedI 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.
Comment #17
shadcn CreditAttribution: shadcn commentedIs this working now? Let us know if this was a radix specific bug or mac related. Thanks.
Comment #18
shadcn CreditAttribution: shadcn commentedI'm going to mark this as fixed. Feel free to reopen.
Comment #20
mrP CreditAttribution: mrP commentedI'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'
Comment #22
shadcn CreditAttribution: shadcn commentedThanks @mrP. I've committed the patch. Should be in latest dev. Let's test and I can tag a new release.
Comment #23
alexweber CreditAttribution: alexweber commentedI was just about to chime and say add a Gemfile, you guys are fast! :)
Marking as fixed since the commit is in there...
Comment #25
Argus CreditAttribution: Argus commentedWas 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.
Comment #26
dsnopekYes, this has been committed to -dev!