[PyQt] pyqtdeployed app works on osx, crashes iOS and android

lloyd konneker bootch at nc.rr.com
Fri Jan 2 13:51:53 GMT 2015


Understood:  be patient, or use Ilya’s fork, or use a known good combination of pyqtdeply/Qt versions.

Apparently it crashes trying to import _bootlocale, for which Ilya has contributed a patch.

For future reference, if you get a crash while your pyqtdeploy’ed app is starting, here is a code snippet to harness function qrcimporter_find_loader() in  pdytools_module.cpp, to print out module names as they are imported:

#include <QDebug>
...
qDebug()<<fqmn;

Also, some advice for other pyqtdeploy users: test targets in order [OSX, iOS, Android] In my experience, it is more likely to work on OSX, and if it fails on a mobile platform, the Xcode environment gives better information about crashes (than QtCreator for Android.) 

Also, use a real iOS device, since the iOS simulator uses a different machine architecture (the host architecture x86_64) which is unnecessary complication.

Also, if you were using a previous version of pyqtdeploy or Python, be sure to update the combo box “Target Python Version” in the “Standard Libraries” tab.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150102/a6000b01/attachment.html>


More information about the PyQt mailing list