dopamine icon indicating copy to clipboard operation
dopamine copied to clipboard

No module named 'dopamine.atari'

Open abhinavsagar opened this issue 6 years ago • 4 comments

Getting No module named 'dopamine.atari'

abhinavsagar avatar Jun 04 '19 14:06 abhinavsagar

I think it's "import dopamine.discrete_domains.atari_lib"

anttad avatar Jun 04 '19 14:06 anttad

cd dopamine.

"You can test whether the installation was successful by running the following:

cd dopamine export PYTHONPATH=${PYTHONPATH}:. python tests/dopamine/atari_init_test.py"

yakotaki avatar Jun 05 '19 09:06 yakotaki

It seems that @abhinavsagar worked with an old version of dopamine, or at least with a code which uses an old version. I am just starting to work with dopamine but I had the same issue. I think the structure of the code has been modified and that dopamine atari wrapper is now in dopamine.discrete_domains.atari_lib.

You can check the doc to see where the function you are looking for should be : https://github.com/google/dopamine/blob/master/docs/api_docs/python/index.md

anttad avatar Jun 05 '19 12:06 anttad

@RamsesT is right the new version changes import dopamine.atari.run_experiment to import dopamine.discrete_domains.run_experiment

Check out how to train a custom agent it is up to date and may help solve a lot of issues.

hamk3010 avatar Nov 07 '19 21:11 hamk3010