Questions tagged [pydroid]

Pydroid is a Python environment for Android. There are versions for Python 2 and Python 3.

Pydroid is a Python environment for Android.

There are versions for Python 2 and Python 3.

Code samples are included, as well as samples for the use of different libraries (numpy, matplotlib, kivy, tkinter, ...).

97 questions
0
votes
1 answer

Does Pydroid recognize random.choice?

Here is my code user_action = input("enter rock, paper, or scissors: ") possible_action = ["rock", "paper", "scissors"] computer_action = random.choice(possible_action) and it tells me that it's an invalid variable. Am I doing something wrong or…
0
votes
0 answers

How can I grant android permission in jnius using pydroid3

I've tried reading the documentation for jnius but it doesn't provide much help for beginners. I want my program to be able to read sms, but that isn't available in plyer yet, hence I have to use jnius and I'm having problems granting…
0
votes
0 answers

How to render text with latex in Pydroid 3 interpreter?

I am trying to generate scientific symbolic writing using sympy in Pydroid 3. I have tried using Pydroid's interpreter and also Jupyter console running IPython on Pydroid's terminal.The Interpreter is using ASCII printer and unicode. I want it to…
0
votes
1 answer

TA-lib library not installing in pydroid 3?

I tried all ways given in the discription in of TA-Lib. But not able to install it in my Android 10 mobile in Pydroid app. 1} pip install TA-Lib It gives error. Talib library cannot found
Suraj Shejal
  • 640
  • 3
  • 19
0
votes
0 answers

Visualization install problem in Pydroid 3

I am a beginner at python. I don't have any pc where i can code so i use my android mobile phone to write program. I wanted to created a game something like flappy bird for that i need a module called "Visualization". But i can't install that.…
Sojib
  • 1
  • 3
0
votes
0 answers

Run bash script from pydroid inbuilt terminal. Install miniconda on Android. Access sdcard from UserLAnd

chd.sh #! /bin/bash cd django/hellodjango exec bash python manage.py runserver chd.py # a=`python chd.py`;cd $a import os new_dir = "django/hellodjango" os.chdir(new_dir) are the two ways I have tried. Also, on terminal I have tried, . …
Subham
  • 397
  • 1
  • 6
  • 14
0
votes
2 answers

OpenCV-python not importing

I am using Pydroid to code in android. Though it is an ARM machine so I downloaded OpenCV-python wheel from PiWheels and successfully installed it using pip. But i can't import OpenCV anyways. Please help. Here is what I tried: /storage/emulated/0 $…
GourobDev
  • 13
  • 1
  • 4
0
votes
1 answer

AttributeError: 'int' object has no attribute 'split' keeps recurring when I tried to install jupyter notebook

The error is relined out...maybe aan up parsing issue? What should I do in terminal emulator to solve the issue? I want to install jupyter on my Android and I tried several times on pydroid but always got stuck in this error... BTW... my device is…
Slowman
  • 7
  • 4
0
votes
2 answers

Making a mobile app that just runs a specific python script

I want to run a python script that I've made on a phone but as its standalone application. Is there a way to use pydroid to make my script its standalone application. When you launch my app it has pydroid under the hood that just executes my script…
BreezeWind
  • 618
  • 1
  • 9
  • 18
0
votes
0 answers

Reading GPS data from android device with Python

I am trying to read data from an Android device with Python using Pydroid3. I first tried the following: import android, time droid = android.Android() droid.startLocating(0, 0) event = droid.eventWait(1000).result if event['name'] == "location": …
ChrRing
  • 1
  • 1
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

Installing Error of Shapely and GDAL on pydroid

Pydroid is a good app for beginners and others for running python on android. I could install many useful libraries without any problems, but I don't understand why some libraries such as GDAL, Shapely, Pyproj could not be installed. Installation…
Khaled
  • 159
  • 3
  • 10
0
votes
1 answer

How do I make the Checkbutton's variable work and show some buttons on the screen?

from Tkinter import * window = Tk() CheckVar1 = IntVar() cbttn = Checkbutton(text="Caps?", variable = CheckVar1, \ onvalue = 1, offvalue = 0, height=5, \ width = 20) cbttn.grid(row=3, column=0) while True: if CheckVar1 == 0: a =…
-1
votes
0 answers

What are some tips for begginers for a person coding python on android

I am decent at python and I have been practicing on mobile alot. I need some help on what text based pojects i should do and how. I tried googling it an got bad results, I am expecting some good projects that will take me around 2 hours to code that…
Pixel
  • 1
-1
votes
0 answers

Pyopengl on pydroid3

Trying to get pyopengl working with Pydroid 3 on my android and can't quite get it to work. It throws me an error when I try to import it: Traceback (most recent call last): File "/data/user/0/ru.iiec.pydroid3/files/temp_iiec_codefile.py", line 3,…