-
Notifications
You must be signed in to change notification settings - Fork 7
Description
I have installed QuiBL, updated the configparser as indicated in a previous comment, but get this error when I try to run it:
Analysis Started
Traceback (most recent call last):
File "", line 1, in
File "/Users/Vinny/opt/anaconda3/lib/python3.9/multiprocessing/spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "/Users/Vinny/opt/anaconda3/lib/python3.9/multiprocessing/spawn.py", line 125, in _main
prepare(preparation_data)
File "/Users/Vinny/opt/anaconda3/lib/python3.9/multiprocessing/spawn.py", line 236, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "/Users/Vinny/opt/anaconda3/lib/python3.9/multiprocessing/spawn.py", line 287, in _fixup_main_from_path
main_content = runpy.run_path(main_path,
File "/Users/Vinny/opt/anaconda3/lib/python3.9/runpy.py", line 268, in run_path
return _run_module_code(code, init_globals, run_name,
File "/Users/Vinny/opt/anaconda3/lib/python3.9/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/Users/Vinny/opt/anaconda3/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/Vinny/Desktop/QuIBL/QuIBL.py", line 338, in
inputReader(sys.argv[1])
File "/Users/Vinny/Desktop/QuIBL/QuIBL.py", line 334, in inputReader
outputFormatter(outputDict,inputDict)
File "/Users/Vinny/Desktop/QuIBL/QuIBL.py", line 305, in outputFormatter
tripletSet=Parallel(n_jobs=num_cores)(delayed(PLexMax)(triple,K,lthresh,numsteps,gAScalar) for triple in trees)
File "/Users/Vinny/opt/anaconda3/lib/python3.9/site-packages/joblib/parallel.py", line 749, in call
n_jobs = self._initialize_backend()
File "/Users/Vinny/opt/anaconda3/lib/python3.9/site-packages/joblib/parallel.py", line 546, in _initialize_backend
n_jobs = self._backend.configure(n_jobs=self.n_jobs, parallel=self,
File "/Users/Vinny/opt/anaconda3/lib/python3.9/site-packages/joblib/_parallel_backends.py", line 304, in configure
raise ImportError(
ImportError: [joblib] Attempting to do parallel computing without protecting your import on a system that does not support forking. To use parallel-computing in a script, you must protect your main loop using "if name == 'main'". Please see the joblib documentation on Parallel for more information
Any ideas on how to fix this?
Thanks,
Vinny