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
1
vote
3 answers

Create a module in qpython 3

Is there any way to create my own module in qpython3 ? If there is, it would be great to fix my code properly, without going all the way down to fix just onde line.
1
vote
2 answers

Syntax error when importing openpyxl in Qpython 3 under Android

I installed Qpython3 and openpyxl (through pip) onto my Lenovo A3300-H tablet (Android 4.4.2). Both installations went ok, but when I tried an "import openpyxl" on the console, I got an error message apparently related to a syntax-related error in…
achamoux
  • 11
  • 3
1
vote
1 answer

QPython unicode string

In QPython3, a line like s = u"Hello" raises a syntax error for some reason. I want to install a module that uses such code (namely xlwt) and therefore pip install xlwt fails. This question is very similar but the workaround does not work since the…
Jacques Gaudin
  • 15,779
  • 10
  • 54
  • 75
1
vote
0 answers

Reading / parsing text files

I have a script that reads data, process it, and prints an output. The script is not running in the directory where it is saved. I tried to change directory via OS.chdir, but still I get the error "file not found". I placed the scripts in the phone…
CaRcO
  • 11
  • 1
1
vote
0 answers

Qpython, socket connection error

I'm learning server- and client-side connections: What I'm attempting to do is connecting server- and client-side scripts with each other on Qpython(android) The problem is when I run it, it gives me this: "ConnectionRefusedError: Errno [111]…
Limitless_ZA
  • 66
  • 2
  • 11
1
vote
2 answers

Offline Speech Recognition in qpython3

I have been trying to make a qpython program that uses sl4a.Android.recognizeSpeech function. The functionality works fine online. In my phone settings, I turned on and downloaded offline speech recognition and google now works fine offline, but…
Ryzokuken
  • 40
  • 1
  • 11
1
vote
1 answer

How to create a module[qpython3]

Noob alert! I'm wondering how you go about importing a module(one made in qpython)? I've tried making a new folder and adding a setup.py then trying to import but just get error about module not found(or something).. Thanks in advance
1
vote
1 answer

QPython 3 console

I've recently begun programming with QPython3 on my android phone, and I've found it slightly annoying that the console pops up whenever I run a script. I often have it sending the output through a Toast since I usually only need the information for…
0
votes
0 answers

Refreshing a webpage using Androidhelper in Qpython3

import androidhelper a="https://www.bing.com/search?q=a&PC=SAADAND&form=LWS001&ssp=1&cc=IN&setlang=en-gb&darkschemeovr=1&safesearch=moderate" androidhelper.Android().startActivity("android.intent.action.VIEW", a) This my code so far and it's…
0
votes
1 answer

Is there a way to do wj with aggration on columns from the left table?

I have below code. weight is from the right table, and the aggregation works. weightLeft is from the left table, and the aggregation doesn't work. Is it possible to make weightLeft works? t:([]sym:3#`ibm;time:10:01:01 10:01:04 10:01:08;price:200 201…
H42
  • 725
  • 2
  • 9
  • 28
0
votes
1 answer

wj failed for columns' sum product

I have below code and I want to do sumproduct. When I do sum(weight) at wj, it works. But if I do sum(weight*price) at wj, it failed. How can I do the sumproduct? Thanks!! t:([]sym:3#`ibm;time:10:01:01 10:01:04 10:01:08;price:100 101…
H42
  • 725
  • 2
  • 9
  • 28
0
votes
0 answers

Running python server on phone to gain access to my pc

I have these 2 script for a backdoor, one of them is for the client the other one for a server, both in python. When I try to run the server script to give commands to my pc that is running the client script, qpython gives me the following error "…
Delete
  • 1
  • 1
0
votes
0 answers

SL4A detect the keyword on background using speech recognition

I just want to ask is possible to recoginize a keyword on background using Speech Recognition? It works when i run the qpython but wont in background i, i want if a device will heard the keyword Background
0
votes
0 answers

problems in installing python packages in qpython3

I'm intermediate in python and I started learning about ML. I use qpython3 app on my android phone and as I need to use some packages such as numpy, I have to install them. when I run the command pip install numpy I get an error that says that…
tfk
  • 13
  • 4
0
votes
0 answers

how to read the pop-up dialog box on the screen I want to read the text it contains by Python

want to read the pop-up dialog box on the screen I want to read the text it contains by Python Please helplook screen ](https://i.stack.imgur.com/TrjP6.png)](https://i.stack.imgur.com/TrjP6.png) i use python to my project but i have a problem..i…