Closed kolt-mcb closed 4 years ago
you are having an issue running environments in multiprocessing in ubuntu? I use this frequently
This code example isn't easy for me to run, but you probably shouldn't have envs shared across processes. Instead have each process create its own copy of the env, after forking. You can also use a multiprocessing spawn
context instead of fork
.
Did that fix the issue?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I receive the following error when attempting to render any environment on osx.
The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().
here is my code
` def jobTrainer(envName):
` and
` def trainPool(envNum,species,queue,env,attemps): # creates multiprocessing job for pool and trains pool
`