'tqdmm' object has no attribute 'leave' #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When attempting to run the example on in readme, I produce the following error.
from time import sleep
from parfor import parfor
@parfor(range(10), (3,))
def fun(i, a):
sleep(1)
return a*i**2
print(fun)
File "", line 3, in
@parfor(range(10), (3,))
File "---/parfor/init.py", line 234, in decfun
return pmap(fun, *args, **kwargs)
File "---/parfor/init.py", line 483, in pmap
return [p[i] for i in range(length)] #collect the results
File "---/parfor/init.py", line 149, in exit
if not self.leave:
AttributeError: 'tqdmm' object has no attribute 'leave'
Thanks for the report. It turns out that it doesn't work in combination with older versions of tqdm. I have updated the requirements for parfor and installation/upgrade with pip should take care of this now.
Thank you!