I've been searching all day for a solution and can't seem to find anything that works, just a bunch of a leads that seem outdated or non-functional.
I'm basically trying to get to a hello-world state either in python so that I can start programmatically creating document pages from database data.
I tried installing both libreoffice and openoffice. I installed the file in the default location (i did windows 7 (C:\Program Files (x86)\LibreOffice 4) and installed ubuntu 14 and tried the default path (/usr/lib/libreoffice) too).
I had trouble with the bat script () in the sdk folder so I even tried reinstalling in the base dir with no spaces c:\libreoffice in windows.
I tried many manipulations trying to change the PYTHON PATH settings and installing different versions of python.
Does anyone have any advice on how I can get python setup to make openoffice documents? just getting past the 'import uno' statement without an import error? I'm sure it's something dumb but I'm at a complete loss.
Thanks in advance.
EDIT: The error I got was the standard module not found error I got the error regardless of if I opened the python instance in my local version or the one residing in the libreoffice folder:
C:\Libreoffice\program\python-core-3.3.3\bin>python Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:18:40) [MSC v.1600 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import uno Traceback (most recent call last): File "", line 1, in ImportError: No module named 'uno'
EDIT 2: I got past the 'uno' issue when I did a find and found uno.py in the program folder. I added that to my python path and uno loaded. However, now I get a different error:
Traceback (most recent call last): File "C:\Users\Alex\workspace\OOTest\test\test.py", line 7, in import uno File "C:\Libreoffice\program\uno.py", line 21, in import pyuno ImportError: DLL load failed: The specified module could not be found.
I did a find and found the following:
C:\Libreoffice>find|grep pyuno* ./program/pyuno.pyd ./program/services/pyuno.rdb ./share/registry/pyuno.xcd
I tried to add the program folder to my windows path (already in the python path) and still have the same error.
Any advice on loading pyuno?