You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I attempted to run Broccoli with Python 3.8 I got this error:
Traceback (most recent call last): File "broccoli.py", line 145, in <module> broccoli_step1.step1_kmer_clustering(directory, extension, length_kmer, min_aa, nb_threads) File "/Users/5tl/Downloads/Broccoli-1.2/scripts/broccoli_step1.py", line 55, in step1_kmer_clustering results_2 = tmp_res.get() File "/Users/5tl/anaconda3/envs/broccoli/lib/python3.8/multiprocessing/pool.py", line 771, in get raise self._value NameError: name 'list_files' is not defined
It appears the below hack was broken between Python 3.6 and 3.8:
# convert the parameters to global variables (horrible hack)
I was able to fix this for the first step by zipping together all of the arguments for the process_file function:
Thanks for pointing this issue.
I've only used Python 3.6 and wasn't aware of this bug. I will change the readme file to point to Python 3.6 / 3.7 (instead of 3.6+) and will correct the code when I have some time to do it.
When I attempted to run Broccoli with Python 3.8 I got this error:
Traceback (most recent call last): File "broccoli.py", line 145, in <module> broccoli_step1.step1_kmer_clustering(directory, extension, length_kmer, min_aa, nb_threads) File "/Users/5tl/Downloads/Broccoli-1.2/scripts/broccoli_step1.py", line 55, in step1_kmer_clustering results_2 = tmp_res.get() File "/Users/5tl/anaconda3/envs/broccoli/lib/python3.8/multiprocessing/pool.py", line 771, in get raise self._value NameError: name 'list_files' is not defined
It appears the below hack was broken between Python 3.6 and 3.8:
# convert the parameters to global variables (horrible hack)
I was able to fix this for the first step by zipping together all of the arguments for the
process_file
function:converting the multiprocessing call from
map_async
tostarmap_async
:and updating the definition for the
process_file
function and variable assignments to reflect the newstarmap_async
call:It seems a similar fix is required for each step of the pipeline to make it compatible with the latest version of Python.
The text was updated successfully, but these errors were encountered: