Questions tagged [qpython]

Python scripting facility for Android

QPython is a Python scripting engine running on Android. It embeds the python interpreter, console, editor and the SL4A library for Android, which can allow you to use your Android device to write & run python scripts or projects.

221 questions
25
votes
2 answers

QPython or Kivy for Android programming with Python - producing installable apk

Having read several Q&A's on SO, I realize that one has 2 options i.e. QPython and Kivy to do programming for Android, however, apparently both take different approaches. I am trying to validate my understanding and see if I am missing some key…
bdutta74
  • 2,798
  • 3
  • 31
  • 54
14
votes
3 answers

How do I install modules on qpython3 (Android port of python)

I found this great module on within and downloaded it as a zip file. Once I extracted the zip file, i put the two modules inside the file(setup and the main one) on the module folder including an extra read me file I needed to run. I tried…
Enclo Creations
  • 173
  • 2
  • 2
  • 11
9
votes
1 answer

Accessing command history in QPython console for Android

Is it possible to access previously entered commands in QPython's console/REPL? Up and down arrows just display escape sequences. I tried switching the Terminal type option between screen, linux, and vt100, but this doesn't seem to help. A related…
intuited
  • 23,174
  • 7
  • 66
  • 88
7
votes
1 answer

Connect to access point using QPython?

I have a simple problem with my phone: When I get disconnected from a wifi hotspot, my phone doesn't automatically reconnect because it always thinks there is no Internet. This is because of my firewall. I'm guessing that Android phones try to ping…
Forivin
  • 14,780
  • 27
  • 106
  • 199
6
votes
2 answers

Can you update QPython3 version of Python3?

I want to install biopython on Qpython3 but it says that I have python 3.2 and need version 3.3 or greater. Is there no version of QPython3 available with a higher version? Can I update it somehow? -Thanks
jelijelidjango
  • 431
  • 1
  • 6
  • 12
5
votes
1 answer

How to execute Python script from Java code in Android

I'm trying to make an standard Android application execute a python script that could return values to Java, but I'm facing a lot of issues. Jython doesnt support this in the Android environment, SL4A is a dead project, Kivi seems to be an full…
Israel Fonseca
  • 1,082
  • 10
  • 22
5
votes
1 answer

android.Android() on QPython error

I'm running SL4A Python 2.6.2 interpreter. This code works without problem: import android droid = android.Android() But when I'm running QPython 2.7.2 interpreter on the same machine, the same code gives me error: AttributeError: 'module' object…
Damian Melniczuk
  • 393
  • 6
  • 18
4
votes
0 answers

Does QPython2 supports Selenium?

I did install selenium on my qpython2 by using: pip install selenium And it downloaded selenium I had a Firefox browser on my android phone so I tested if it will work like it did on my pc: from selenium import…
4
votes
4 answers

Installing numpy in qpython

I've been trying to install additional libraries on qpython. Unfortunately the documentation I've found so far is very sparse (e. g. http://wiki.qpython.org/doc/install-libraries/). It says you can install libraries on pip console but it doesn't…
Guisante
  • 51
  • 1
  • 1
  • 3
4
votes
2 answers

How do I exit Qpython (android) console automatically afer script completes?

I'm running Qpython (andoid) 1.2.3 (the latest as of 2016-01-31) and I can get scripts to run. I've been able to create a shortcut on my homescreen for a simple test script that put the current date in yyyy-mm-dd format into the clipboard, and…
inkwire
  • 41
  • 2
3
votes
2 answers

OpenCV in Qpython

I'm developing a project (in Python) that does video processing using OpenCV. Now I'm planning to implement that in my android phone. I read that Qpython supports python on android. So is there any way to import third party libs like OpenCV in…
deepu
  • 147
  • 2
  • 12
3
votes
1 answer

QPython development environment using mac or windows

Being new to QPython, didn't find any reference about developing on a Mac or Pc, eventually deploying the code on the Android device. In contrast to developing the code itself on the Android device which seems very awkward specially for larger…
syberkitten
  • 234
  • 4
  • 9
3
votes
1 answer

How to run android qpython script from cmd (DroidEdit, terminal)?

I would like to run qpython scripts from the editor "DroidEdit" as the external commands. And also from the command line in terminal "Terminal Emulator for Android." I tried this method:…
Petr Mach
  • 420
  • 4
  • 7
3
votes
2 answers

Passing commandline arguments to QPython

I am running a simple client-server program written in python, on my android phone using QPython and QPython3. I need to pass some commandline parameters. How do I do that?
Pacu
  • 163
  • 1
  • 2
  • 8
3
votes
2 answers

Open a URL with default broswer?

I'm new developer in QPython (experienced with python), I want to open an url with user's default browser. I tried AndroidBrowser().open("...") but, to my surprise, I got Segmentation Fault! So I said OK, let's try to open it manually as activity,…
Ori Seri
  • 917
  • 1
  • 6
  • 14
1
2 3
14 15