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
In trying to run the example code for albocycline, I run into an error with the multiprocessing commands. My guess is that something must have changed with the classes used in multiprocessing in newer python versions. I'm using Python 3.8.3
Number of CPU's: 8
Number of processes: 3
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-5-4e9d2c5a37fe> in <module>
4 jobs = []
5 for lam in lambda_values:
----> 6 process = p.Process(target=mp_lambdas, args=(lam,))
7 jobs.append(process)
8 jobs[-1].start() # Start the processes
TypeError: Process() missing 1 required positional argument: 'ctx'
The text was updated successfully, but these errors were encountered:
EDIT: Fixedbug for Python 3.8 by satisfying positional argument: 'ctx'
Here's what I tried:
ifversion<3.8: process=p.Process(target=function, args=(iter,))
## FIXME: Python >= 3.8: For some reason this isn't working anymore?!?!ifversion>=3.8: process=p.Process(target=function, args=(iter,), ctx=mp.get_context(method='fork'))
In trying to run the example code for albocycline, I run into an error with the multiprocessing commands. My guess is that something must have changed with the classes used in
multiprocessing
in newer python versions. I'm using Python 3.8.3The text was updated successfully, but these errors were encountered: