← Back to team overview

ubuntu-phone team mailing list archive

PyOtherSide: Asynchronous Python Bindings for Qt 5



I'm looking to port my MeeGo / SailfishOS app to Ubuntu Touch. The UI
is in QML, but it requires Python. I've been using "PyOtherSide" on
SailfishOS successfully.

PyOtherSide is a QML Plugin that provides access to a Python
interpreter from QML: http://thp.io/2011/pyotherside/

I was wondering if someone could help me compile a qml plugin which
allows use of python.

I've also filed a "needs-packaging" request at:

The source code is hosted on github: https://github.com/thp/pyotherside

I've followed the qmake/make/make install instructions in the README,
but I encounter symbol errors from Python when importing modules (e.g.
datetime, lxml):

    ImportError: /usr/lib/python3/dist-
packages/lxml/etree.cpython-33m-x86_64-linux-gnu.so: undefined symbol:

>From some searching, it might have something to do with dynamic/static
linking and make flags - but I am a complete newbie with make (I am a
python user after all :/). I don't really understand how to implement
the workarounds/suggestions which I have read:

1) http://bugs.python.org/issue4434
2) http://stackoverflow.com/questions/4767057/embedding-python-in-c-undefined-symbol-pyexc-importerror
3) http://stackoverflow.com/questions/8302810/undefined-symbol-in-c-when-loading-a-python-shared-library

Any steps I can follow to get a working installation would be very welcome!



Follow ups