Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

AttributeError: Can't pickle local object 'modify_gym_env_render.<locals>.render' #12

Open
Semizenbora opened this issue Mar 11, 2019 · 2 comments

Comments

@Semizenbora
Copy link

Hey,

When I try to run python main.py from examples, I get the following error. How may I solve this?
Thanks in advance.

C:\chainerrl-visualizer\examples\a3c_breakout>python main.py
C:\Anaconda3\envs\tens\lib\site-packages\gym\logger.py:30: UserWarning: �[33mWARN: <class 'chainerrl.wrappers.atari_wrappers.FrameStack'> doesn't implement 'reset' method, but it implements deprecated '_reset' method.�[0m
warnings.warn(colorize('%s: %s'%('WARN', msg % args), 'yellow'))
Traceback (most recent call last):
File "main.py", line 68, in
launch_visualizer(agent, env, ACTION_MEANINGS, raw_image_input=True)
File "c:\chainerrl-visualizer\chainerrl_visualizer\launcher.py", line 50, in launch_visualizer
server_process.start()
File "C:\Anaconda3\envs\tens\lib\multiprocessing\process.py", line 105, in start
self._popen = self._Popen(self)
File "C:\Anaconda3\envs\tens\lib\multiprocessing\context.py", line 223, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "C:\Anaconda3\envs\tens\lib\multiprocessing\context.py", line 322, in _Popen
return Popen(process_obj)
File "C:\Anaconda3\envs\tens\lib\multiprocessing\popen_spawn_win32.py", line 65, in init
reduction.dump(process_obj, to_child)
File "C:\Anaconda3\envs\tens\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
AttributeError: Can't pickle local object 'modify_gym_env_render..render'

(tens) C:\chainerrl-visualizer\examples\a3c_breakout> Directory C:\chainerrl-visualizer\examples\a3c_breakout\log_space is already exists. Do you use this directory for log output? (y/n) y
'y' is not recognized as an internal or external command,
operable program or batch file.

@sykwer
Copy link
Contributor

sykwer commented Mar 13, 2019

Sorry, ChainerRL Visualizer is not tested on Windows. Multiprocessing in python sometimes does not work well on Windows.

@hindamosh
Copy link

So any way to work around it to solve this issue , I have the same problem with my selenium script

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants