Open timtyson opened 10 years ago
I just updated the require statements in the levenshtien bundle, could
you update your installation and try again? If you installed via git,
you should be able to just run git pull origin master
.
-Brett
On 29 Jun 2014, at 11:00, timtyson wrote:
Fixed previous issue, Thx!
When running ./slogger --update-config I get this error: /Users/timtyson/Desktop/Slogger-master/lib/levenshtein-0.2.2/lib/levenshtein.rb:3:in
require': cannot load such file -- levenshtein/version (LoadError) from /Users/timtyson/Desktop/Slogger-master/lib/levenshtein-0.2.2/lib/levenshtein.rb:3:in
<top (required)>' from /Users/timtyson/Desktop/Slogger-master/slogger.rb:34:inrequire' from /Users/timtyson/Desktop/Slogger-master/slogger.rb:34: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 `' I have this file in that location mentioned in the error message: /Users/timtyson/Desktop/Slogger-master/lib/levenshtein-0.2.2/lib/levenshtein/levenshtein_fast.bundle not levenshtein.rb:3
Is this part of the Xcode 5.1 bug? Should I try that work around mentioned in the known issues with Xcode 5.1?
Reply to this email directly or view it on GitHub: https://github.com/ttscoff/Slogger/issues/313
Thx. Fixed that, but fixing one problem leads to 5 more! Amazingly, I figure out most of them, I think! But... :)
I think I was having syntax errors in the config section of Bloglogger, Flickrlogger, and twitter logger. I don't know what YAML syntax looks like and searches haven't been too helpful. But I think I fixed those:
'blog_feeds' => ['http://www.timtyson.us/feed/'], ---in BlogLogger.rb 'flickr_ids' => '11176541@N00', ---in Flickrlogger.rb 'twitter_users' => 'tim_sausalitoca', ---in twitterlogger.rb
But now, I'm getting this error in the terminal:
/Users/timtyson/Documents/Scripts/Slogger-master/plugins/BlogLogger.rb:52:in do_log': undefined method
join' for "http://www.timtyson.us/feed/":String (NoMethodError)
from /Users/timtyson/Documents/Scripts/Slogger-master/slogger.rb:284:in block in run_plugins' from /Users/timtyson/Documents/Scripts/Slogger-master/slogger.rb:271:in
each'
from /Users/timtyson/Documents/Scripts/Slogger-master/slogger.rb:271:in run_plugins' from /Users/timtyson/Documents/Scripts/Slogger-master/slogger.rb:447: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 `
I'm clueless on this one. Maybe my syntax in the config is still wrong???
Just to be clear: you shouldn't be editing anything in the rb files. All configuration should be done in slogger_config
in the root directory.
Show me the full section for your Bloglogger config from the slogger_config file.
Ooops! OK. I put the rb files back exactly as they were. (Told you I know NOTHING about what I'm doing!)
Here is the Bloglogger in the slogger_config:
BlogLogger:
description:
- Logs individual blog posts for the current timespan using RSS feeds
- blog_feeds is an array of feeds separated by commas, a single feed is fine, but
it should be inside of brackets `[]`
- markdownify_posts (true/false) will convert links and emphasis in the post to
Markdown for display in Day One
- star_posts (true/false) will create a starred post for new RSS posts
- get_most_popular (true/false) create a separate entry showing the day's top 5
most tweeted posts from recent entries
- 'blog_tags are tags you want to add to every entry, e.g. "#social #rss"'
BlogLogger_last_run: Sun Jun 29 11:03:18 2014
blog_feeds: http://www.timtyson.us/feed/
markdownify_posts: true
save_image: true
star_posts: false
get_most_popular: false
blog_tags: '#social #blogging'
Put square brackets around the blog_feeds
value:
blog_feeds: [http://www.timtyson.us/feed/]
Done. And the message says:
/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 19 column 16 (Psych::SyntaxError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:in
parse_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:in
load'
from /Users/timtyson/Documents/Scripts/Slogger-master/lib/configtools.rb:11:in block in load_config' from /Users/timtyson/Documents/Scripts/Slogger-master/lib/configtools.rb:11:in
open'
from /Users/timtyson/Documents/Scripts/Slogger-master/lib/configtools.rb:11:in load_config' from /Users/timtyson/Documents/Scripts/Slogger-master/slogger.rb:184:in
initialize'
from /Users/timtyson/Documents/Scripts/Slogger-master/slogger.rb:423:in new' from /Users/timtyson/Documents/Scripts/Slogger-master/slogger.rb:423: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 `
What's on line 19 of slogger_config
?
blog_feeds: [http://www.timtyson.us/feed/]
Ah, my bad. Needs quotes:
blog_feeds: [ "http://www.timtyson.us/feed/" ]
Flickr just looks at the last 24 hours, you can use -t 7
to go back 7 days. This will affect all the plugins that are running. To just grab 7 (or whatever number) of days from Flickr, run ./slogger -o flickr -t 7
.
Re: Twitter... If you're working on a local Mac, the page should open. There's not really a fallback function included in Slogger.
I misunderstood the command line prompt to mean, when you have the authorization code, press enter to continue. I hit enter and it opened the browser to Twitter for authorization. Worked! Awesome!
Is their a way to automate Slogger to run when I launch or quit Day One?
My only hesitation for using Day One was that it didn't pull in these very things that your code makes it get. I wanted a desktop collection of all of my digital footprints. Thanks for sharing this with everyone! This is awesome!
Slogger is meant to be run daily using launchd. See the README for setup instructions.
Fixed previous issue, Thx!
When running ./slogger --update-config I get this error: /Users/timtyson/Desktop/Slogger-master/lib/levenshtein-0.2.2/lib/levenshtein.rb:3:in'
require': cannot load such file -- levenshtein/version (LoadError) from /Users/timtyson/Desktop/Slogger-master/lib/levenshtein-0.2.2/lib/levenshtein.rb:3:in
<top (required)>' from /Users/timtyson/Desktop/Slogger-master/slogger.rb:34:inrequire' from /Users/timtyson/Desktop/Slogger-master/slogger.rb:34: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 `I have this file in that location mentioned in the error message: /Users/timtyson/Desktop/Slogger-master/lib/levenshtein-0.2.2/lib/levenshtein/levenshtein_fast.bundle and levenshtein.rb
I also ran chmod a+x slogger
Is this part of the Xcode 5.1 bug? Should I try that work around mentioned in the known issues with Xcode 5.1?