Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 3879  / 2 Years ago, thu, october 20, 2022, 2:39:55

I've an issue while using unoconv to convert docs to html from a Python script.



It works perfectly when I run the script or the unoconv commands as root, but it fails when I do the same from other user. I had installed Ubuntu 13.04 Server and unoconv packages via apt-get install. I executed the python script as an ordinary (not root) user



>>> from subprocess import call
>>> call(["unoconv","-f","html","-o","/var/www/project/tagging/templates/documents","/var/www/project/media/resume1.doc"])
Error: Unable to connect or start own listener. Aborting.


ls -l give the following:



ubuntu@ip-54-194-10-89:/var/www$ ls -l
total 183184
drwxr-xr-x 24 www-data www-data 4096 Aug 31 15:20 project


project has group and ownership as www-data



If anyone who can help me with this issue it would be appreciated.


More From » python

 Answers
6

Before going to do that you need to start the unoconv listener then only it will start.
open your terminal with CTRL+ALT+Tand start the listener as



unoconv --listener


Then try again with your operation of conversion.



NOTE: make sure that no other process using the listener, If any process do so , kill that process to assign the listener to current conversion.



hope that helps.


[#29617] Friday, October 21, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ainsbeave

Total Points: 280
Total Questions: 98
Total Answers: 105

Location: Faroe Islands
Member since Sat, Aug 20, 2022
2 Years ago
;