Git Product home page Git Product logo

Comments (18)

emorris avatar emorris commented on June 30, 2024

same here.

from docsplit.

emorris avatar emorris commented on June 30, 2024

i used this patch and it fixed the issue for me ... in the Gemfile

gem "docsplit", :git => "https://github.com/senner/docsplit.git"

from docsplit.

aponsin avatar aponsin commented on June 30, 2024

Yep, that definitely works much better that way :) Thx ! Has anyone done a PR for that fix?

from docsplit.

knowtheory avatar knowtheory commented on June 30, 2024

yep, @emorris put one in. And now that i see the problem i will get this merged and pushed out. Thanks to both of you, and sorry for the bug!

from docsplit.

aponsin avatar aponsin commented on June 30, 2024

Great, thank you :)

from docsplit.

senner avatar senner commented on June 30, 2024

This was also reported on #68

from docsplit.

jreed72 avatar jreed72 commented on June 30, 2024

please don't hameer me, I'm just learning how to work Plone and all the wonderfull tools that come with it... Python, Rubt gems, eggs etc etc etc. And also not a strong Unix base either. Having said all that I'm slowly getting there. However, I have Doc.Viewer in Plone and want to install the patch above to get it working for Office files. What I need is a little more direction on how to install the fix. I used the command above, but returns no file or dir error. I'm guessing there is more to this process and it would be appreciated for some further direction.
thanks

from docsplit.

senner avatar senner commented on June 30, 2024

Jody, i responded on the plone thread.

from docsplit.

intellisense avatar intellisense commented on June 30, 2024

I am also having the same issue. I have libreoffice 4 installed on Amazon Ec2 Ubuntu and docsplit version is 0.7.2. The error i am having is

Could not find the main class: /usr/lib/libreoffice. Program will exit.

I tried to this as solution mentioned in this thread:

gem "docsplit", :git => "https://github.com/senner/docsplit.git"

But i got following error:

-bash: https://github.com/senner/docsplit.git: No such file or directory

Can anyone help to guide us a step by step solution?

OK I Followed the steps of senner

On the command line:
find / -name pdf_extractor.rb

It should report back a file location. At the command line  cd to the folder above:

cd  **FOLDERABOVE**
rm pdf_extractor.rb
wget https://raw.github.com/senner/docsplit/79b75cdc639a724fa611e8a37423bad56adba05a/lib/docsplit/pdf_extractor.rb

Now i am getting this error:

Exception: [Java framework] Error in function createSettingsDocument (elements.cxx).
javaldx failed!
Warning: failed to read path from javaldx

Thanks!

from docsplit.

malev avatar malev commented on June 30, 2024

is this fixed?

from docsplit.

jreed72 avatar jreed72 commented on June 30, 2024

Yes.

Although I do apologize, this was a long time ago, and I do not remember
the exact steps to fix it. At the time I think Nathan help me out with
it.

Since then I have set up a Dev server for Plone and used LibreOffice and
Documents viewer in Plone and not experienced any further issue.

Jody Reed

IS Assistant

LMG Finance Inc.

Ph. 877.806.6247

Fx. 877.806.6249


