麻烦运行Hallon(libspotify)的例子

时间:2012-12-01 05:29:21

标签: ruby-on-rails ruby rubygems spotify

我正在尝试运行Hallon gem https://github.com/Burgestrand/Hallon

提供的示例

我遵循了所有这些指示: https://github.com/Burgestrand/Hallon/wiki

但是,我仍然有一个问题。以下是我得到的错误。任何帮助将不胜感激!

  

Basils-MacBook-Pro:Hallon Basil $ ruby​​ examples / show_published_playlists_of_user.rb   /Users/Basil/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- weak_observable (LoadError) from /Users/Basil/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require'       来自/Users/Basil/Desktop/Hallon/lib/hallon.rb:6:in <top (required)>' from /Users/Basil/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in要求'       来自/Users/Basil/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /Users/Basil/Desktop/Hallon/examples/example_support.rb:46:in'       来自examples / show_published_playlists_of_user.rb:4:in require_relative' from examples/show_published_playlists_of_user.rb:4:in'

1 个答案:

答案 0 :(得分:1)

错误消息包含答案:

require': cannot load such file -- weak_observable (LoadError) 

这意味着这可以解决您的问题:

gem install weak_observable