Slogger icon indicating copy to clipboard operation
Slogger copied to clipboard

Slogger and Mavericks not working.

Open andreaslau opened this issue 11 years ago • 16 comments

Hi

I had been using Slogger in Mountain Lion to great satisfaction.

However, Day One entries stop on Tuesday 22 (when I upgraded to Mavericks). I have also upgraded the Day One app (not sure if that is relevant).

I just checked Lingon and the .com.brettterpstra,Slogger is set to 23.57 every night, just like in Mountain Lion.

However, nothing is entered in Day One.

I would much appreciate any advice on this issue.

Thank you.

andreaslau avatar Oct 26 '13 08:10 andreaslau

Slogger is coming up on my projects to update for Mavericks. It’s likely just one or two of the plugins, if you run it from the command line you’ll be able to see the errors and pick them out. Feel free to report bugs at https://github.com/ttscoff/Slogger/issues

-Brett

On Oct 26, 2013, at 3:39 AM, andreaslau [email protected] wrote:

Hi

I had been using Slogger in Mountain Lion to great satisfaction.

However, Day One entries stop on Tuesday 22 (when I upgraded to Mavericks). I have also upgraded the Day One app (not sure if that is relevant).

I just checked Lingon and the .com.brettterpstra,Slogger is set to 23.57 every night, just like in Mountain Lion.

However, nothing is entered in Day One.

I would much appreciate any advice on this issue.

Thank you.

— Reply to this email directly or view it on GitHub.

ttscoff avatar Oct 26 '13 10:10 ttscoff

I'm getting the same problem. Fom the command line I got this:

$ ./slogger --timespan 5
Initializing Slogger v2.1 (2.1.0.5)...
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- twitter (LoadError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
    from /Users/martin/Applications/plugins/twitterlogger.rb:36:in `<top (required)>'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
    from /Users/martin/Applications/slogger.rb:240:in `block in run_plugins'
    from /Users/martin/Applications/slogger.rb:232:in `each'
    from /Users/martin/Applications/slogger.rb:232:in `run_plugins'
    from /Users/martin/Applications/slogger.rb:387:in `<top (required)>'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
    from ./slogger:18:in `<main>'

devilgate avatar Oct 29 '13 23:10 devilgate

From the command line, go to the directory Slogger is installed, and try the following:

$ sudo gem install bundler
$ bundle install 

Once that completes, run slogger again.

spiritofnine avatar Oct 30 '13 00:10 spiritofnine

Thanks. I tried that, with the following results:

$ bundle install
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/..
Installing multipart-post (1.2.0) 
Errno::EACCES: Permission denied - /Library/Ruby/Gems/2.0.0/build_info/multipart-post-1.2.0.info
An error occurred while installing multipart-post (1.2.0), and Bundler cannot continue.
Make sure that `gem install multipart-post -v '1.2.0'` succeeds before bundling.

So I tried prefixing the command with sudo, which gave:

$ sudo bundle install
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/..
Installing multipart-post (1.2.0) 
Installing faraday (0.8.7) 
Installing hpricot (0.8.6) 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb 
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/hpricot-0.8.6 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/hpricot-0.8.6/ext/fast_xs/gem_make.out

An error occurred while installing hpricot (0.8.6), and Bundler cannot continue.
Make sure that `gem install hpricot -v '0.8.6'` succeeds before bundling.

Next I tried doing the install that the above output recommended, which worked. but bundle install and sudo bundle install still give me the results above. So I'm at a loss.

devilgate avatar Oct 30 '13 22:10 devilgate

Have the Command line Xcode tools?

ttscoff avatar Oct 31 '13 00:10 ttscoff

Having the same issue for a new install, and let me preface it by saying I'm a complete terminal dummie who knows oh about, 3 different commands

cd /Users/mavric1298/Documents/slogger sudo gem install bundler Password: Successfully installed bundler-1.3.5 Parsing documentation for bundler-1.3.5 1 gem installed bundle install Fetching gem metadata from https://rubygems.org/........ Fetching gem metadata from https://rubygems.org/.. Installing multipart-post (1.2.0) Errno::EACCES: Permission denied - /Library/Ruby/Gems/2.0.0/build_info/multipart-post-1.2.0.info An error occurred while installing multipart-post (1.2.0), and Bundler cannot continue. Make sure that gem install multipart-post -v '1.2.0' succeeds before bundling.

mavric1298 avatar Oct 31 '13 07:10 mavric1298

The Xcode command-line tools fixed it. I installed them with xcode-select --install; and I still had to do sudo gem install multipart-post -v '1.2.0' and sudo gem install hpricot -v '0.8.6' before doing sudo bundle install. Though I think maybe if I had done sudo bundle install from the start, instead of just bundle install, then it would all have gone smoothly.

Anyway, Slogger is working again now. Many thanks.

devilgate avatar Oct 31 '13 23:10 devilgate

and mine was fixed with using rvm to run ruby 1.8.7

mavric1298 avatar Oct 31 '13 23:10 mavric1298

It also stopped working for me. Set up in lingon to execute /usr/bin/ruby /Volumes/Belbo/Development/personal/Slogger/slogger. Running this from the command line raised an error, dependencies not satisfied. Running /usr/local/bin/ruby /Volumes/Belbo/Development/personal/Slogger/slogger on the other hand works just fine... but launchd fails:

01/11/13 08:13:17,433 com.apple.launchd.peruser.501[323]: (com.brettterpstra.Slogger[13709]) Exited with code: 1)

