title: Getting python to import uno / pyuno
body: <p>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.</p>
  
  <p>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.</p>
  
  <p>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).</p>
  
  <p>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.</p>
  
  <p>I tried many manipulations trying to change the PYTHON PATH settings and installing different versions of python.</p>
  
  <p>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.</p>
  
  <p>Thanks in advance.</p>
  
  <p>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:</p>
  
  <pre><code>C:\Libreoffice\program\python-core-3.3.3\bin&gt;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.
  &gt;&gt;&gt; import uno
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ImportError: No module named 'uno'
  </code></pre>
  
  <p>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:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Users\Alex\workspace\OOTest\test\test.py", line 7, in &lt;module&gt;
      import uno
    File "C:\Libreoffice\program\uno.py", line 21, in &lt;module&gt;
      import pyuno
  ImportError: DLL load failed: The specified module could not be found.
  </code></pre>
  
  <p>I did a find and found the following:</p>
  
  <pre><code>C:\Libreoffice&gt;find|grep pyuno*
  ./program/pyuno.pyd
  ./program/services/pyuno.rdb
  ./share/registry/pyuno.xcd
  </code></pre>
  
  <p>I tried to add the program folder to my windows path (already in the python path) and still have the same error.</p>
  
  <p>Any advice on loading pyuno?</p>