Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError: daemonic processes are not allowed to have children - dask_optuna #26

Open
aktiver opened this issue Jun 22, 2022 · 0 comments

Comments

@aktiver
Copy link

aktiver commented Jun 22, 2022

@jrbourbeau -

Code:

10 with joblib.parallel_backend("dask"):
---> 11     study.optimize(objective, n_trials=2, n_jobs=3)
     13 print(f"best_params = {study.best_params}")

Error:

File /usr/lib/python3.8/multiprocessing/process.py:118, in start()
    115 assert self._popen is None, 'cannot start a process twice'
    116 assert self._parent_pid == os.getpid(), \
    117        'can only start a process object created by current process'
--> 118 assert not _current_process._config.get('daemon'), \
    119        'daemonic processes are not allowed to have children'
    120 _cleanup()
    121 self._popen = self._Popen(self)

AssertionError: daemonic processes are not allowed to have children

@aktiver aktiver changed the title NameError: name 'pformat' is not defined - dask_optuna AssertionError: daemonic processes are not allowed to have children - dask_optuna Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant