8000 Issues converting Keynote files to PDF. UNO IllegalArgument ... Source file cannot be read · Issue #272 · unoconv/unoconv · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Issues converting Keynote files to PDF. UNO IllegalArgument ... Source file cannot be read #272

Open
datermine opened this issue Jul 25, 2015 · 4 comments
Labels

Comments

@datermine
Copy link

I'm having trouble converting keynote files to PDF.

This works perfectly:
$ unoconv -f pdf -o upload_files ../qqfv2jyg46b9be29.odp

This does not:
$ unoconv -f pdf -o upload_files ../sa8cuz6kldu3ow29.key

I get (the '...' is an edit by me in the abs path below):

UNO IllegalArgument during import phase:
Source file cannot be read. Unsupported URL file:///home/.../sa8cuz6kldu3ow29.key: ""

I checked some other issues. As I'm on unoconv 0.6, it seems this is different. Also, I just attempted to update LibreOffice, but it stayed on 3.5

Thoughts?


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

platform posix/linux2
python 2.7.3 (default, Mar 13 2014, 11:03:55)
[GCC 4.7.2]
LibreOffice 3.5

@datermine
Copy link
Author

Looks similar to this issue: #47

...but this works, just not for keynote files it seems.

@dagwieers
Copy link
Member

Please run unoconv using the python binary that ships with LibreOffice. This way unoconv will automatically use that LibreOffice version and all is well !

We prefer this method over using UNOPATH to select a specific LibreOffice/OpenOffice version.

PS Please also use v0.7, which has some more improvements.

@datermine
Copy link
Author

So...I've tried a few things:

  1. Doing what I'm already doing, but with 0.7. Didn't work.
  2. "Influencing" the python version. Also didn't work:

UNO_PATH=/usr/lib/libreoffice unoconv -f pdf -o upload_files sa8cuz6kldu3ow29.ke

Additionally, I've looked into my libreoffice location for other python binaries, but all I see is:

$ ls -ltra /usr/lib/libreoffice/program/py*
-rw-r--r-- 1 root root 7024 Apr 13 00:38 /usr/lib/libreoffice/program/pythonloader.py
-rw-r--r-- 1 root root 149 Apr 13 01:21 /usr/lib/libreoffice/program/pythonloader.unorc
-rw-r--r-- 1 root root 6088 Apr 13 01:22 /usr/lib/libreoffice/program/pyuno.so
-rw-r--r-- 1 root root 19200 Apr 13 01:22 /usr/lib/libreoffice/program/pythonloader.uno.so

I suppose I was expecting to see a python.bin in there.

Thoughts?

Thanks in advance,
George

@datermine
Copy link
Author

I'm still unable to "run unoconv using the python binary that ships with LibreOffice" as I cannot find the python binary that has shipped with my current installation.

In my last update I listed the files I have available and none of them are the python binary it seems I need.

Any direction would be greatly appreciated.

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

No branches or pull requests

3 participants
0