ttscoff / Slogger

Social logging script for Day One
756 stars 160 forks source link

Problems installing fitbit #309

Open Pixelbelichter opened 10 years ago

Pixelbelichter commented 10 years ago

Hi,

Slogger runs very fine for me! (I´m only using the Omnifocus Feature so far). Today i tried to install the fitbit feature.

sudo gem install fitgem Successfully installed fitgem-0.9.0 Parsing documentation for fitgem-0.9.0 1 gem installed

When running ./slogger --update-config it gives me the following error:

Initializing Slogger v2.1 (2.1.0.11)... /Users/USER/Documents/SW/Slogger/plugins/fitbit.rb:34:in require': cannot load such file -- fitgem (LoadError) from /Users/USER/Documents/SW/Slogger/plugins/fitbit.rb:34:in<top (required)>' from /Users/USER/Documents/SW/Slogger/slogger.rb:267:in require' from /Users/USER/Documents/SW/Slogger/slogger.rb:267:inblock in run_plugins' from /Users/USER/Documents/SW/Slogger/slogger.rb:259:in each' from /Users/USER/Documents/SW/Slogger/slogger.rb:259:inrun_plugins' from /Users/USER/Documents/SW/Slogger/slogger.rb:446:in <top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from ./slogger:18:in

'

Any Ideas? Thanks for your help!

ttscoff commented 10 years ago

I didn't create and am not using the fitbit gem, so there might be an answer I don't know. My first question, though, would be whether you're using any Ruby version managers (rvm, rbenv)?

On 4 Jun 2014, at 7:05, Pixelbelichter wrote:

Hi,

Slogger runs very fine for me! (I´m only using the Omnifocus Feature so far). Today i tried to install the fitbit feature.

sudo gem install fitgem Successfully installed fitgem-0.9.0 Parsing documentation for fitgem-0.9.0 1 gem installed

When running ./slogger --update-config it gives me the following error:

Initializing Slogger v2.1 (2.1.0.11)... /Users/USER/Documents/SW/Slogger/plugins/fitbit.rb:34:in require': cannot load such file -- fitgem (LoadError) from /Users/USER/Documents/SW/Slogger/plugins/fitbit.rb:34:in<top (required)>' from /Users/USER/Documents/SW/Slogger/slogger.rb:267:in require' from /Users/USER/Documents/SW/Slogger/slogger.rb:267:inblock in run_plugins' from /Users/USER/Documents/SW/Slogger/slogger.rb:259:in each' from /Users/USER/Documents/SW/Slogger/slogger.rb:259:inrun_plugins' from /Users/USER/Documents/SW/Slogger/slogger.rb:446:in <top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from ./slogger:18:in

'

Any Ideas? Thanks for your help!


Reply to this email directly or view it on GitHub: https://github.com/ttscoff/Slogger/issues/309

Pixelbelichter commented 10 years ago

no. i`m not using any managers... My ruby version is: ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13]

felciano commented 10 years ago

I'm seeing the same issue. Any suggestions?

felciano commented 10 years ago

Any suggestions how to debug this further? The following

ruby -e 'puts Gem::Specification.all_names'

shows the following gems are installed (among others)

fitgem-0.9.0
fitgem-0.8.0

and ruby -v returns

ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13]
jannae commented 10 years ago

I have the same issue. Running:

fitgem-0.9.0
ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13]

For the sake of consistency, here is my personal full error when running ./slogger --update-config:

Initializing Slogger v2.1 (2.1.0.11)...
/Users/jannae/Dropbox/code/libs/Slogger/plugins/fitbit.rb:34:in `require': cannot load such file -- fitgem (LoadError)
    from /Users/jannae/Dropbox/code/libs/Slogger/plugins/fitbit.rb:34:in `<top (required)>'
    from /Users/jannae/Dropbox/code/libs/Slogger/slogger.rb:267:in `require'
    from /Users/jannae/Dropbox/code/libs/Slogger/slogger.rb:267:in `block in run_plugins'
    from /Users/jannae/Dropbox/code/libs/Slogger/slogger.rb:259:in `each'
    from /Users/jannae/Dropbox/code/libs/Slogger/slogger.rb:259:in `run_plugins'
    from /Users/jannae/Dropbox/code/libs/Slogger/slogger.rb:446:in `<top (required)>'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from ./slogger:18:in `<main>'
jannae commented 10 years ago

FYI, I fixed this. modify the Gemfile in the root to add: gem 'fitgem'

Full file below for context (this has worked for me, I am now logging successfully to Day One):

source 'https://rubygems.org'

gem 'feed-normalizer'
gem 'twitter', '~> 5.3.0'
gem 'twitter_oauth'
gem 'json'
gem 'levenshtein'

gem 'nokogiri'
gem 'fitgem'

group :test do
  gem 'rake'
  gem 'rspec'
  gem 'vcr'
  gem 'webmock'
end
felciano commented 10 years ago

Yup, that did the trick for me too -- thank you @jannae. @ttscoff it might be worth documenting this since I expect plugins are somewhat out of your control. If a newly added plug in fails because of a missing gem, adding an explicit reference to the Gemfile may solve it.

@Pixelbelichter if this fixes it for you too maybe you could close this issue.

drallgood commented 10 years ago

That's a weird issue. Putting the dependency in the Gemfile totally fixes it, thought that shouldn't make any difference at all.

martinstreicher commented 9 years ago

This broke for me again today when running bundle update and fitgem went Installing fitgem 0.12.0 (was 0.10.0).