android - pyqtdeploy: add external modules -


is there has experience pyqtdeploy , adding external modules? using pyqtdeploy (version 1.2) pyqt 5.5.1 write application can deployed android device. without external modules, freezing pyqtdeploy works pretty well. however, not sure how can add external modules (not pure python ones) application.

in particular, want add external module pycrypto. therefore, downloaded pycrypto sourcecode, compiled android toolchain (from android ndk) , have bunch of *.py , *.so files. how can add them application?

my initial attempt add *.py , *.so files (so whole pycrypto module) "other packages" tab in pyqtdeploy. now, when import pycrypto related in application (from crypto.cipher import aes) following error message:

file: ":/crypto/cipher/_aes.py", line 20 in __bootstrap__ typeerror: 'nonetype' object not callable

the _aes.py file error thrown, looks this:

def __bootstrap__():    global __bootstrap__, __loader__, __file__    import sys, pkgutil, imp    __file__ = pkgutil.get_data(__name__,'_aes.cpython-34m.so')    __loader__ = none; del __bootstrap__, __loader__    imp.load_dynamic(__name__,__file__) __bootstrap__() 

at first thought, *.so filename wrong , therefore, got nonetype error, changed filename in _aes.py other 'test.so'. surprisingly, now, different error message before:

file ":/pkgutil.py" line 629, in get_data importerror: qrcimporter: error opening file :/crypto/cipher/test.so

ok, filename should fine, right? why 'nonetype` error message? doing wrong? right way accomplish this?

any highly appreciated. pretty sure, i'm 1 small step away getting thing work, can't figure out i'm doing wrong.

thanks!


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -