I wanted to see if the retrying library would work. I used pip install under stash to install retrying (and six which seemed to be a dependency). Installed seemed to work but I tested and got this:
from retrying import retry
import random
@retry
def unrealiable():
... if random.randint(0,10) > 1:
... raise IOError("broken")
... else:
... return "awesome"
...
Traceback (most recent call last):
File "
File "/private/var/mobile/Containers/Shared/AppGroup/637EEB4B-60E1-4F48-A8E5-66F2C7D9FCA2/Documents/site-packages/retrying.py", line 42, in retry
return wrap_simple(dargs[0])
File "/private/var/mobile/Containers/Shared/AppGroup/637EEB4B-60E1-4F48-A8E5-66F2C7D9FCA2/Documents/site-packages/retrying.py", line 36, in wrap_simple
@six.wraps(f)
AttributeError: 'module' object has no attribute 'wraps'
Can anyone please tell me what I'm missing?