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
2
votes
2 answers

How to install library with pip-console?

I downloaded some python library package (for example uncompile2) from GitHub. How I can install it into Qpython from the directory in my android device with pip-console? Or at least to try install...
2
votes
0 answers

Using the Interactive QPython on Android, Can't Import from CWD

When using the interactive console in QPython on Android, chdir'ed to a directory containing .py files, attempts to import them result in 'module not found'. The problem is that sys.path has, as its first element, '', instead of '.'. Setting…
2
votes
1 answer

qpython's special keys display funny characters

i have being finding it dificult to use special keys like up arrow, down arrow on qpython console. This keys work perfectly on qpython3 but not on qpython. pls help.
adisco
  • 19
  • 1
  • 4
2
votes
1 answer

qpython has no 'gnu-readline' capability

I've installed qpython on my Samsung Galaxy Appeal (android 2.3.6), but the interpreter's commandline has no 'readline' editing capability, which makes it impractical to use. Isn't this usually included automatically? Does this have something to do…
tfj
  • 87
  • 1
  • 7
2
votes
1 answer

lxml for Qpython3 (Python3 on Android)

Is there a way to install lxml on Qpython3(Python3 on Android)? I could not find anything on google. Any help would be greatly appreciated.
2
votes
4 answers

qpython not able to download requests module

I am using qpython for programming python on android.In my script I am importing requests module and so I have tp install requests module from pip.When I run pip install requests command I get the following error: error…
user2866839
  • 45
  • 1
  • 1
  • 8
2
votes
3 answers

Why does qpython say "No module named sl4a"?

Install QPython from Google Play store Open QPython, slide right and click "Console" Try some code, starting with import androidhelper u0_a98@android:/ $ python Python 2.7.2 (default, Jun 3 2013, 20:01:13) [GCC 4.4.3] on darwin Type "help",…
krubo
  • 5,969
  • 4
  • 37
  • 46
1
vote
1 answer

kdb select only one row for each minute

i have some records on kdb, as you see we have 10 row for time: "8:33" and 19 row for time "8:34" and some other row for time "8:35". now, how can i select only one row for each group of minute? for example final result should be like this: ( only…
devmrh
  • 1,171
  • 4
  • 19
  • 46
1
vote
1 answer

kdb get last 1 hour records

i need to select and get rows which are related to previous 1 and 24 hours. to handle 24 hour i used this code. what about 1 hour how can i get that? yesterday = datetime.now() - timedelta(1) yesterday = datetime.strftime(yesterday,…
devmrh
  • 1,171
  • 4
  • 19
  • 46
1
vote
1 answer

Can't retrieve symbols from KDB using QPython

I am trying to pull a KDB table into a python dataframe. The table is created successfully, all float columns are visable but symbol columns are blank. I am using: with qconnection.QConnection(host = 'XXXX', port = 5001, pandas = True) as q: df =…
1
vote
0 answers

How to turn on the phone flashlight with Qpython?

I coded a Python program to make time laps with the Androidhelper library, only I have one last problem: turn on the light of the phone when it is dark I have searched the documentation of Androidhelper but it seems to me that you can't control the…
Etlok
  • 23
  • 3
1
vote
0 answers

Pip install is too slow

Hello I am trying to install a few modules in Qpython but is really slow, I also tried using the alternative with Qpypi and its just really slow, my download rate is between 5KBs and 10KBs... I am using a Samsung 10+ Android Version 11 QPython…
Baffometo
  • 41
  • 6
1
vote
0 answers

qpython -(contact list command)

I wrote this command in editor qpython3 in my Android Handy.(Mi A3) Why I get (name not define) this error? MY CODE: a = contactsGetIds() print(a) Error: /data/user/0/org.qpython.qpy3/files/bin/qpython3-android5.sh …
shin shad
  • 11
  • 1
1
vote
1 answer

Timeout in what units

Is the timeout in qpython.qconnection.QConnection in any specific units, or it is just non-dimentional number? From my experience, number 3000.0 corresponds roughly to 20 seconds. Ref: Timeout in qconnection.QConnection
Matthew
  • 67
  • 2
  • 11
1
vote
0 answers

warning and error messages upon clicking QPYPI CLIENT

I am new to coding with qpython. I am facing warning and error messages upon clicking QPYPI CLIENT. What could be the issue ntry: type 0x6ffffffe arg 0x12458 WARNING: linker: libpython2.7.so.1.0: unused DT entry: type 0x6fffffff arg 0x2 WARNING:…
1 2
3
14 15