Questions tagged [qpython3]

QPython3 is a port of Python3 for android. It can run Python3 applications on android devices like mobile or tablet.

QPython3 is a port of Python3 for android. It can run Python3 applications on android devices like mobile or tablet.

89 questions
0
votes
0 answers

qpython.qreader.QReaderException: Attempt to read data out of buffer bounds

I want to stream my data(which I get from the third party APIs) into the KDB+ database. For this, I installed the following versions of: KDB+ : KDB+ 4.0 2021.07.12 Copyright (C) 1993-2021 Kx Systems qpython3 1.0.1 :…
Dev D
  • 9
  • 2
0
votes
1 answer

QPython3 - Android One - How to open Browser URL and save page as HTML file?

Simply put, how can I with QPython3 in my phone (Nokia w Android One), open a browser (any browser), go to a URL, and do a SAVE-AS on the page to store it in the /Downloads folder, as a single HTML file? So far I have this code: import…
Fandango68
  • 4,461
  • 4
  • 39
  • 74
0
votes
0 answers

How to install a downloadad package in qpython3

Iam just downloaded some python package from pypi.org. Then iam tried to install the packeges to qpython3. But i can't Do it import numpy ModuleNotfoundError:no module named numpyis a way to fix this?
0
votes
1 answer

Read call log from Android Python

I'm trying to compile Python code directly on my Android phone via QPython 3L and it's fine for some initial examples. Now I want to read the call log and here is my code. from androidhelper import sl4a droid = sl4a.Android() myconst =…
user11323942
0
votes
1 answer

GPS location refresh rate extremely low

I'm trying to access GPS data from androidhelper, but the 'location' events come at about 1 minute intervals. I'm testing in a Motorola e5, with Android 8. The basic code is: import…
0
votes
0 answers

How can we intergrate kanji to be an available in the qpython 3 in the console side as it is in the interpreter side?

I'm trying to figure out how I can type in kanji from the console side of qpython3. Maybe it's the phone i'm using. They say that the program acts differently depending on the phone/version/etc. Is anybody else experiencing this problem, maybe with…
0
votes
2 answers

'No such file or directory' error Python for android

I have tried this on both Pydroid 3, and QPython3. My question is very similar to this question which hasn't received an answer. I have a file saved in my internal storage, with the file path /storage/emulated/0/qpython/projects3/filename.xlsx, but…
John Doe
  • 189
  • 2
  • 9
0
votes
1 answer

Call/Send SMS with SIM card 1 and 2 with qpython3

I have managed to make a call and send an SMS with sl4a for python but it is using the default selected SIM in android system settings. Is there a way to force SIM 1 or 2 from inside the python code? import sl4a droid =…
john
  • 23
  • 1
  • 5
0
votes
1 answer

QPython requests SSL error- no available ciphers

Ive been trying to use requests.get for sometime now but I keep getting this error on Qpython HTTPSConnectionPool(host='google.com', port=443): Max retries exceeded with url: / (Caused by SSLError( SSLError("bad handshake: Error([('SSL…
james beastly
  • 31
  • 1
  • 5
0
votes
2 answers

How can I access phone number in android with q python?

I try to access all phone number that calling me in Q python. I wrote this code: import androidhelper w=1 while (w == 1): droid = androidhelper.Android() droid.startTrackingPhoneState() phonest = droid.readPhoneState() number =…
cheamin
  • 33
  • 1
  • 6
0
votes
1 answer

Python 3 if/elif issue

i have a if/elif statement in my code snippet below... for some reason even when i trigger the elif statement the console still prints the if statement instead of the elif... i'm sure i am missing something stupid. use_stim = str.lower(input("Do…
Stagger
  • 115
  • 2
  • 3
  • 11
0
votes
0 answers

Qpython3 file deletion

So I've made a script that would delete files with a specific file extension, but how would I go about adding secure deletion of the file? import sys import os from os import listdir dir_name = "storage/emulated/0/Download/" test =…
0
votes
1 answer

run python 2.x on android 7.1.x

I have an android TV Box running android 7.1.x, that I want to execute a Python 2.x script. It seems that Qpython will not install on this device. I Installed Qpython 3 The script I want to run is…
user178167
  • 43
  • 2
  • 7
0
votes
0 answers

Getting docstring in QPython3

So far all the modules I tested (all in the standard Python library) do not print anything when I run __doc__. help() works, but I am after __doc__ specifically. I have tried this without…
Xantium
  • 11,201
  • 10
  • 62
  • 89
0
votes
1 answer

Error with usage of int() in Python (QPython)

I have a pretty strange problem with int() Sometimes, even if it's really just numbers, I'm getting the error "[...] In line 2: Invalid literal with Base 10: '' " But the value is just a number (0) It's so strange... The following code causes…
M-Try
  • 1
  • 3