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?
-
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 -
It looks like you have a copy of
concurrent.futures
in yoursite-packages
, which seems to be for Python 2 (since it uses the oldraise
syntax). Try deleting that and restart Pythonista, that way the standardconcurrent.futures
from Python 3 should take priority again. -
@dgelessus, thanks, that was it.