[PyQt] Dynamic loading and pyqtdeplot and iOS

Robert Kent rob at gulon.co.uk
Wed May 4 16:56:08 BST 2016


So, here I go again!

Having successfully built my app and NumPy and (bits of) SciPy for 
Android, I am now trying it on iOS... And having my usual struggle with 
understanding how to build/load extension modules. I have managed to 
compile NumPy for iOS and have the necessary .so files. I add them to 
the bundle and then run the app and I get the following traceback:

File ":/imp.py", line 243, in load_module
ImportError: 
dlopen(/var/mobile/Containers/Bundle/Application/9AA43814-71DA-4544-993B-B783D83CB5B1/TestApp.app/numpy.core.multiarray.so, 
2): no suitable image found.  Did find:
5B1/TestApp.app/numpy.core.multiarray.so: mmap() error 1 at 
address=0x0471E000, size=0x000DC000 segment=__TEXT in Segment::map() 
mapping 
/var/mobile/Containers/Bundle/Application/9AA43814-71DA-4544-993B-B783D83CB5B1/TestApp.
Process 475 exited with status = 1 (0x00000001)

I have no idea what this is telling me! It obviously finds image, tries 
to load it and fails.

Has anyone had any success is building and loading extension modules 
with pyqtdeploy for iOS or any ideas on where to go from here. I'm 
guessing I've compiled something incorrectly but I have no idea what/how.

All help gratefully received,

Rob


More information about the PyQt mailing list