pyuno load error

Issues installing under the Mac OSX - X11 - Aqua
Post Reply
RodK
Posts: 1
Joined: Sun Dec 06, 2009 7:29 pm

pyuno load error

Post by RodK »

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.
Open Office 3.1.1
iMac Snow Leopard
zCRP
Posts: 10
Joined: Tue Jan 26, 2010 12:15 am

Re: pyuno load error

Post by zCRP »

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:

Code: Select all

2.3.5 (#1, May 18 2009, 23:34:13)  [GCC 4.2.1 (Apple Inc. build 5646)]
the following executable:

Code: Select all

/usr/bin/python
and the following distutils.sysconfig.get_python_lib():

Code: Select all

/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages
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
OpenOffice 3.1.1 on MacOS 10.6.2
sodabrew
Posts: 1
Joined: Fri Oct 07, 2011 10:10 pm

Re: pyuno load error

Post by sodabrew »

/usr/bin/python is a wrapper, so the arch command doesn't affect the python it picks. Try either of these:

Code: Select all

export VERSIONER_PYTHON_PREFER_32_BIT=yes
unoconv-0.4/unoconv 
or

Code: Select all

arch -i386 /usr/bin/python2.6 unoconv-0.4/unoconv
both actually fail for me, but further along:
Fatal Python error: Interpreter not initialized (version mismatch?)
Abort trap
OpenOffice 3.3.0 and LibreOffice 3.4.3 on MacOS 10.6.8
Post Reply