-
Notifications
You must be signed in to change notification settings - Fork 373
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 command in debug mode to trace library path #89
Comments
Ok, there are now a few issues open from people running unoconv through Apache or PHP. Please look at the existing tickets and read what they have learned already. #19 #24 #42 #44 #58 #73 #85 #87 Someone also wrote some documentation (see doc/) about running unoconv from a webserver and there are some hints in the README too. Another important item to understand is that LibreOffice cannot run more than one conversion job at the same time so even if you would like to run unoconv as a web-service, you will have to make sure you queue and serialize the requests (something like flock may help). And last but not least, report back if you have found the cause for an issue so other people can learn from your situation. |
BTW Since unoconv is a (simple) python script, you can always add specific print-statements to debug it. And in case you have some additional output that would be useful, I am interested to add it to unoconv. However as already noted, the cause of your problems is unlikely to be unoconv itself, but the (restricted) environment of Apache/PHP. |
I will try to debug with the PHP script: |
I finally found the solution. Instead of using exec(), I use shell_exec to pass correctly UNO_PATH environment to python script. |
@chrisduong I tried your method. Didn't work for me. This is my code.
I get blanks when I tried to echo $lastline. Nothing happened basically. My issue is largely explained at #139 |
Hi, I resolve with Unotools. I hope that you helps others: https://pypi.python.org/pypi/unotools |
I know this is silly, but I did download the latest version 0.6 from your github.
My OS is Centos 6 x86_64, python 2.6 from Base repository. Whenever I run "./unoconv -vvv -f pdf a.docx", I only received the following lines:
The fact is: I can run smoothly with unoconv command in the terminal, however I failed to wrap unoconv script in php script. I always got error:
So that I want to trace back whether my unoconv finds all its library files. However I cannot with "-vvv" options. Please help me out, I fight this for 2 days.
The text was updated successfully, but these errors were encountered: