qpython-android / qpython

QPython is an Android Python engine primarily designed for Python and AI learners. It offers a range of impressive features to enhance Python programming experience.
https://www.qpython.org
1.03k stars 191 forks source link

run sl4a server from terminal #174

Open hardyvince opened 5 years ago

hardyvince commented 5 years ago

Can I start sl4a server and configure qpython to be able to connect to is?

I've got this error: $ pwd /data/user/0/org.qpython.qpy/files/bin $ ./qpython-android5.sh Python 2.7.15 (qpyc:2.7.15, Aug 22 2018, 06:50:49) [BUILD WITH QPY-TOOLCHAIN (https://github.com/qpython-android) ] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import androidhelper driod=androidhelper.Android() Traceback (most recent call last): File "", line 1, in File "/data/user/0/org.qpython.qpy/files/lib/python2.7/qpyutil.zip/androidhelper/sl4a.py", line 34, in init File "/data/user/0/org.qpython.qpy/files/lib/python27.zip/socket.py", line 575, in create_connection socket.error: [Errno 111] Connection refused

Thanks! Vince