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
0
votes
1 answer

How to display error occurred in script?

I think my question is already asked, but I didn't find any topic about that. When I try somme script with kivy, I have sometimes errors (such as undeclared variable, bad indentation...), but Qpython don't display them. I lunch kivy…
Percjak
  • 1
  • 1
0
votes
0 answers

Using QPython Console with MIT App Inventor

I am new to Android development and am using MIT App Inventor 2, as I was completely lost in the official Android development tutorials. Below is the description of the program and the problem. I am taking an unknown number of inputs from the user…
Sahil M
  • 1,790
  • 1
  • 16
  • 31
0
votes
1 answer

What does this mean?: "pygame ImportError: No module named pygame"

"pygame ImportError: No module named pygame" I get this on my Android Moto G phone when running a simple QPython script. I should point out that this script used to work - so I suspect that QPython, Android, pygame, or something has taken an auto…
Nick
  • 191
  • 2
  • 13
0
votes
2 answers

Location with QPython in Android doesn't return GPS coordinates - only "network"

I am writing a very simple script using QPython on my android phone. I would like to extract the GPS coordinates of my current location. However, the script only outputs the "network" coordinates, never the GPS. Here is the code…
gpanterov
  • 1,365
  • 2
  • 15
  • 25
0
votes
1 answer

Turtle and QPython

I have been playing with basic Python(2.3) on my PC (which has Windows 8 OS) for awhile, but my PC broke and I now just have my Android Kitkat tablet. I downloaded Qpython and have been using that, but when I try to import and start turtle - in the…
Zali
  • 1
  • 1
  • 3
0
votes
1 answer

Qpython Plyer GPS - Crash on call of gps.start() method

My goal is to know the geographic coordinates of my Nexus 5 (Andrid 5.1.1) using the python module Plyer(Version 1.2.4). So I installed the interpreter QPython2.7(Version 1.0.6) on my smartphone and I wrote the following code inspired by the example…
0
votes
2 answers

Kivy on Qpython3 (Android)

How I can use the Kivy framework in Qpython3 (Python 3.2 for android) app? I know that Qpython (Python 2.7 for android) app support this framework. pip_console don't install kivy. I have an error, when I try to install it. Please help me.
0
votes
3 answers

Opening Text files in Qpthon 3 on android tablet

I am new to learning coding and starting with Python 2.7. How do I get a text file to open in Qpython 3? # Opening a file inp = raw_input ("Enter a File Name: ") #Optional guardian to capture incorrect filenames try: fhand =…
Ray
  • 1
  • 1
  • 2
0
votes
2 answers

Running sample Kivy code in QPython for Android Errors Out

On Android, using QPython, when either running Kivy sample code or attempting interactive entry, importing kivy resulted in this error: uu0_a96@RCT6203W46:/ $ /data/data/com.hipipal.qpyplus/files/bin/qpython.sh && exit Python 2.7.2 (default, Oct 25…
0
votes
2 answers

How do I use gdata and save a file on QPython for android?

I am in the process of migrating my scripts from python SL4A to QPython (can't get SL4A to work on android lollipop). I can't save a file to the disk So I am using: with open("foo.txt" ,"a") as f: f.write(theInfo) And I get IOError: [Errno…
user850498
  • 717
  • 1
  • 9
  • 22
0
votes
1 answer

Handling clipboard and toast in QPython

I want to monitor android clipboard and display toast from QPython. Actually, I want to check the clipboard for any changes, if the clipboard has a particular string in it that matches a particular regex, I want to process it (the process is really…
taninamdar
  • 137
  • 1
  • 8
0
votes
1 answer

qpython what is the alt button (previous command)

Does anyone know how to use/setup the alt button in qpython 2.7 2? I would like to trigger alt+p for previous command. This is on a galaxy s6. There is a special key menu but I do not see anything for alt. Under preferences I see options for control…
jes516
  • 542
  • 1
  • 13
  • 30
0
votes
1 answer

qpython hello world not working

I'm new to qpython (obviously :P ) I was trying the helloworld.py that's built in to the qpython app From what I gather, it should pop up a text box to collect a name and open a window with "Hello, " The first part works. it collects the name, but…
Ching Liu
  • 1,527
  • 2
  • 11
  • 15
0
votes
1 answer

How do you copy text from qpython console?

I would like to copy the console output to ask a question about a program that's not working. but it seems the normal way of holding down text doesn't highlight the text for selection like in the editor. Is there a way to copy the text from qpython…
Ching Liu
  • 1,527
  • 2
  • 11
  • 15
0
votes
1 answer

"print" didn't print in qpython console

I am a new programmer and learning python with qpython3 on my cellphone(android lollipop),that always needs to use "print" statement,but there is problem with "print" in the console: print "hello" File "",line 1 print "…
qxliang
  • 1
  • 4