Skip to content

Problem with multi-process on MacOS with python 3.8 #30

Description

@marota

As seen on new release of grid2op, there are changes in multiprocess library on MacOs for python 3.8.
This piece of code

def parallel(env, actions, max_iter,nb_process,agent_seed=None,env_seed=None):

leads to errors currently when doing multi-processing

AttributeError: Can't get attribute 'TopologyAndDispatchAction_rte_case14_realistic' on <module 'grid2op.Space.GridObjects' from '/Users/antoinemarot/dev/Oracle4Grid/venv_oracle/lib/python3.8/site-packages/grid2op/Space/GridObjects.py'>
Process SpawnPoolWorker-6:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/pool.py", line 114, in worker
task = get()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/queues.py", line 358, in get
return _ForkingPickler.loads(res)
AttributeError: Can't get attribute 'TopologyAndDispatchAction_rte_case14_realistic' on <module 'grid2op.Space.GridObjects' from '/Users/antoinemarot/dev/Oracle4Grid/venv_oracle/lib/python3.8/site-packages/grid2op/Space/GridObjects.py'>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions