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

"Standalone" Android Apps with Python?

It's known you can run Python on Android with QPython, but first users have to download and install it on their phone. Just wondering: is it possible to pack QPython dependencies together with "app" script creating a "standalone" PlayStore-ready…
Sarchophagi
  • 377
  • 2
  • 5
  • 20
3
votes
1 answer

Sl4a recognize speech in background

I am started programming sl4a (in QPython) and it is really great. Now I tried to use the droid.recognizeSpeech function. This one works fine too, but I like to get it in the background listening for a keyword, like Google's 'OK Google'. So I looked…
Tom Hans
  • 123
  • 1
  • 1
  • 6
3
votes
2 answers

EOF error with raw_input

I'm using qpython and when I'm using raw_input function I'm getting an EOF error, for example - print " what's ur name", a = raw_input() print " hello %r"%a and I'm getting this result - what's ur name ? Traceback (most recent call last): File…
dpmittal
  • 47
  • 1
  • 8
2
votes
2 answers

How to fetch the table or view metadata from KDB and save to a data-structure?

I have been trying to fetch the metadata from a KDB+ Database using python, basically, I installed a library called qpython and using this library we connect and query the KDB+ Database. I want to store the metadata for all the appropriate cols for…
nikhil int
  • 181
  • 2
  • 14
2
votes
2 answers

Saving a kdb table to a dataframe then saving the dataframe to a csv. null and string values outputting to csv incorrectly?

I am saving a kdb table to a dataframe then saving the dataframe to a csv. This works, however, the csv file and if i print(dataframe); null values are showing as " b" ", and all other string values are showing as " b'STRING' ". Running Python…
2
votes
1 answer

Can I use the android module in python on windows

Is there any way at all to use the android module on windows? I have been trying to make a speech recognition program on windows (which has been a tough thing since it has to work offline) and I noticed this: Offline Speech Recognition in…
GFTW
  • 145
  • 1
  • 1
  • 14
2
votes
2 answers

Qpython - Kivy apps fail "No module named kivy"

I'm using Qpython v2.2.4-8 with python 2.7.12, and am trying to get a kivy app to run. I installed the pip libraries lxml-u4-qpython and kivy-u4-qpython via the app's terminal, and created a new sample kivy app which has this code by…
Maurdekye
  • 3,597
  • 5
  • 26
  • 43
2
votes
1 answer

How can I install a module on colaboaratory?

I am testing out Googles colaboratory and I am getting an error ImportError: No module named qpython I know because its a virtual machine the modules are installed there but if one is missing is there a way to get it installed? Thanks!
Roni Hoffman
  • 302
  • 1
  • 5
  • 17
2
votes
1 answer

qpython android IOError: [Erno 2] No such file or directory

I am trying to call an image from a simple python script in qpython but get the error message: qpython android IOError: [Erno 2] No such file or directory I am wondering if I am using the correct directory convention? here is the code: import numpy…
trock2000
  • 302
  • 4
  • 13
2
votes
2 answers

why the doctest didn't work in qpython3

I'm trying to use doctest in qpython. But the script didn't work , which it it ok in PC enviroment. It is just two line different with the my script in PC enviroment: import sl4a droid = sl4a.Android() After run the script in qpython, I can see the…
Roger Ding
  • 21
  • 1
2
votes
0 answers

Python Android - SMS function not work - Dual Sim Device

i am trying to get sms message in my dual sim android device but result always null pointer exception import androidhelper droid = androidhelper.Android() SMSmsgs = droid.smsGetMessages(False, 'inbox').result for message in SMSmsgs: print 'From:…
2
votes
1 answer

Qpython unicode strings

I'm trying to port a Python 3.5 project from PC to Android QPython3 but for the line:- if ch = in u'\x00\xe0': ch = getwch() I'm getting this when I run it:- if ch = in u'\x00\xe0': ^ SyntaxError: invalid syntax I thought…
JimFitz
  • 51
  • 3
2
votes
0 answers

Qpython curses library could not find terminal

I am trying to make a curses script on Qpython, but neither do qpy2 or 3 work. On Qpython 2, import curses says 'module not found', and on Qpython 3, it works, but at the first initscr it crashes with the following exception: Traceback (most recent…
Min4Builder
  • 148
  • 1
  • 8
2
votes
1 answer

Qpython uknown RPC error

I installed the QPython app on Android and executed a script name helloworld.py. It used androidhelper's method maketoast to show a message with the Android api. I tried writing the exact same script on another file but it is giving me the following…
Filipe Teixeira
  • 479
  • 1
  • 7
  • 26
2
votes
4 answers

in qpython, how do I enter a "return" character

Very basic question. Im trying to use qpython. I can type things in the console but no obvious way to enter a return (or enter)
Nick Keighley
  • 161
  • 2
  • 5
1
2
3
14 15