Python UNO import on Mac broken

julien2412 serval2412 at yahoo.fr
Wed Feb 18 11:32:04 PST 2015


Hello,

Just for the record, on MacOs 10.9.5, LO 4.3.5, Python 2.7.5, I don't
reproduce the segfault but have an error:
$ export PYTHONPATH=/Applications/LibreOffice.app/Contents/MacOS
i$ python
Python 2.7.5 (default, Mar  9 2014, 22:15:05) 
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] 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 "/Applications/LibreOffice.app/Contents/MacOS/uno.py", line 21, in
<module>
    import pyuno
ImportError: dynamic module does not define init function (initpyuno)
>>> 

But after having installed Python3 (3.4.1) with brew, I could reproduce
this:
$ python3
Python 3.4.1 (default, May 19 2014, 13:10:29) 
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import uno
Segmentation fault: 11

Julien



--
View this message in context: http://nabble.documentfoundation.org/Python-UNO-import-on-Mac-broken-tp4140518p4140562.html
Sent from the Dev mailing list archive at Nabble.com.


More information about the LibreOffice mailing list