I'm not sure how to fix the requirements issue, I guess gem is installing the gems for /usr/local/bin/ruby, and not /usr/bin/ruby which is the system default? That might do the trick, though, I'm also running gitlogger.rb and that works fine (prepended with /usr/bin/ruby)

bjornkri avatar Nov 01 '13 08:11 bjornkri

I ran the (below) to get slogger working in Mavericks again:

sudo gem install bundler

bundle install

I got the following result:

Fetching: bundler-1.3.5.gem (100%) Successfully installed bundler-1.3.5 Parsing documentation for bundler-1.3.5 Installing ri documentation for bundler-1.3.5 1 gem installed ALMBP:slogger andreaslauritzen$ bundle install Fetching gem metadata from https://rubygems.org/........ Fetching gem metadata from https://rubygems.org/.. Installing multipart-post (1.2.0) Errno::EACCES: Permission denied - /Library/Ruby/Gems/2.0.0/build_info/multipart-post-1.2.0.info An error occurred while installing multipart-post (1.2.0), and Bundler cannot continue. Make sure that gem install multipart-post -v '1.2.0' succeeds before bundling. ALMBP:slogger andreaslauritzen$

Then I ran: ./slogger

And got this result:

ALMBP:slogger andreaslauritzen$ ./slogger Initializing Slogger v2.1 (2.1.0.5)... /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require': cannot load such file -- twitter (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire' from /Users/andreaslauritzen/Slogger/plugins/twitterlogger.rb:36:in <top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require' from /Users/andreaslauritzen/Slogger/slogger.rb:240:inblock in run_plugins' from /Users/andreaslauritzen/Slogger/slogger.rb:232:in each' from /Users/andreaslauritzen/Slogger/slogger.rb:232:inrun_plugins' from /Users/andreaslauritzen/Slogger/slogger.rb:387:in <top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require' from ./slogger:18:in

' ALMBP:slogger andreaslauritzen$

Can anyone decipher what I need to do in order to get slogger running again in Mavericks?

andreaslau avatar Nov 06 '13 20:11 andreaslau

the bundle install command failed. Try

$ sudo bundle install

and then run slogger. That's what I had to do.

spiritofnine avatar Nov 06 '13 20:11 spiritofnine

Thanks

ALMBP:~ andreaslauritzen$ $ sudo bundle install -bash: $: command not found ALMBP:~ andreaslauritzen$

Then I get this

andreaslau avatar Nov 06 '13 21:11 andreaslau

Same problem here:

sudo gem install bundler

worked fine

sudo bundle install

lead to

Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/..
Installing multipart-post (1.2.0) 
Installing faraday (0.8.7) 
Installing hpricot (0.8.6) 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb 
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/hpricot-0.8.6 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/hpricot-0.8.6/ext/fast_xs/gem_make.out

An error occurred while installing hpricot (0.8.6), and Bundler cannot continue.
Make sure that `gem install hpricot -v '0.8.6'` succeeds before bundling.

XCode CLI was installed before upgrading to mavericks ...

Any hints would be highly appreciated.

Yours Marco

esamecar avatar Nov 07 '13 07:11 esamecar

If you had the same error as me, installing XCode again and updating it worked for me. I just ran sudo bundle install from the slogger folder and got bundle complete

Slogger seems to work now and all my configs were imported to Day One after running slogger in the terminal

andreaslau avatar Nov 07 '13 23:11 andreaslau

If yo have the Rdio plugin Installed it seems to fail for me. But Have now gotten Slogger to work with mavericks.

michaelBogen avatar Feb 22 '14 00:02 michaelBogen

I'm having problems installing on Mavericks get the following error even though I have xcode command line tools installed not sure how to proceed:

Installing multimap 1.1.3 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

/Users/username/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20150729-58546-1n8x7cu.rb extconf.rb

creating Makefile

make "DESTDIR=" clean

make "DESTDIR=" compiling nested_multimap_ext.c nested_multimap_ext.c:13:47: warning: implicit declaration of function 'RHASH' is invalid in C99 [-Wimplicit-function-declaration] r = (i < argc) ? rb_hash_aref(h, argv[i]) : RHASH(h)->ifnone; ^ nested_multimap_ext.c:13:57: error: member reference type 'int' is not a pointer r = (i < argc) ? rb_hash_aref(h, argv[i]) : RHASH(h)->ifnone; ~~~~~~~~ ^ 1 warning and 1 error generated. make: *** [nested_multimap_ext.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/username/.rvm/gems/ruby-2.2.1/gems/multimap-1.1.3 for inspection. Results logged to /Users/username/.rvm/gems/ruby-2.2.1/extensions/x86_64-darwin-14/2.2.0/multimap-1.1.3/gem_make.out An error occurred while installing multimap (1.1.3), and Bundler cannot continue. Make sure that gem install multimap -v '1.1.3' succeeds before bundling.

deverman avatar Jul 29 '15 04:07 deverman