I'm getting a load error attempting to use pyuno on an iMac running Snow Leopard (10.6.2)
using OpenOffice 3.1.1 (Build:9420)
The following terminal session shows the problem:
rod %
rod % python
Python 2.6.1 (r261:67515, Jul 9 2009, 14:20:26)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import uno
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "uno.py", line 33, in <module>
import pyuno
ImportError: dlopen(/Applications/OpenOffice.org.app/Contents/basis-link/program/pyuno.so, 2): no suitable image found.
Did find:
/Applications/OpenOffice.org.app/Contents/basis-link/program/pyuno.so: mach-o, but wrong architecture
>>> ^D
rod %
rod % file /Applications/OpenOffice.org.app/Contents/basis-link/program/pyuno.so
/Applications/OpenOffice.org.app/Contents/basis-link/program/pyuno.so: Mach-O bundle i386
rod %
Any ideas on how to solve this problem?
Thanks.
pyuno load error
pyuno load error
Open Office 3.1.1
iMac Snow Leopard
iMac Snow Leopard
Re: pyuno load error
same error for me. I tried running "arch -arch i386 python", but nothing changed.
Also, there's another thing I do not understand: I wrote a macro which prints a few system info on a spreadsheet, and it shows the following version:
the following executable:
and the following distutils.sysconfig.get_python_lib():
To my knowledge, on Snow Leopard there are python versions 2.5 and 2.6. The 2.3 framework path above is indeed available, but I do not know where there is an executable to start version 2.3, which I would use to connect to OO via socket. If I run /usr/bin/python I get 2.6.1
Anyone can shed some light?
Thanks
Chris
Also, there's another thing I do not understand: I wrote a macro which prints a few system info on a spreadsheet, and it shows the following version:
Code: Select all
2.3.5 (#1, May 18 2009, 23:34:13) [GCC 4.2.1 (Apple Inc. build 5646)]
Code: Select all
/usr/bin/python
Code: Select all
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages
Anyone can shed some light?
Thanks
Chris
OpenOffice 3.1.1 on MacOS 10.6.2
Re: pyuno load error
/usr/bin/python is a wrapper, so the arch command doesn't affect the python it picks. Try either of these:
or
both actually fail for me, but further along:
Code: Select all
export VERSIONER_PYTHON_PREFER_32_BIT=yes
unoconv-0.4/unoconv
Code: Select all
arch -i386 /usr/bin/python2.6 unoconv-0.4/unoconv
Fatal Python error: Interpreter not initialized (version mismatch?)
Abort trap
OpenOffice 3.3.0 and LibreOffice 3.4.3 on MacOS 10.6.8