Questions tagged [pythonista]

Pythonista is an integrated development environment for writing and executing Python scripts on iOS. It supports most standard modules and includes many specifically designed for using with or automating iOS.

Pythonista is an integrated development environment for writing and executing Python scripts on iOS. It supports most standard modules and includes many specifically designed for using with or automating iOS.

Description from Official Site

Pythonista is a complete development environment for writing Python™ scripts on your iPad or iPhone. Lots of examples are included — from games and animations to plotting, image manipulation, custom user interfaces, and automation scripts.

In addition to the powerful standard library, Pythonista provides extensive support for interacting with native iOS features, like contacts, reminders, photos, location data, and more.

Useful Links

96 questions
0
votes
1 answer

Why didn't I receive cryptography.hazmat.bindings._padding when installing cryptography with StaSh?

I am using Pythonista for iOS and installed the cryptography package using the latest version of StaSh. It looked like there was an issue during installation but it still seemed to be successful: Extracting archive file ... Archive…
0
votes
2 answers

Pythonista URL Scraper on iOS

I’ve been attempting to compile a script to give me table data from a few xpaths from https://www.worldometers.info/coronavirus/ to display info from just 4 of the hundreds of datasets. The issue I’ve run into after playing around with various…
0
votes
2 answers

Using pytds with sqlalchemy

I am trying to connect to an SQL Server from a version of python (pythonista) that requires that I use pure python drivers. I am able to connect using pytds if I don't use sqlalchemy so I know this works. However, I would like to be able to use…
ihf
  • 51
  • 1
  • 9
0
votes
1 answer

I want to play music in a loop

I make music player in Pythonista. A single mp3 file plays fine, but if I play multiple mp3 files, they all play at the same time. Anyone has any idea? This is my code: import sound import time import glob fileList = glob.glob("i7/*") #my…
TestSS
  • 3
  • 3
0
votes
0 answers

ObjCinstance to PIL image

I am designing a face recognition system for a course. For converting I Currently i use Image.writeToFile_atomically_(filename, True) which saves the image and I can open the image but it is very slow. I need to be able to convert ObjCinstance into…
John
  • 23
  • 5
0
votes
0 answers

python script fails in certain environments

I am trying to learn Python in several environments. I can't figure out why this script, provided by armatita works perfectly in CodeRunner for Mac, but does not provide touch functions in Anaconda/Spyder or Pythonista for iOS. Is there something I…
djl
  • 15
  • 4
0
votes
1 answer

Is there anyone who has successfully installed Selenium on iOS?

I could install it using stash (“pip install selenium”) on iPhone but it doesn’t accept any webdriver. Traceback error message: "Exception: SafariDriver was not found; are you running Safari 10 or later? You can download Safari at…
0
votes
1 answer

What am I doing wrong (Pythonista name error)?

I'm using Pythonista for python and am trying to use Scene to program my game. I am completely new to this. I use colortaleTitle as the name of a SpriteNode, but keep getting a name error stating that colortaleTitle is undefined. I am following the…
Kr4ini4k
  • 13
  • 3
0
votes
0 answers

Trying to import a .wav file to use in my Pythonista (3) script from my computer

I am making a little game on Pythonista 3, and I want to transfer an audio(.wav) file from my computer to use in this game, but cannot figure out how. I have an IPhone 4 on ios 9.3.5. I have tried through a simple USB connection, but apple dosen't…
Bruski
  • 3
  • 1
  • 3
0
votes
1 answer

Use UINotificationFeedbackGenerator in pythonista Objc_util

I'm trying to use UINotifcationFeedbackGenerator in pythonista, from objc_util import * feedbackGenerator = ObjCClass('UINotifcationFeedbackGenerator') feedbackGenerator =…
ArandomDev
  • 125
  • 2
  • 10
0
votes
1 answer

Python function requires path but I have an image stored in memory

I have a python function (using the Pythonista app) to show an image in the console. I have the image saved in a BytesIO object but the function requires a file path. Is there any way to give it a path to the bytesIO or somehow give it the image…
Ethan Brews
  • 131
  • 1
  • 5
0
votes
1 answer

Create auto-complete TextField in Pythonista 3

I want to create an auto-complete TextField. I mean - when you type something in the field and see a prompt list below. The prompt list is an array with possible values. The best way to explain it show a similar picture. I already have some…
SavinI
  • 180
  • 4
  • 15
0
votes
1 answer

Asset.get_image raises AttributeError: 'NoneType' on image in Camera Roll

I have a script that steps through all of the images in the standard Camera Roll asset collection. My loop to step through the Camera Roll album works just fine, however, there are some images that raise an AttributeError exception on…
billbris
  • 53
  • 8
0
votes
1 answer

How i can get access for '~/Applications' of iOS?

I'm trying to enter to this folder using: import os location=os.chdir('/Applications') for file in os.listdir(location): print(file) RETURN: 'Opesation not permitted' When i run this, in the pythonista app, appears an alert message But…
0
votes
0 answers

Code for location proximity in Pythonista

I am writing code in Pythonista for iOS. I am trying to create a program that can "sense" the proximity of my phone to a location and then trigger actions once near that location. I am using the location module in Pythonista and I have only been…
oezeadi
  • 77
  • 1
  • 7