DistributedES icon indicating copy to clipboard operation
DistributedES copied to clipboard

hello,I have this question when I run this code!

Open BCWang93 opened this issue 7 years ago • 3 comments

I get this error when I run this code.Can you help me ?Thanks! D:\Python\lib\site-packages\gym\envs\registration.py:14: PkgResourcesDeprecationWarning: Parameters to load are deprecated. Call .resolve and .require separately. result = entry_point.load(False) WARN: gym.spaces.Box autodetected dtype as <class 'numpy.float32'>. Please provide explicit dtype. WARN: gym.spaces.Box autodetected dtype as <class 'numpy.float32'>. Please provide explicit dtype. WARN: gym.spaces.Box autodetected dtype as <class 'numpy.float32'>. Please provide explicit dtype. WARN: gym.spaces.Box autodetected dtype as <class 'numpy.float32'>. Please provide explicit dtype. Traceback (most recent call last): File "e:\VScode project\rl_ga\DistributedES\natural_es.py", line 154, in all_tasks() File "e:\VScode project\rl_ga\DistributedES\natural_es.py", line 150, in all_tasks for p in ps: p.start() File "D:\Python\lib\multiprocessing\process.py", line 105, in start self._popen = self._Popen(self) File "D:\Python\lib\multiprocessing\context.py", line 223, in _Popen return _default_context.get_context().Process._Popen(process_obj) File "D:\Python\lib\multiprocessing\context.py", line 322, in _Popen return Popen(process_obj) File "D:\Python\lib\multiprocessing\popen_spawn_win32.py", line 65, in init reduction.dump(process_obj, to_child) File "D:\Python\lib\multiprocessing\reduction.py", line 60, in dump ForkingPickler(file, protocol).dump(obj) AttributeError: Can't pickle local object 'PendulumConfig.init..' Traceback (most recent call last): File "", line 1, in File "D:\Python\lib\multiprocessing\spawn.py", line 99, in spawn_main new_handle = reduction.steal_handle(parent_pid, pipe_handle) File "D:\Python\lib\multiprocessing\reduction.py", line 87, in steal_handle _winapi.DUPLICATE_SAME_ACCESS | _winapi.DUPLICATE_CLOSE_SOURCE) PermissionError: [WinError 5] 鎷掔粷璁块棶銆?

BCWang93 avatar Dec 01 '19 07:12 BCWang93

Sorry I never run this on windows.

ShangtongZhang avatar Dec 01 '19 08:12 ShangtongZhang

Sorry I never run this on windows.

Thanks,I also solved this error!On the other hand ,how can I see the Result curve?Thanks!

BCWang93 avatar Dec 01 '19 09:12 BCWang93

@BCWang93 Can you share how you fixed this pickling error on windows? Thanks

dhineshkumar-r avatar Apr 15 '20 21:04 dhineshkumar-r