I need to import the uno module but when I try import uno, the pyuno binding fails with the following error:
In English it should sounds like ImportError: DLL load failed: Unable to find the specified moduleImportError: DLL load failed: Impossibile trovare il modulo specificato.
I googled a lot and read about other users with the same problem but no-one post helped me.
System configuration
I'm using the python 2.6.1 shipped with OpenOffice 3.1.1(OOO310m19, Build:9420). I installed it in C:\Programmi\OpenOffice.org 3\Basis\program and added the python's path to the windows system path :
I also created a file C:\Programmi\OpenOffice.org 3\Basis\program\python-core-2.6.1\lib\site-packages\whatineed.pth with this content :echo %PATH%
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programmi\OpenOffice.org 3\Basis\program;
It helps python to find the uno module in the right path.C:\Programmi\OpenOffice.org 3\Basis\program
The Error
And here is the error ::
I also tried to copy pyuno.pyd to c:\WINDOWS\system\pyuno.pyd as suggested in some post without any luck.Python 2.6.1 (r261:67515, Apr 22 2009, 19:31:46) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import uno
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "c:\Programmi\OpenOffice.org 3\Basis\program\uno.py", line 33, in <module
>
import pyuno
ImportError: DLL load failed: Impossibile trovare il modulo specificato.
>>>
Any ideas?
Thanks in advance,
Simone