Forum Archive

Don’t know how to install StringIO lib

Topgun13

I found this nice site which has a lot of Pythonista games:
https://github.com/tdamdouni/Pythonista/tree/master/games

But it uses a Python lib named StringIO which I cannot install.

I have Stash installed for Python3 but the command pip install StringIO only produces the error message:
Error: Failed to fetch package release urls

Same for cStringIO. I wonder if I should activate Python2 and change the startup script for stash to run Python 2 ? Because the last commit of the game was 6 years ago.

Any help would be very appreciated.

Thanks in advance

cvp

@Topgun13 StringIo belongs to Python 2 and is already in Pythonista

You can force a script to run in Python 2 by pressing the run button and choose Python 2

JonB

In python3, StringIO is contained in io.