Open krystophny opened 3 years ago
In examples we get the following error on macos Big Sur. Adding fork = false in profit.yaml runner section works.
fork = false
profit.yaml
/Users/ert/src/profit/profit/config.py:69: UserWarning: Config parameter 'plot' for FitConfig configuration may be unused. warnings.warn(message) ^M 0%| | 0/30 [00:00<?, ?it/s]Namespace(base_dir='/Users/ert/src/profit/examples/mockup/study', mode='run') Traceback (most recent call last): File "<string>", line 1, in <module> File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/spawn.py", line 116, in spawn_main exitcode = _main(fd, parent_sentinel) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/spawn.py", line 126, in _main
We could set the default for fork to False if macOS is detected (in defaults.py)
fork
False
defaults.py
something along the lines of:
import platform run_runner_local[‘fork’] = platform.system() != ‘Darwin’
In examples we get the following error on macos Big Sur. Adding
fork = false
inprofit.yaml
runner section works.