Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


On 18.02.2015 20:32, julien2412 wrote:
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

this is not at all surprising: the LO pyuno library is built against the
bundled CPython and will not work with any other version that may be
installed on the system because it will most likely not have the same C ABI.



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.