Bug#501440: unoconv: The provided document cannot be converted to the desired format

2008-12-13 Thread Vincent Bernat
severity 501440 minor
thanks

OoO La nuit ayant déjà recouvert d'encre ce jour du vendredi 28 novembre
2008, vers 23:50, Joey Schulze j...@infodrom.org disait :

 Executive summary: I assume that very few people will trigger the same
 problem which is very obscure anyway.  I further assume that you can
 close this bug, at least I have been able to work around it.

Hi Joey!

Thanks for the report.  I leave the bug open since it  will be easier to
find this way. I just downgrade it.
-- 
panic(Tell me what a watchpoint trap is, and I'll then 
deal with such a beast...);
2.2.16 /usr/src/linux/arch/arch/sparc/kernel/traps.c


pgpxHdNM65Wmt.pgp
Description: PGP signature


Bug#501440: unoconv: The provided document cannot be converted to the desired format

2008-11-28 Thread Joey Schulze
Executive summary: I assume that very few people will trigger the same
problem which is very obscure anyway.  I further assume that you can
close this bug, at least I have been able to work around it.

Vincent Bernat wrote:
 OoO Peu  avant le début de  l'après-midi du mardi 07  octobre 2008, vers
 13:36, Joey Schulze [EMAIL PROTECTED] disait :
 
  I have a problem converting some ODT files into PDF.
 
  $ unoconv -f pdf foo.odt
 
  works fine as user joey who has logged in via X.
 
  However, running this as user www-data results in the following error 
  message:
 
  sh-3.2$ unoconv -v -f pdf foo.odt 
  Input file: foo.odt
  Selected output format: Portable Document Format [.pdf]
  Selected ooffice filter: writer_pdf_Export
  Used doctype: document
  unoconv: UnoException during conversion: 
  The provided document cannot be converted to the desired format.
 
 Hi Joey!
 
 Unfortunately,  I  have  no real  idea  on  why  you get  this  failure.
 OpenOffice.org UNO component  seems to be a low  priority component. For
 example,  on my  system, with  3.0 from  experimental, if  I  do import
 pyuno in a Python console, I just get:
  SystemError: dynamic module not initialized properly
 
 unoconv being  just a wrapper around  this library, it  inherits all the
 bugs that can happen.

Yep, I noticed.

I'm now working around this problem by running OpenOffice.org as
listener in the background on a headless X server:

soffice -display :0.0 -norestore -headless \

-accept=socket,host=localhost,port=2002;urp;StarOffice.ComponentContext

With this in background unoconv does not has problems anymore.

 Which version of OpenOffice.org do you use? You might try OpenOffice.org
 From experimental (a new version was released a week ago, I did not test
 it though).

I used the one from testing/lenny.

Regards,

Joey

-- 
If you come from outside of Finland, you live in wrong country.
-- motd of irc.funet.fi

Please always Cc to me when replying to me on the lists.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#501440: unoconv: The provided document cannot be converted to the desired format

2008-10-11 Thread Vincent Bernat
OoO Peu  avant le début de  l'après-midi du mardi 07  octobre 2008, vers
13:36, Joey Schulze [EMAIL PROTECTED] disait :

 I have a problem converting some ODT files into PDF.

 $ unoconv -f pdf foo.odt

 works fine as user joey who has logged in via X.

 However, running this as user www-data results in the following error message:

 sh-3.2$ unoconv -v -f pdf foo.odt 
 Input file: foo.odt
 Selected output format: Portable Document Format [.pdf]
 Selected ooffice filter: writer_pdf_Export
 Used doctype: document
 unoconv: UnoException during conversion: 
 The provided document cannot be converted to the desired format.

Hi Joey!

Unfortunately,  I  have  no real  idea  on  why  you get  this  failure.
OpenOffice.org UNO component  seems to be a low  priority component. For
example,  on my  system, with  3.0 from  experimental, if  I  do import
pyuno in a Python console, I just get:
 SystemError: dynamic module not initialized properly

unoconv being  just a wrapper around  this library, it  inherits all the
bugs that can happen.

You  can try  the script  provided  in the  last comment  of #491456  to
acknowledge the fact that the  problem resides in UNO component. Another
thing you can try is to remove .openffice* from www-data home.

Which version of OpenOffice.org do you use? You might try OpenOffice.org
From experimental (a new version was released a week ago, I did not test
it though).
-- 
I AM NOT A LICENSED HAIRSTYLIST
I AM NOT A LICENSED HAIRSTYLIST
I AM NOT A LICENSED HAIRSTYLIST
-+- Bart Simpson on chalkboard in episode AABF04


pgpzZMr2iQibv.pgp
Description: PGP signature


Bug#501440: unoconv: The provided document cannot be converted to the desired format

2008-10-07 Thread Joey Schulze
Package: unoconv
Version: 0.3-3

I have a problem converting some ODT files into PDF.

$ unoconv -f pdf foo.odt

works fine as user joey who has logged in via X.

However, running this as user www-data results in the following error message:

sh-3.2$ unoconv -v -f pdf foo.odt 
Input file: foo.odt
Selected output format: Portable Document Format [.pdf]
Selected ooffice filter: writer_pdf_Export
Used doctype: document
unoconv: UnoException during conversion: 
The provided document cannot be converted to the desired format.
sh-3.2$ 

The last line of strace are:

futex(0x8370b44, FUTEX_WAIT_PRIVATE, 1, NULL) = 0
futex(0x8370b70, FUTEX_WAKE_PRIVATE, 1) = 0
write(2, unoconv: UnoException during conv..., 41unoconv: UnoException during 
conversion: ) = 41
write(2, \n..., 1
)= 1
write(2, The provided document cannot be c..., 64The provided document cannot 
be converted to the desired format.) = 64
write(2, \n..., 1
)= 1
futex(0x82b418c, FUTEX_CMP_REQUEUE_PRIVATE, 1, 2147483647, 0x82b41b8, 10) = 1
futex(0x82b41b8, FUTEX_WAKE_PRIVATE, 1) = 1
rt_sigaction(SIGINT, {SIG_DFL}, {0x80fb6a0, [], 0}, 8) = 0
+++ killed by SIGSEGV +++

I first thought that this is a problem with connecting to the X server
(permission granted) or with not being able to start OpenOffice.org in
the background.  However, I have started oowriter as the very same
user for testing purpose as well, and it works.

Inspired by Bug#491456 I have started OpenOffice.org as

$ soffice -accept=socket,host=localhost,port=2002;urp;

and have been calling unoconv like:

$ unoconv -v -c 
socket,host=localhost,port=2002;urp;StarOffice.ComponentContext -f pdf foo.odt

with the same results.

Omitting the StarOffice component the error message looks even less promising:

sh-3.2$ unoconv -v -c  socket,host=localhost,port=2002;urp; -f pdf foo.odt 
Error: Unable to connect or start own listener. Aborting.

Regards,

Joey

-- 
Unix is user friendly ...  It's just picky about its friends.

Please always Cc to me when replying to me on the lists.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]