Closed Tungsteno74 closed 9 years ago
multiprocessing.dummy is stripped by python-for-android by being listed in https://github.com/kivy/python-for-android/blob/master/pythonforandroid/bootstraps/pygame/build/blacklist.txt (this is in a different place in the old toolchain but is still called blacklist.txt). This is deliberate, but i don't know if the reason is that it doesn't work or that it's just taken out to save space.
Either way, you can try including it by whitelisting that file/folder with the whitelist option of python-for-android.
@inclement I'm not able to find a guide on how to use the whitelist. Please, can you tell me step-by-step how to add multiprocess.dummy to QPython whitelist? So I can see if it works. thanks
With qpython I have no idea, it's probably impractical - presumably you'd instead need to build qpython itself with the module included.
On 24/10/15 18:55, Tungsteno74 wrote:
@inclement https://github.com/inclement I'm not able to find a guide on how to use the whitelist. Please, can you tell me step-by-step how to add /multiprocess.dummy/ to /QPython/ whitelist? So I can see if it works. thanks
— Reply to this email directly or view it on GitHub https://github.com/kivy/python-for-android/issues/479#issuecomment-150837297.
Hello, I tried to import the class multiprocess.dummy in QPython but I get the following error:
So before i use this module in a multiplatform application (that will use python-for-Android for mobile devices) I wanted to know if it works with this framework. If it does not work, is possible to see its implementation in the short?
I think that it would be very useful since this module is the only way to bypass the GIL in Python applications and optimize desktop programs. Whereas, for the moment, on mobile devices is not possible to implement multiprocessing, it would be useful to have a surrogate to do this.
Sorry for my bad english. thanks for your help