From: Marcos Vanetta [mailto:[email protected]]
Sent: Wednesday, October 16, 2013 11:08 AM
To: documentcloud/docsplit
Cc: Jody Reed
Subject: Re: [docsplit] Unable to use LibreOffice on version 0.7.2 ->
Could not find or load main class .usr.lib.libreoffice (#71)

is this fixed?

Reply to this email directly or view it on GitHub
<#71 (comment)
19> .
<https://github.com/notifications/beacon/m9FORteqt_VKaxhIibBN3J-p9efCRlQ
Es2i5SS-JQYraGHKPVuxBTc2OR3_4EHaZ.gif>

from docsplit.

knowtheory avatar knowtheory commented on June 30, 2024

No, but thank you for the reminder. have a copy of libreoffice4.1 installing on osx right now. will get to testing it on ubuntu12.04 this afternoon.

from docsplit.

knowtheory avatar knowtheory commented on June 30, 2024

Oh, fine, if that's the case, i'll check with Nathan, and close this out, once we're clear.

from docsplit.

malev avatar malev commented on June 30, 2024

I'm on Ubuntu 13.04, with LibreOffice 4.0.2.2 and docsplit (0.7.2) and I'm still getting:

Error: Could not find or load main class .usr.lib.libreoffice
/home/deployer/apps/mapa76.info/hephaestus/shared/bundle/ruby/1.9.1/gems/docsplit-0.7.2/lib/docsplit/pdf_extractor.rb:144:in `run_jod'
/home/deployer/apps/mapa76.info/hephaestus/shared/bundle/ruby/1.9.1/gems/docsplit-0.7.2/lib/docsplit/pdf_extractor.rb:123:in `block in extract'
/home/deployer/apps/mapa76.info/hephaestus/shared/bundle/ruby/1.9.1/gems/docsplit-0.7.2/lib/docsplit/pdf_extractor.rb:104:in `each'
/home/deployer/apps/mapa76.info/hephaestus/shared/bundle/ruby/1.9.1/gems/docsplit-0.7.2/lib/docsplit/pdf_extractor.rb:104:in `extract'
/home/deployer/apps/mapa76.info/hephaestus/shared/bundle/ruby/1.9.1/gems/docsplit-0.7.2/lib/docsplit.rb:58:in `extract_pdf'
/home/deployer/apps/mapa76.info/hephaestus/shared/bundle/ruby/1.9.1/gems/docsplit-0.7.2/lib/docsplit/transparent_pdfs.rb:16:in `block in ensure_pdfs'
/home/deployer/apps/mapa76.info/hephaestus/shared/bundle/ruby/1.9.1/gems/docsplit-0.7.2/lib/docsplit/transparent_pdfs.rb:10:in `map'
/home/deployer/apps/mapa76.info/hephaestus/shared/bundle/ruby/1.9.1/gems/docsplit-0.7.2/lib/docsplit/transparent_pdfs.rb:10:in `ensure_pdfs'
/home/deployer/apps/mapa76.info/hephaestus/releases/20131016172832/lib/resque/normalization_task.rb:26:in `block in perform'
/home/deployer/.rbenv/versions/1.9.3-p448/lib/ruby/1.9.1/tempfile.rb:320:in `open'
/home/deployer/apps/mapa76.info/hephaestus/releases/20131016172832/lib/resque/normalization_task.rb:145:in `create_tempfile'
/home/deployer/apps/mapa76.info/hephaestus/releases/20131016172832/lib/resque/normalization_task.rb:18:in `perform'

from docsplit.

intellisense avatar intellisense commented on June 30, 2024

Its not fixed. It didn't work out for me on LibreOffice 4.0 so i degraded to the lower version.

from docsplit.

skl avatar skl commented on June 30, 2024

Also seeing this on SLES 11 x64 SP1:

# uname -a
Linux - 3.0.42-0.7-default #1 SMP Tue Oct 9 11:58:45 UTC 2012 (a8dc443) x86_64 x86_64 x86_64 GNU/Linux

# cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 1

# soffice --version
LibreOffice 4.0-5

# ls -lh `which soffice`
/usr/bin/soffice -> ../lib64/libreoffice/program/soffice

# docsplit pdf <filename>
Error: Could not find or load main class .usr

from docsplit.

senner avatar senner commented on June 30, 2024

That should be the same problem as the others. docpslit pdf_extractor.rb isn't picking up the version correctly. This pull request was never merged: #68

from docsplit.

malev avatar malev commented on June 30, 2024

I've monkey patched #68 and it worked awesome!!
This is my environment:

hidden : lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 13.04
Release:        13.04
Codename:       raring
hidden : dpkg -l | grep libreoffice
ii  libreoffice                          1:4.0.2-0ubuntu1                       amd64        office productivity suite (metapackage)

from docsplit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.