omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Don’t know how to install StringIO lib

    Pythonista
    lib games
    3
    3
    945
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Topgun13
      Topgun13 last edited by 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 1 Reply Last reply Reply Quote 0
      • cvp
        cvp @Topgun13 last edited by 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

        1 Reply Last reply Reply Quote 0
        • JonB
          JonB last edited by

          In python3, StringIO is contained in io.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors