Re: [Trac] Installing docrenderplugin on Windows
I'm not sure if I need to update at all. I was looking at the minimum requirements for installation of unotools but I think I can maybe use something called PyUNO. I can't look at it now unfortunately, got to do a release. On Monday, 6 July 2015 18:36:47 UTC+1, Peter Suter wrote: Do not update to Trac's Python to 3.x. That will definitely break things. Or do you mean to update to 2.7.10? That might be less of a problem, but you might still need to recreate eggs etc. I'm not sure. Peter On 06.07.2015 10:51, Ita wrote: Thanks, Peter. I'm a little further along now. I started LibreOffice from the command line in the way you suggested - thanks! So simple. It's there but the plugin still isn't working. Looking back at the documentation I realised I'd forgotten about the ooextract.py script, which must be located on the path. I dropped in the script and it runs but can't import 'uno'. 'uno' seems to be a tool that allows you to interact with Libreoffice. Clearly, I will need it. It looks like I'll have to update my python version before I install 'uno' (I'm at 2.7.6). At least my version of LibreOffice seems acceptable. If I update my python version I'm afraid I might break Trac, which everyone else in the office depends on. What's the conventional wisdom here? Should I be afraid, very afraid, or will it probably just work? Cheers, Ita On Saturday, 4 July 2015 06:34:15 UTC+1, Peter Suter wrote: On 03.07.2015 11:33, Ita wrote: My problem came with running init-script as it's not a Windows script. I have not used docrenderplugin. From looking at the script it seems you can just start LibreOffice directly instead of using the script: C:\Program Files (x86)\LibreOffice 4\program\soffice.exe --headless --nologo --nofirststartwizard --nodefault --accept=socket,host=localhost,port=8100;urp;StarOffice.ComponentContext This starts a LibreOffice in the background. I think that should be enough to get the plugin working. After peering at it for a while I decided that I could achieve the same thing by running LibreOffice as a Windows Service. Unfortunately, I haven't been able to discover a way of doing this, even with the help of Google. Since it looks like LibreOffice can be run as a service on Unix I can't see why it wouldn't be possible on Windows, but I'm in new territory here and would love some help from anyone who's done this or who knows how to go about it. Maybe my approach is totally wrong and I should be going about it another way? But the above is not as a real Windows Service. If you need that, you can apparently just wrap the above command in a generic Windows Service wrapper like srvany.exe from the Windows Server 2003 Resource Kit: http://www.tonido.com/support/display/cloud/Running+Openoffice+as+a+service+in+Windows (This page uses OpenOffice but I assume the same also works for LibreOffice.) You could maybe also try nssm (instead of srvany.exe): http://nssm.cc/ -- You received this message because you are subscribed to the Google Groups Trac Users group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+...@googlegroups.com javascript:. To post to this group, send email to trac-...@googlegroups.com javascript:. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Trac Users group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
Re: [Trac] Installing docrenderplugin on Windows
Thanks, Peter. I'm a little further along now. I started LibreOffice from the command line in the way you suggested - thanks! So simple. It's there but the plugin still isn't working. Looking back at the documentation I realised I'd forgotten about the ooextract.py script, which must be located on the path. I dropped in the script and it runs but can't import 'uno'. 'uno' seems to be a tool that allows you to interact with Libreoffice. Clearly, I will need it. It looks like I'll have to update my python version before I install 'uno' (I'm at 2.7.6). At least my version of LibreOffice seems acceptable. If I update my python version I'm afraid I might break Trac, which everyone else in the office depends on. What's the conventional wisdom here? Should I be afraid, very afraid, or will it probably just work? Cheers, Ita On Saturday, 4 July 2015 06:34:15 UTC+1, Peter Suter wrote: On 03.07.2015 11:33, Ita wrote: My problem came with running init-script as it's not a Windows script. I have not used docrenderplugin. From looking at the script it seems you can just start LibreOffice directly instead of using the script: C:\Program Files (x86)\LibreOffice 4\program\soffice.exe --headless --nologo --nofirststartwizard --nodefault --accept=socket,host=localhost,port=8100;urp;StarOffice.ComponentContext This starts a LibreOffice in the background. I think that should be enough to get the plugin working. After peering at it for a while I decided that I could achieve the same thing by running LibreOffice as a Windows Service. Unfortunately, I haven't been able to discover a way of doing this, even with the help of Google. Since it looks like LibreOffice can be run as a service on Unix I can't see why it wouldn't be possible on Windows, but I'm in new territory here and would love some help from anyone who's done this or who knows how to go about it. Maybe my approach is totally wrong and I should be going about it another way? But the above is not as a real Windows Service. If you need that, you can apparently just wrap the above command in a generic Windows Service wrapper like srvany.exe from the Windows Server 2003 Resource Kit: http://www.tonido.com/support/display/cloud/Running+Openoffice+as+a+service+in+Windows (This page uses OpenOffice but I assume the same also works for LibreOffice.) You could maybe also try nssm (instead of srvany.exe): http://nssm.cc/ -- You received this message because you are subscribed to the Google Groups Trac Users group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
[Trac] Installing docrenderplugin on Windows
I've been running Trac in the office for a few months now and it's been a great solution. Everyone loves it. As most of my colleagues have never used issue tracking software before, its simplicity has been a real boon. The Git integration is AMAZING. I have it installed on a Windows 7 machine. This morning with some time to spare I went looking for a plugin to allow us to view Word documents attached by the QA team. At the moment we have to download them. I found docrenderplugin which looks like just what we need. It's only the second Trac plugin I've installed and it took me a while to get to grips with what was needed. I created an egg file, put it in the plugins directory and added a line to the attachments section in trac.ini. My problem came with running init-script as it's not a Windows script. After peering at it for a while I decided that I could achieve the same thing by running LibreOffice as a Windows Service. Unfortunately, I haven't been able to discover a way of doing this, even with the help of Google. Since it looks like LibreOffice can be run as a service on Unix I can't see why it wouldn't be possible on Windows, but I'm in new territory here and would love some help from anyone who's done this or who knows how to go about it. Maybe my approach is totally wrong and I should be going about it another way? I've been a developer for years (C++, Java, C#) but have no Python experience. -- You received this message because you are subscribed to the Google Groups Trac Users group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.