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

Only tensorflow v. 1 supported? #1

Open
nbecker opened this issue Dec 9, 2021 · 3 comments
Open

Only tensorflow v. 1 supported? #1

nbecker opened this issue Dec 9, 2021 · 3 comments

Comments

@nbecker
Copy link

nbecker commented Dec 9, 2021

In a first test I created a new venv, then pip install -r requirements.txt,
then python ./train_dqn_agent.py.
I get:
ModuleNotFoundError: No module named 'tensorflow.contrib'

Does this mean only tf 1.x will work? requirements.txt does not specify tf version, I got 2.5.0

@aldebaro
Copy link
Contributor

aldebaro commented Dec 9, 2021

Thanks for your feedback. We will check and report here.

@aldebaro
Copy link
Contributor

aldebaro commented Dec 9, 2021

Sorry, but Stable-Baselines 2 restricts us to use tf 1.x. Based on your contribution, we have updated the readme to inform:
Please note that the Stable-Baselines 2 documentation (https://stable-baselines.readthedocs.io/en/master/guide/install.html) states that ``Stable-Baselines supports Tensorflow versions from 1.8.0 to 1.15.0, and does not work on Tensorflow versions 2.0.0 and above. PyTorch support is done in Stable-Baselines3''. Hence, you need to adopt Tensorflow 1.x when executing the RL code.

@cleversonahum
Copy link
Member

It can also be a problem with the python version you are using @nbecker , since tensorflow 1.X is not available for Python versions >3.7 (https://pypi.org/project/tensorflow/1.15.5/). For instance, it seems to work using Python 3.7 and installing tensoflow 1.14.0. I've just sent a pull request #2 that adds this information in the README and adds the tensorflow version into requirements file.

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