joaoventura / pybridge

Reuse Python code in native Android applications
215 stars 56 forks source link

ImportError: No module named 'select' #25

Closed ZhangKuixun closed 5 years ago

ZhangKuixun commented 5 years ago

I have error, not found select in stdlib.zip

Initializing the Python interpreter -------------------- --PyRun_SimpleString("import bootstrap"); Traceback (most recent call last): File "", line 1, in File "/data/user/0/com.jventura.pyapp/assets/python/bootstrap.py", line 13, in import platform File "/data/user/0/com.jventura.pyapp/assets/python/stdlib.zip/platform.py", line 115, in File "/data/user/0/com.jventura.pyapp/assets/python/stdlib.zip/subprocess.py", line 438, in ImportError: No module named 'select' --------------------

File directory: assets --python ----bootstrap.py ----stdlib.zip

@edenbd50

ZhangKuixun commented 5 years ago

@joaoventura @kato-megumi

kabukky commented 5 years ago

Have you tried putting the _ctypes.so file from the crystax-ndk into assets/python? You need to use the right one for your architecture, e.g. crystax-ndk-10.3.2/sources/python/3.5/libs/armeabi-v7a/modules/_ctypes.so.

ZhangKuixun commented 5 years ago

Have you tried putting the _ctypes.so file from the crystax-ndk into assets/python? You need to use the right one for your architecture, e.g. crystax-ndk-10.3.2/sources/python/3.5/libs/armeabi-v7a/modules/_ctypes.so.

@kabukky I tried putting the _ctypes.so file from the crystax-ndk into assets/python . can solve.

ZhangKuixun commented 5 years ago

@kabukky have a new question, never found _ssl.so in my computer and net.

Traceback (most recent call last): File "", line 1, in File "/data/user/0/com.jventura.pyapp/assets/python/bootstrap.py", line 9, in import ssl File "/data/user/0/com.jventura.pyapp/assets/python/stdlib.zip/ssl.py", line 98, in ImportError: No module named '_ssl'

joaoventura commented 5 years ago

Issues are not meant to be used for user support, please don't do this here! 👎

ZhangKuixun commented 5 years ago

Issues are not meant to be used for user support, please don't do this here! 👎

sorry