Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install on macos: No module named 'tensorflow.contrib' #9

Closed
mhstnsc opened this issue Dec 19, 2019 · 2 comments
Closed

Cannot install on macos: No module named 'tensorflow.contrib' #9

mhstnsc opened this issue Dec 19, 2019 · 2 comments

Comments

@mhstnsc
Copy link

mhstnsc commented Dec 19, 2019

After following the installation instructions.
I used pip3 as python2 was failing to install the atari lib.
I also upgraded dopamine.

I am running in an python3.7 virtual env

Successfully installed Pillow-6.2.1 dopamine-rl-3.0.1
mhstnsc-mac:~/personal/recsim/recsim [master ?] $ ./start.sh
Traceback (most recent call last):
  File "main.py", line 33, in <module>
    from recsim.agents import full_slate_q_agent
  File "/usr/local/lib/python3.7/site-packages/recsim/agents/__init__.py", line 19, in <module>
    from recsim.agents import full_slate_q_agent
  File "/usr/local/lib/python3.7/site-packages/recsim/agents/full_slate_q_agent.py", line 22, in <module>
    from recsim.agents.dopamine import dqn_agent
  File "/usr/local/lib/python3.7/site-packages/recsim/agents/dopamine/dqn_agent.py", line 23, in <module>
    from dopamine.agents.dqn import dqn_agent
  File "/usr/local/lib/python3.7/site-packages/dopamine/agents/dqn/dqn_agent.py", line 27, in <module>
    from dopamine.discrete_domains import atari_lib
  File "/usr/local/lib/python3.7/site-packages/dopamine/discrete_domains/atari_lib.py", line 54, in <module>
    from tensorflow.contrib import layers as contrib_layers
ModuleNotFoundError: No module named 'tensorflow.contrib'
@mhstnsc mhstnsc closed this as completed Dec 19, 2019
@mhstnsc mhstnsc reopened this Dec 19, 2019
@cwhsu-google
Copy link
Contributor

Thank you for using RecSim. What is the version of tensorflow? Could you try tensorflow 1.15 as said in
https://github.com/google/dopamine/blob/master/README.md#mac-os-x

@mhstnsc
Copy link
Author

mhstnsc commented Dec 19, 2019

this will probsbly work, thx, closing this not to leave stuff open

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

No branches or pull requests

2 participants