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

tensorflow>=1.8.0 now installs 2.0 alpha which breaks some things #155

Closed
cottrell opened this issue May 18, 2019 · 1 comment
Closed

tensorflow>=1.8.0 now installs 2.0 alpha which breaks some things #155

cottrell opened this issue May 18, 2019 · 1 comment

Comments

@cottrell
Copy link

I would suggest either specifying an exact version or just converting the code to 2.0.

I'm not sure when this tensorflow pip resolving thing changed.

$ python -m spinup.run ppo --hid "[32,32]" --env LunarLander-v2 --exp_name installtest --gamma 0.999
Traceback (most recent call last):
  File "/home/cottrell/anaconda3/envs/spinningup/lib/python3.6/runpy.py", line 183, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/home/cottrell/anaconda3/envs/spinningup/lib/python3.6/runpy.py", line 109, in _get_module_details
    __import__(pkg_name)
  File "/home/cottrell/dev/spinningup/spinup/__init__.py", line 3, in <module>
    from spinup.algos.ppo.ppo import ppo
  File "/home/cottrell/dev/spinningup/spinup/algos/ppo/ppo.py", line 7, in <module>
    from spinup.utils.mpi_tf import MpiAdamOptimizer, sync_all_params
  File "/home/cottrell/dev/spinningup/spinup/utils/mpi_tf.py", line 29, in <module>
    class MpiAdamOptimizer(tf.train.AdamOptimizer):
AttributeError: module 'tensorflow._api.v2.train' has no attribute 'AdamOptimizer'
@jachiam
Copy link
Contributor

jachiam commented Jun 7, 2019

Should be fixed by @bchess PR for version pin. Thanks!

@jachiam jachiam closed this as completed Jun 7, 2019
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