I am trying to use PyUNO as a method to convert various document formats (doc, wordperfect, html, etc.) to PDF from my Django server. I need time to import unowork. It seems to be failing when executed import pyunowith the message ImportError: DLL Load Failed: The specified module could not be found.
The only way to get this to work is to use Python 2.6, which comes with OpenOffice, but I really want to use my other installation of 2.6. The documents for PyUNO are for Python 2.2 and are thought to be out of date.
I assume that some (or all) of the following files need to be copied from the OpenOffice directory to the directory of my package site (or to some subdirectory of it):
pythonloader.py
pythonloader.uno.ull
pythonloader.uno.ini
pythonscript.py
pyuno.pyd
Has anyone been successful for this to work?
This is on Windows.
source
share