question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Windows compatibility?

See original GitHub issue

Does it work under Windows? I run python examples/ale/train_a3c_ale.py 4 pong --steps 100 --outdir ./output/ale/a3c and get an error:

Output files are saved in ./output/ale/a3c\20171116T000856.454199
Traceback (most recent call last):
  File "examples/ale/train_a3c_ale.py", line 151, in <module>
    main()
  File "examples/ale/train_a3c_ale.py", line 147, in main
    global_step_hooks=[lr_decay_hook])
  File "E:\Programs\Anaconda3\envs\intel35\lib\site-packages\chainerrl-0.2.0-py3
.5.egg\chainerrl\experiments\train_agent_async.py", line 234, in train_agent_asy
nc
  File "E:\Programs\Anaconda3\envs\intel35\lib\site-packages\chainerrl-0.2.0-py3
.5.egg\chainerrl\misc\async.py", line 131, in run_async
  File "E:\Programs\Anaconda3\envs\intel35\lib\multiprocessing\process.py", line
 105, in start
    self._popen = self._Popen(self)
  File "E:\Programs\Anaconda3\envs\intel35\lib\multiprocessing\context.py", line
 212, in _Popen
    return _default_context.get_context().Process._Popen(process_obj)
  File "E:\Programs\Anaconda3\envs\intel35\lib\multiprocessing\context.py", line
 313, in _Popen
    return Popen(process_obj)
  File "E:\Programs\Anaconda3\envs\intel35\lib\multiprocessing\popen_spawn_win32
.py", line 66, in __init__
    reduction.dump(process_obj, to_child)
  File "E:\Programs\Anaconda3\envs\intel35\lib\multiprocessing\reduction.py", li
ne 59, in dump
    ForkingPickler(file, protocol).dump(obj)
AttributeError: Can't pickle local object 'run_async.<locals>.set_seed_and_run'

(intel35) c:\Projects\Atari\chainerrl>Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "E:\Programs\Anaconda3\envs\intel35\lib\multiprocessing\spawn.py", line 1
06, in spawn_main
    exitcode = _main(fd)
  File "E:\Programs\Anaconda3\envs\intel35\lib\multiprocessing\spawn.py", line 1
16, in _main
    self = pickle.load(from_parent)
EOFError: Ran out of input

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
redxefcommented, Jan 4, 2018

Ok, I got it to run by hacking multiprocessing.

reduction.py:

- import pickle
+ import dill as pickle

I don’t know if I broke something else with this without noticing, but the example runs.

1reaction
hyperionfallingcommented, Mar 10, 2020

try pip install dill==0.3.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compatibility for Windows 11
Windows 10 will be compatible with most existing PC hardware; most devices running Windows 7, Windows 8, or Windows 8.1 will meet the ......
Read more >
How to change the Windows compatibility mode
In the Windows operating system, compatibility mode allows software to run as if it were doing so in an older version of Windows....
Read more >
Microsoft.Windows.Compatibility 7.0.0
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET...
Read more >
How to Set Compatibility Mode for Apps in Windows 10
How to Set Compatibility Mode for Apps in Windows 10 · 1. Right-click on an app and select Properties. · 2. Select the...
Read more >
Windows Compatibility Mode
From the drop-down menu, select Properties. Once the window is open, select the Compatibility tab. ... If using a shortcut, be sure that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found