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

unoconv: UnoException during export phase #66

Closed
mpdperson opened this issue Jul 6, 2012 · 10 comments
Closed

unoconv: UnoException during export phase #66

mpdperson opened this issue Jul 6, 2012 · 10 comments

Comments

@mpdperson
Copy link

When I try to convert anything to swf I get this god awful error message:

unoconv: UnoException during export phase: Unable to store document to file:///buildblob/shonuff.swf with properties ((com.sun.star.beans.PropertyValue){ Name = (string)"FilterName", Handle = (long)0x0, Value = (any){ (string)"draw_flash_Export" }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE }, (com.sun.star.beans.PropertyValue){ Name = (string)"OutputStream", Handle = (long)0x0, Value = (any){ (com.sun.star.uno.XInterface)0x1bbd4d68{, supportedInterfaces={com.sun.star.lang.XTypeProvider,com.sun.star.io.XOutputStream}} }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE }, (com.sun.star.beans.PropertyValue){ Name = (string)"FilterData", Handle = (long)0x0, Value = (any){ ([]any){} }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE }, (com.sun.star.beans.PropertyValue){ Name = (string)"Overwrite", Handle = (long)0x0, Value = (any){ (boolean)true }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE }). Exception:

I have no idea what I did wrong. Any suggestions on how to get this to work? I have the following of open office installed:

openoffice.org-core.x86_64
openoffice.org-headless.x86_64
openoffice.org-pyuno.x86_64
openoffice.org-sdk.x86_64
openoffice.org-writer.x86_64

Am I missing anything?

@mpdperson
Copy link
Author

Oh I'm also on Centos OS

@therox
Copy link

therox commented Jul 12, 2012

Same thing on RHEL6 when converting from pdf:

unoconv -f docx 123.pdf
unoconv: UnoException during export phase: Unable to store document to file:///Distr/123.docx with properties ((com.sun.star.beans.PropertyValue){ Name = (string)"FilterName", Handle = (long)0x0, Value = (any){ (string)"Office Open XML Text" }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE }, (com.sun.star.beans.PropertyValue){ Name = (string)"OutputStream", Handle = (long)0x0, Value = (any){ (com.sun.star.uno.XInterface)0x2bb2a98{, supportedInterfaces={com.sun.star.lang.XTypeProvider,com.sun.star.io.XOutputStream}} }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE }, (com.sun.star.beans.PropertyValue){ Name = (string)"FilterData", Handle = (long)0x0, Value = (any){ ([]any){} }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE }, (com.sun.star.beans.PropertyValue){ Name = (string)"Overwrite", Handle = (long)0x0, Value = (any){ (boolean)true }, State = (com.sun.star.beans.PropertyState)DIRECT_VALUE }). Exception:

@dagwieers
Copy link
Member

Hmm, I am interested to have one of these files. Are you using the latest 0.5 release ? Or maybe the master branch ? It is really necessary for me to know what version you are using.

@ghost ghost assigned dagwieers Jul 18, 2012
@julienmru
Copy link

I have the exact same issue, only with docx or docx7 (conversion to doc or pdf works fine).

openoffice.org-base.x86_64                 1:3.1.1-19.10.el5_8.4       installed
openoffice.org-calc.x86_64                 1:3.1.1-19.10.el5_8.4       installed
openoffice.org-core.x86_64                 1:3.1.1-19.10.el5_8.4       installed
openoffice.org-headless.x86_64             1:3.1.1-19.10.el5_8.4       installed
openoffice.org-pyuno.x86_64                1:3.1.1-19.10.el5_8.4       installed
openoffice.org-ure.x86_64                  1:3.1.1-19.10.el5_8.4       installed
openoffice.org-writer.x86_64               1:3.1.1-19.10.el5_8.4       installed
unoconv.noarch                             0.5-1.el5.rf                installed

Original file is here: http://cdn.lexpressproperty.com/images/93fb4ddea91d405740f6b57bcf8d4d4f.odt.

@dagwieers
Copy link
Member

Works fine for me using the default RHEL6 LibreOffice:

