ruby_gntp
ruby_gntp copied to clipboard
unable to resolve "RuntimeError: Notify failed"
I'm using bullet which uses uniform_notifier and ruby_gntp, and when launching my application I get this error and I can't seem to track down what's causing it or how to fix it. Not much in the code that I can really deduce... any thoughts?
I'm having the same issue. This happened after upgrading to Mavericks from OSX 10.8.
Same here.
Same here - spork via ruby_gntp (and directly from the console), after upgrading to Mavericks:
?> GNTP.notify({
?> :app_name => "Instant notify",
?> :title => "Instant notification",
?> :text => "Instant notification available now.",
?> :icon => "http://www.hatena.ne.jp/users/sn/snaka72/profile.gif",
?> })
RuntimeError: Notify failed
from /usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/ruby_gntp-0.3.4/lib/ruby_gntp.rb:125:in `notify'
from /usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/ruby_gntp-0.3.4/lib/ruby_gntp.rb:144:in `notify'
from (irb):20
from /usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-3.2.15/lib/rails/commands/console.rb:47:in `start'
from /usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-3.2.15/lib/rails/commands/console.rb:8:in `start'
from /usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-3.2.15/lib/rails/commands.rb:41:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Edit: command-line growlnotify works.
same here, after upgrading to Mavericks.
Ruby 1.9.3, Rails 3.2.13, Growl 2.1.2
Two different computers shown the same error, both running directly "rails s" or through zeus:
=> Booting Thin
=> Rails 3.2.13 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/ruby_gntp-0.3.4/lib/ruby_gntp.rb:125:in `notify': Notify failed (RuntimeError)
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/uniform_notifier-1.2.0/lib/uniform_notifier/growl.rb:54:in `notify'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/uniform_notifier-1.2.0/lib/uniform_notifier/growl.rb:46:in `setup_connection_gntp'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/uniform_notifier-1.2.0/lib/uniform_notifier/growl.rb:18:in `rescue in setup_connection'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/uniform_notifier-1.2.0/lib/uniform_notifier/growl.rb:15:in `setup_connection'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/uniform_notifier-1.2.0/lib/uniform_notifier.rb:23:in `growl='
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/bullet-4.6.0/lib/bullet.rb:31:in `growl='
from /Users/admin/Documents/7.Rails_projects/web_llorens/config/initializers/bullet.rb:4:in `<top (required)>'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `block in load'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/railties-3.2.13/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/railties-3.2.13/lib/rails/engine.rb:587:in `each'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/railties-3.2.13/lib/rails/engine.rb:587:in `block in <class:Engine>'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/admin/Documents/7.Rails_projects/web_llorens/config/environment.rb:5:in `<top (required)>'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /Users/admin/Documents/7.Rails_projects/web_llorens/config.ru:3:in `block in <main>'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
from /Users/admin/Documents/7.Rails_projects/web_llorens/config.ru:in `new'
from /Users/admin/Documents/7.Rails_projects/web_llorens/config.ru:in `<main>'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/railties-3.2.13/lib/rails/commands/server.rb:46:in `app'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/railties-3.2.13/lib/rails/commands/server.rb:70:in `start'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/railties-3.2.13/lib/rails/commands.rb:55:in `block in <top (required)>'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
from /Users/admin/.rvm/gems/ruby-1.9.3-p286@web_llorens/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Possibly an issue with Growl.app; see this
TLDR; an update to 2.1.3 is pending review in the Mac App Store.
Solved for me after upgrading to Growl 2.1.3 via Mac App Store.
Good for me as well. Thanks!