d4g33z / ruffus

Automatically exported from code.google.com/p/ruffus
MIT License
0 stars 0 forks source link

UnboundLocalError: local variable 'pool' referenced before assignment #57

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using the latest version from the mercurial repository I am getting an error 

'''
pipeline_run(end)
File "build/bdist.linux-x86_64/egg/ruffus/task.py", line 2881, in pipeline_run 
UnboundLocalError: local variable 'pool' referenced before assignment
'''

I did a quick check of the source tree and found this line was edited in commit 
e86872dab020. Rolling back to the previous commit, 7e053111c239, fixes the 
issue.

P.S. I am excited to see multi threading support is being worked on :)

Thanks,
Andy

Original issue reported on code.google.com by AndrewJL...@gmail.com on 25 Sep 2013 at 1:56

GoogleCodeExporter commented 9 years ago
Sorry. Fixed in the source tree. Does this help?

I am not working on multi-threading per se yet, just incorporating changes 
suggested by Andreas Heger. Because of the modularity of python 
multiprocessing, this should however cause multithreading to just work. Fingers 
crossed.

Original comment by bunbu...@gmail.com on 25 Sep 2013 at 12:25

GoogleCodeExporter commented 9 years ago
Looks like that fixes the issue.

Hope the multithreading is successful. It would be much more natural to use 
when running on a cluster.

Thanks,
Andy

Original comment by AndrewJL...@gmail.com on 25 Sep 2013 at 6:18