tricon / instapaper-to-pdf

Archive your Instapaper items to PDFs. With support for importing to DEVONthink!
33 stars 3 forks source link

The script doesn't work for me #2

Closed siancu closed 12 years ago

siancu commented 12 years ago

I get the following error when running the script:

Stelians-MacBook-Pro:instapaper-to-pdf stelianiancu$ ruby instapaper_to_pdf.rb 
Logging in...
Printing a PDF for "Cocoa Samurai: Clang Source Annotations"
/Users/stelianiancu/.rvm/gems/ruby-1.9.3-p194/gems/htmldoc-0.2.3/lib/htmldoc.rb:182:in `execute': Invalid program path: htmldoc (PDF::HTMLDocException)
    from /Users/stelianiancu/.rvm/gems/ruby-1.9.3-p194/gems/htmldoc-0.2.3/lib/htmldoc.rb:154:in `generate'
    from instapaper_to_pdf.rb:62:in `block in <main>'
    from instapaper_to_pdf.rb:49:in `each'
    from instapaper_to_pdf.rb:49:in `<main>'

Any ideas why? BTW, I had to manually install mechanize and htmldoc. I am trying to save the PDF files into ~/Desktop/Instapaper.

Thanks!

tricon commented 12 years ago

@siancu, If you run bundle install from within the project directory, it'll install the HTMLDOC, Nokogiri, and Mechanize gems for you.

I forgot to mention that you'll need to install the HTMLDOC binary prior to using this script as the aforementioned gem is just a Ruby wrapper around this binary. I have since updated the README to include this information, so thanks for reporting this!

You can install it via Homebrew with: brew install htmldoc.

tricon commented 12 years ago

Didn't mean to close this. Let me know if this resolves your issue.

siancu commented 12 years ago

Thanks, it does solve the problem. Maybe you should mention the bundle install command in the Readme as well.

Thanks!