Is there a reason you are trying to use Python from QML instead of it's native Javascript?
While PyOtherSide may work, it's not a supported language or platform for the Ubuntu SDK, so we can't guarantee that it will always work or work properly. I would encourage you to use Javascript instead of at all possible. Michael Hall [email protected] On 10/21/2013 08:39 AM, Matt Austin wrote: > Hi, > > 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: > https://bugs.launchpad.net/ubuntu/+bug/1242247 > > > 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: > PyExc_ImportError > > 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! > > > Thanks, > -- Mailing list: https://launchpad.net/~ubuntu-phone Post to : [email protected] Unsubscribe : https://launchpad.net/~ubuntu-phone More help : https://help.launchpad.net/ListHelp