[dag@moria tests]$ unoconv -f docx 93fb4ddea91d405740f6b57bcf8d4d4f.odt 
[dag@moria tests]$ ls -l 93fb4ddea91d405740f6b57bcf8d4d4f.docx 
-rw-rw-r--. 1 dag dag 25265 Sep  5 11:59 93fb4ddea91d405740f6b57bcf8d4d4f.docx
[dag@moria tests]$ unoconv -f docx7 93fb4ddea91d405740f6b57bcf8d4d4f.odt 
[dag@moria tests]$ ls -l 93fb4ddea91d405740f6b57bcf8d4d4f.docx 
-rw-rw-r--. 1 dag dag 25238 Sep  5 11:59 93fb4ddea91d405740f6b57bcf8d4d4f.docx
[dag@moria tests]$ rpm -qa libreoffice-\*
libreoffice-draw-3.4.5.2-16.1.el6_3.x86_64
libreoffice-wiki-publisher-3.4.5.2-16.1.el6_3.x86_64
libreoffice-impress-3.4.5.2-16.1.el6_3.x86_64
libreoffice-presentation-minimizer-3.4.5.2-16.1.el6_3.x86_64
libreoffice-calc-3.4.5.2-16.1.el6_3.x86_64
libreoffice-emailmerge-3.4.5.2-16.1.el6_3.x86_64
libreoffice-graphicfilter-3.4.5.2-16.1.el6_3.x86_64
libreoffice-report-builder-3.4.5.2-16.1.el6_3.x86_64
libreoffice-ure-3.4.5.2-16.1.el6_3.x86_64
libreoffice-math-3.4.5.2-16.1.el6_3.x86_64
libreoffice-rhino-3.4.5.2-16.1.el6_3.x86_64
libreoffice-sdk-doc-3.4.5.2-16.1.el6_3.x86_64
libreoffice-xsltfilter-3.4.5.2-16.1.el6_3.x86_64
libreoffice-writer-3.4.5.2-16.1.el6_3.x86_64
libreoffice-pdfimport-3.4.5.2-16.1.el6_3.x86_64
libreoffice-langpack-nl-3.4.5.2-16.1.el6_3.x86_64
libreoffice-javafilter-3.4.5.2-16.1.el6_3.x86_64
libreoffice-presenter-screen-3.4.5.2-16.1.el6_3.x86_64
libreoffice-ogltrans-3.4.5.2-16.1.el6_3.x86_64
libreoffice-base-3.4.5.2-16.1.el6_3.x86_64
libreoffice-bsh-3.4.5.2-16.1.el6_3.x86_64
libreoffice-testtools-3.4.5.2-16.1.el6_3.x86_64
libreoffice-headless-3.4.5.2-16.1.el6_3.x86_64
libreoffice-core-3.4.5.2-16.1.el6_3.x86_64
libreoffice-langpack-de-3.4.5.2-16.1.el6_3.x86_64
libreoffice-opensymbol-fonts-3.4.5.2-16.1.el6_3.noarch
libreoffice-pyuno-3.4.5.2-16.1.el6_3.x86_64
libreoffice-langpack-fr-3.4.5.2-16.1.el6_3.x86_64
libreoffice-sdk-3.4.5.2-16.1.el6_3.x86_64
libreoffice-langpack-en-3.4.5.2-16.1.el6_3.x86_64

Or using the upstream LibreOffice packages:

[dag@moria tests]$ UNO_PATH=/opt/libreoffice3.4 unoconv -f docx 93fb4ddea91d405740f6b57bcf8d4d4f.odt 
[dag@moria tests]$ ls -l 93fb4ddea91d405740f6b57bcf8d4d4f.docx 
-rw-rw-r--. 1 dag dag 143839 Sep  5 12:01 93fb4ddea91d405740f6b57bcf8d4d4f.docx
[dag@moria tests]$ UNO_PATH=/opt/libreoffice3.5 unoconv -f docx 93fb4ddea91d405740f6b57bcf8d4d4f.odt 
[dag@moria tests]$ ls -l 93fb4ddea91d405740f6b57bcf8d4d4f.docx 
-rw-rw-r--. 1 dag dag 143853 Sep  5 12:01 93fb4ddea91d405740f6b57bcf8d4d4f.docx
[dag@moria tests]$ UNO_PATH=/opt/libreoffice3.6 unoconv -f docx 93fb4ddea91d405740f6b57bcf8d4d4f.odt 
[dag@moria tests]$ ls -l 93fb4ddea91d405740f6b57bcf8d4d4f.docx 
-rw-rw-r--. 1 dag dag 143859 Sep  5 12:01 93fb4ddea91d405740f6b57bcf8d4d4f.docx

Please use a recent LibreOffice and take the unoconv master branch for testing. We are preparing a v0.6 release that fixes most of the known issues.

@dagwieers
Copy link
Member

BTW To test the latest master branch, you can simply clone the Git repository and run the unoconv script directly from the tree. There is no need to install a package or copy binaries/libraries. If you're done testing, you can remove the Git tree from the system and everything is as it was before.

And you don't need root-access either.

@dagwieers
Copy link
Member

I am closing this issue because we lack information to troubleshoot this. We cannot reproduce it and suspect either that unoconv is an older release, or instead the environment (LibreOffice, OpenOffice, OS, configuration) is different. Without more information it is hard to tell. Please reopen if you can still reproduce and interested in troubleshooting...

@leetayres
Copy link

I was able to recreate the above symptom while converting doc, xls, and ppt documents with the command 'sudo /usr/bin/unoconv -f txt -o '

I determined that my problem was the result of the listener not having write permission to the target location. The listener, as I came to discover, was started as me rather than root. When I killed the listener and ran unoconv without one I had no problem. Also when I started the listener as root I was perfectly able to write the output file.

I dont assert that this ticket should be reopened, but since my initial searching bought me here I thought this update may be useful to others.

Also, in the event that this is of any use to you:

$ unoconv -V
unoconv 0.6
Written by Dag Wieers dag@wieers.com
Homepage at http://dag.wieers.com/home-made/unoconv/

platform posix/linux2
python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
[GCC 4.4.5]
OpenOffice.org 3.2

$ uname -a
Linux chuck 2.6.32-5-686 #1 SMP Sun Sep 23 09:49:36 UTC 2012 i686 GNU/Linux

@winstonf88
Copy link

I had the same problem, turns out that I had a LibreOffice Writer document open.
Closed the doc and it worked fine.

@FelixSchwarz
Copy link

Just fyi: I'm seeing this problem on CentOS 6 with unoconv 0.6-8 (recompiled package from Fedora) and LibreOffice 4.0. The problem disappears when I'm not using '--stdout'. Also the problem does not happen on Fedora 20 with LibreOffice 4.2.

As the unoconv source code is exactly the same on both systems I assume this is a LibreOffice problem which was fixed in 4.1 or 4.2.

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

No branches or pull requests

7 participants