Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After I read the documentation to make Livereload work in drupal with omega 4 theme, I run this command "drush omega-guard" in subtheme directory but i get errors, and i made sure i downloaded all ruby gems and dependicies
I get this error:
D:\xampp\htdocs\omega4test\sites\all\themes\subtheme>bundle exec guard
D:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/guard-1.8.1/lib/guard/interactor.rb:8:in `require': cannot load such file -- pry (LoadError)
from D:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/guard-1.8.1/lib/guard/interactor.rb:8:in `<class:Interactor>'
from D:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/guard-1.8.1/lib/guard/interactor.rb:6:in `<module:Guard>'
from D:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/guard-1.8.1/lib/guard/interactor.rb:1:in `<top (required)>'
from D:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/guard-1.8.1/lib/guard/dsl.rb:38:in `require'
from D:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/guard-1.8.1/lib/guard/dsl.rb:38:in `<class:Dsl>'
from D:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/guard-1.8.1/lib/guard/dsl.rb:34:in `<module:Guard>'
from D:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/guard-1.8.1/lib/guard/dsl.rb:1:in `<top (required)>'
from D:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/guard-1.8.1/lib/guard.rb:10:in `require'
from D:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/guard-1.8.1/lib/guard.rb:10:in `<module:Guard>'
from D:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/guard-1.8.1/lib/guard.rb:8:in `<top (required)>'
from D:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/guard-1.8.1/bin/guard:3:in `require'
from D:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/guard-1.8.1/bin/guard:3:in `<top (required)>'
from D:/Ruby200-x64/bin/guard:23:in `load'
from D:/Ruby200-x64/bin/guard:23:in `<main>'
If you need more info, let me know Thanks
Comments
Comment #1
fubhy CreditAttribution: fubhy commentedtry
gem install pry
Comment #2
idealdesigns CreditAttribution: idealdesigns commentedI installed it, same
maybe thats windows 7 issue, in linux maybe it works smoother
Comment #4
caspercash CreditAttribution: caspercash commentedI am very sorry to open this issue again but I still got this errors. Is this really a Windows 7 issue? Aren't there any fix to this? I tried the
gem install pry
but still got these errors. Please see here->http://screencast.com/t/fYjgOprbuo.Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedI was having a similar error with wdm instead of pry.
I added these lines before "end" on gemfile:
and it was corrected.
Using windows 8 (Zend Framework) and drush ogrd.
I hope this would help.
Maybe this line or something similar should be added to gemfile for windows systems...
Comment #6
caspercash CreditAttribution: caspercash commentedThank you very much phpcitizen! I tried adding those lines in my themes gemfile and replaced 'wdm' with 'pry'. And a new LoadError occurred which was 'wdm' so I run 'gem install wdm' and added it in the themes gemfile. The themes gemfile looks like the same as below:
When I first run 'drush omega-guard mytheme' it shows this error:
So I run it again and it did run but there are a couple of errors being displayed:
The guard is running but the livereload isn't working. Do you have any idea? By the way, I am running on Windows 7 OS and my gem list are the following:
Thank you!
Comment #7
fubhy CreditAttribution: fubhy commentedCan someone verify that this works? I am fine with adding Windows specific (oh god Windows, why do you suck so much?!) entries to the Gemfile (we already have some) if that fixes this issue. However, I don't have any Windows machine I could test this on.
Comment #8
Anonymous (not verified) CreditAttribution: Anonymous commentedcaspercash: I suspect you are using ruby 2+, I just upgraded it and having the same errors you have.
Would better use 1.9+ for now. But the line for wdm is needed for me.
Comment #9
caspercash CreditAttribution: caspercash commentedphpcitizen: Yes you are right! I am using ruby 2+. Okay I will be downgrading to 1.9+ and see if this works. Phew, I really hope it will. Until now, I couldn't use the livereload! Tsk. By the way, do you have any idea how to downgrade ruby or maybe a couple of blogs instructing how to?
Thank you very much for the help fubhy and phpcitizen!
Comment #10
DrupalFrank CreditAttribution: DrupalFrank commentedAny updates on this? I find myself in exactly the same spot; Windows7, new to Ruby (never used before), and trying to get drush omega-guard to work (like in the leveluptuts #9 tutorial of Omega4 theme).
Getting the same errors as caspercash and also running Ruby 2.0.0 (installed using the RubyInstaller from rubyinstaller.org). Also went through getting devkit etc so oily_png woudl build etc. (All this to get SaaS working?)
Added following to my Gemfile too...
If I have to downgrade; is there a clean way to do it?
Thanks in advance for any insight.
Comment #11
varshith CreditAttribution: varshith commentedI am using Windows 7 and used Ruby installer.
Same situation as DrupalFrank
After adding these lines
I still couldn't start guard. Some problem with livereload
I commented out the livereload stuff in the Guardfile and I was able to get guard running.
Comment #12
DrupalFrank CreditAttribution: DrupalFrank commentedCommenting the livereaload functionality looks like it will prevent the automatic compilation of the sass files. I'd still like to have that working.
Will be installing Ruby 1.9.3-p484 (using rubyinstaller.org) soon to see if that resolves the issues. Will post back later with the results.
Comment #13
DrupalFrank CreditAttribution: DrupalFrank commentedSome progress, thought I would share (yes looks like Ruby 2.0.0 is the culprit; going to 1.9.3 seems better)...
Since I'm running my Drupal7 Win32 development environment in a Virtual Machine (VirtualBox), I went back to a snapshot of the machine before Ruby 2.0.0 had been installed and instead installed Ruby 1.9.3 using the Windows installer and also the matching devkit from the same website. (rubyinstaller.org)
From my subtheme folder in command console ran the following commands to catch the VM image back up to where it needed to be. This time I saw no warnings or errors.
Now the drush omega-guard command produced the following result instead of error messages...
Comment #14
BrianVu CreditAttribution: BrianVu commentedAny updates on how to get this working on a Windows machine?
Comment #15
wimberb CreditAttribution: wimberb commentedIt appears that the problem is with guard 2.x. According to this thread https://github.com/guard/listen/issues/149 nobody on the guard development team has a windows machine so they are having a hard time troubleshooting the problem with wdm and guard. Perhaps someone who has a clue about any of this can help them locate the problem.
Comment #16
DamienMcKennaComment #17
JussaguyDesign CreditAttribution: JussaguyDesign commentedRUBY 2.X.X is definitely the issue. Use RUBY 1.9.3. When you use RUBY 1.9.3 you may have to install each GEM individually. "bundle install" command did not work for me. It takes about 20mins to install each gem individually, but everything seems to work for me on a Windows 7 32 bit platform.
Comment #18
sarathkmAfter hitting Lode Error with Ruby 2.2.2 for 'hitimes'. I decided to try installing using Ruby 1.9.3 and the problem is solved with no errors on my Windows 7 machine.
The Steps I followed were like this:
1. Downloaded Ruby 1.9.3 and DevKit for 1.9.3 fromrubyinstaller.org
2. After installing Ruby 1.9.3, add the PATH ENV variable so that I can start using from terminal.
3. Extracted DevKit and followed Quick Start guide from github for rubyinstaller development kit. This step is required for wdm (I guess).
4. Then ran
gem install wdm
. That installed wdm to my local machine.5. Then I moved on to my newly created omega subtheme directory and ran
drush ogrd
. This tells me to install bundler.6. I installed bundler with
gem install bundle
.7. Next, I typed again
drush ogrd
. This time it shows to install dependencies usingbundle install
.8. However bundle install doesn't work in 1.9.3 but displays a list of bundle to install. Installed gem bundle one by one with
gem install bundlename
. (one of guard bundle depends on most other dependencies listed when typedbundle install
so I think it is better to install guard bundle as it installs most other bundle and check again by typingbundle install
, this will save your time.)9. Next after installing all the bundle. I get my
drush ogrd
get working with few INFO messages and polling issue with'wdm'. You will see a message to add a line to Gemfile. Please do so in your new omega sub theme directory where you will find The Gemfile and add as specified
gem 'wdm', '>= 0.1.0' if Gem.win_platform?
before end or/and after developement do.(note: this may change as I see above note from #13, this line to be different for him. So do add the line as you see in your terminal.)Also, after all this you fail to load livereload.js (you may checkout that you have livereload server running on broswer window by typing this url: http://localhost:35729/livereload.js), you would like to consider windows livereload app from livereload.com. After installing this app you will see js script on the same URL as what it should show. Note that you will have to keep this app running while you want livereload running on omega 4.
Restart your terminal and hope you will see your SASS working in conjection with CSS.
Comment #19
sarathkmMay be this helps someone
https://www.drupal.org/node/2204227
Comment #20
8bernard8 CreditAttribution: 8bernard8 commentedI have just inatlled drupal 7.38 with omega 4 and made by drush new subtheme, also made new layout (copy sass from omega folder and renamed).
While starting drush omega-guard i have some issues with layout. Anybody knows what is it ?
this is line #19
Comment #21
pkiff CreditAttribution: pkiff commented@8berbard8: This does not look like an omega-guard problem, but a SASS coding problem in relation to the omega implementation of susy. I'd recommend starting a new issue marked as a support request. Be sure to identify which specific 4.x version of omega you are running when you create the topic.
Comment #22
steinmb CreditAttribution: steinmb as a volunteer commentedConsider this answered. Pls. do not re-open this again. Any new issues goes in new issues, pretty please with sugar on top.