Issue 116259

Summary: pyuno: will not load (wrong architecture)
Product: udk Reporter: austux <jeremy>
Component: codeAssignee: AOO issues mailing list <issues>
Status: UNCONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: hanya.runo, issues
Version: OOo 3.2.1   
Target Milestone: ---   
Hardware: Mac   
OS: Mac OS X 10   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description austux 2010-12-30 10:27:51 UTC
I am trying to load PyUNO on Mac OS X (10.6.5) on Intel. Although I found the pyuno.so binary, it will 
not load saying it's the wrong architecture.

I try to load PyUNO in a script that contains the following:

test.py:
#!/usr/bin/python2.6

import sys
sys.path.append('/Applications/OpenOffice.org.app/Contents/basis-link/program')
import uno

With the following output:
$ ./test.py 
Traceback (most recent call last):
  File "./test.py", line 6, in <module>
    import uno
  File "/Applications/OpenOffice.org.app/Contents/basis-link/program/uno.py", line 29, 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

$ python2.6 -V
Python 2.6.1
Comment 1 hanya 2012-07-24 05:31:53 UTC
You were trying to load pyuno.so by different Python from PyUNO build.
PyUNO on MacOS X is compiled against Python 2.3.X, many difference between 2.3 and 2.6.
So please request to update Python version for PyUNO on MacOS X first.
Comment 2 hanya 2012-07-24 06:01:06 UTC
(In reply to comment #1)
> So please request to update Python version for PyUNO on MacOS X first.
issue 110637 has been requested.
Comment 3 Rob Weir 2013-07-30 02:39:45 UTC
Reset assignee on issues not touched by assignee in more than 1000 days.