Slogger icon indicating copy to clipboard operation
Slogger copied to clipboard

Problems installing fitbit

Open Pixelbelichter opened this issue 10 years ago • 9 comments

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!

Pixelbelichter avatar Jun 04 '14 14:06 Pixelbelichter

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

ttscoff avatar Jun 04 '14 15:06 ttscoff

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

Pixelbelichter avatar Jun 04 '14 16:06 Pixelbelichter

I'm seeing the same issue. Any suggestions?

felciano avatar Jun 10 '14 05:06 felciano

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]

felciano avatar Jun 12 '14 02:06 felciano

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 avatar Jun 15 '14 14:06 jannae

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

jannae avatar Jun 15 '14 16:06 jannae

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.

felciano avatar Jun 15 '14 23:06 felciano

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

drallgood avatar Jul 18 '14 23:07 drallgood

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

martinstreicher avatar May 27 '15 16:05 martinstreicher