Slogger
Slogger copied to clipboard
Slogger doesn't work
Hello guys, my name is Fabio and this is my first post.
I am italian and my english is poor so I hope you will understand my question.
I have installed slogger running
"sudo gem install bundler" and "bundle install".
I have updated my slogger configuration file, but if I run ./slogger I receive:
"iMac-di-Fabio:Slogger-master fabiomacori$ ./slogger
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:in parse': (<unknown>): found unexpected ':' while scanning a plain scalar at line 38 column 20 (Psych::SyntaxError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:inparse_stream'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:153:in parse' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:129:inload'
from /Users/fabiomacori/Documents/Scripts/Slogger-master/lib/configtools.rb:11:in block in load_config' from /Users/fabiomacori/Documents/Scripts/Slogger-master/lib/configtools.rb:11:inopen'
from /Users/fabiomacori/Documents/Scripts/Slogger-master/lib/configtools.rb:11:in load_config' from /Users/fabiomacori/Documents/Scripts/Slogger-master/slogger.rb:157:ininitialize'
from /Users/fabiomacori/Documents/Scripts/Slogger-master/slogger.rb:364:in new' from /Users/fabiomacori/Documents/Scripts/Slogger-master/slogger.rb:364: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:inrequire'
from ./slogger:18:in `
Unforunately I don't understand anything of programming so I don't know what to do. Any suggestion? Thank you for your help, regards
You have an error in your configuration file on line 38, I believe. What's on that line?
pinboard_feeds: [http://feeds.pinboard.in/rss/secret:f7c7aeb2099003df039e/u:fabiomacori/]
you are OF COURSE right
Try replacing that line with these 2 lines:
pinboard_feeds: - http://feeds.pinboard.in/rss/secret:f7c7aeb2099003df039e/u:fabiomacori/
Unfortunately pinboard breaks everything ;-)
Same error?
iMac-di-Fabio:Slogger-master fabiomacori$ ./slogger --update-config
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:in parse': (<unknown>): could not find expected ':' while scanning a simple key at line 24 column 3 (Psych::SyntaxError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:inparse_stream'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:153:in parse' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:129:inload'
from /Users/fabiomacori/Documents/Scripts/Slogger-master/lib/configtools.rb:11:in block in load_config' from /Users/fabiomacori/Documents/Scripts/Slogger-master/lib/configtools.rb:11:inopen'
from /Users/fabiomacori/Documents/Scripts/Slogger-master/lib/configtools.rb:11:in load_config' from /Users/fabiomacori/Documents/Scripts/Slogger-master/slogger.rb:157:ininitialize'
from /Users/fabiomacori/Documents/Scripts/Slogger-master/slogger.rb:364:in new' from /Users/fabiomacori/Documents/Scripts/Slogger-master/slogger.rb:364: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:inrequire'
from ./slogger:18:in `
As I delete the pinboard account i works
If I delete the square brackets I have
23:59:26 PinboardLogger: Getting Pinboard bookmarks for 71 feeds
/Users/fabiomacori/Documents/Scripts/Slogger-master/plugins/pinboardlogger.rb:52:in do_log': undefined methodeach' for #String:0x007fdc75b69a28 (NoMethodError)
from /Users/fabiomacori/Documents/Scripts/Slogger-master/slogger.rb:257:in block in run_plugins' from /Users/fabiomacori/Documents/Scripts/Slogger-master/slogger.rb:244:ineach'
from /Users/fabiomacori/Documents/Scripts/Slogger-master/slogger.rb:244:in run_plugins' from /Users/fabiomacori/Documents/Scripts/Slogger-master/slogger.rb:388: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:inrequire'
from ./slogger:18:in `
You still have a problem in your config. Make sure the Pinboard section looks exactly like this, with the same levels of indentation:
PinboardLogger:
pinboard_feeds:
- http://feeds.pinboard.in/rss/secret:f7c7aeb2099003df039e/u:fabiomacori/
Thank you
I had a very similar problem with my config file, in the BlogLogger section. I was perhaps confused by the comments in the config file that say "blog_feeds is an array of feeds separated by commas, a single feed is fine, but it should be inside of brackets []" My use of said brackets for a single feed caused an error very like the one described in this thread, which was fixed in a very similar fashion. Anyway, thanks for the info in this thread!