Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail with specific exception message, stating that soffice executable from LibreOffice cannot be found #44

Closed
gclsoft opened this issue Jan 20, 2015 · 4 comments
Assignees

Comments

@gclsoft
Copy link

gclsoft commented Jan 20, 2015

bogon:AVOSDemo apple$ w2m /Users/apple/Downloads/Ipad.docx 
/Users/apple/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/open3.rb:211:in `spawn': no implicit conversion of nil into String (TypeError)
    from /Users/apple/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/open3.rb:211:in `popen_run'
    from /Users/apple/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/open3.rb:206:in `popen2e'
    from /Users/apple/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/open3.rb:372:in `capture2e'
    from /Users/apple/.rvm/gems/ruby-2.0.0-p353@global/gems/word-to-markdown-1.1.1/lib/word-to-markdown.rb:67:in `run_command'
    from /Users/apple/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/gems/2.0.0/gems/word-to-markdown-1.1.1/lib/word-to-markdown/document.rb:88:in `raw_html'
    from /Users/apple/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/gems/2.0.0/gems/word-to-markdown-1.1.1/lib/word-to-markdown/document.rb:20:in `tree'
    from /Users/apple/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/gems/2.0.0/gems/word-to-markdown-1.1.1/lib/word-to-markdown/converter.rb:79:in `semanticize_font_styles!'
    from /Users/apple/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/gems/2.0.0/gems/word-to-markdown-1.1.1/lib/word-to-markdown/converter.rb:19:in `convert!'
    from /Users/apple/.rvm/gems/ruby-2.0.0-p353@global/gems/word-to-markdown-1.1.1/lib/word-to-markdown.rb:31:in `initialize'
    from /Users/apple/.rvm/gems/ruby-2.0.0-p353@global/gems/word-to-markdown-1.1.1/bin/w2m:10:in `new'
    from /Users/apple/.rvm/gems/ruby-2.0.0-p353@global/gems/word-to-markdown-1.1.1/bin/w2m:10:in `<top (required)>'
    from /Users/apple/.rvm/rubies/ruby-2.0.0-p353/bin/w2m:23:in `load'
    from /Users/apple/.rvm/rubies/ruby-2.0.0-p353/bin/w2m:23:in `<main>'
    from /Users/apple/.rvm/gems/ruby-2.0.0-p353@global/bin/ruby_executable_hooks:15:in `eval'
    from /Users/apple/.rvm/gems/ruby-2.0.0-p353@global/bin/ruby_executable_hooks:15:in `<main>'
@benbalter
Copy link
Owner

the Gem can't find the soffice executable. Is LibreOffice Installed?.

@seanwash
Copy link

seanwash commented Feb 9, 2015

Hey @benbalter, Installing LibreOffice fixed this error for me.

Thanks!

@jesperronn
Copy link

Hi I also ran into this issue without realizing I had to install LibreOffice. Suggestion: Fail with specific exception message, stating that soffice executable from LibreOffice cannot be found

@benbalter benbalter changed the title run failed:open3.rb:211:in `spawn': no implicit conversion of nil into String (TypeError) Fail with specific exception message, stating that soffice executable from LibreOffice cannot be found Jun 5, 2015
@benbalter benbalter reopened this Jun 5, 2015
@benbalter benbalter self-assigned this Jun 5, 2015
@benbalter
Copy link
Owner

Fixed in v1.1.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants