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.


    Is concurrent.futures supposed to work on iOS?

    Pythonista
    2
    3
    2132
    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.
    • mikael
      mikael last edited by

      All the examples I have tried on 3.5 give this exception:

      Traceback (most recent call last):
      File "/private/var/mobile/Containers/Shared/AppGroup/447A26CB-FA57-4E8A-8C34-082F55AD274F/Pythonista3/Documents/Testailut/concurr-futur.py", line 1, in <module>
      import concurrent.futures
      File "/private/var/mobile/Containers/Shared/AppGroup/447A26CB-FA57-4E8A-8C34-082F55AD274F/Pythonista3/Documents/site-packages/concurrent/futures/init.py", line 8, in <module>
      from concurrent.futures._base import (FIRST_COMPLETED,
      File "/private/var/mobile/Containers/Shared/AppGroup/447A26CB-FA57-4E8A-8C34-082F55AD274F/Pythonista3/Documents/site-packages/concurrent/futures/_base.py", line 357
      raise type(self._exception), self._exception, self._traceback
      ^
      SyntaxError: invalid syntax

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

        It looks like you have a copy of concurrent.futures in your site-packages, which seems to be for Python 2 (since it uses the old raise syntax). Try deleting that and restart Pythonista, that way the standard concurrent.futures from Python 3 should take priority again.

        mikael 1 Reply Last reply Reply Quote 2
        • mikael
          mikael @dgelessus last edited by

          @dgelessus, thanks, that was it.

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