evaluating-rewards icon indicating copy to clipboard operation
evaluating-rewards copied to clipboard

Conflicting versions of stable-baselines and imitation

Open dashpritam opened this issue 1 year ago • 3 comments

How do I resolve the following conflict? Please help.

I have tried both imitation@tf-master and tf-master-compatibility branch

Linux, Python 3.7 Tensorflow 1.15

The conflict is caused by:
    evaluating-rewards 0.1.1 depends on stable-baselines 2.10.3a0.-WIP- (from git+https://github.com/hill-a/stable-baselines.git)
    imitation 0.1.1 depends on stable-baselines~=2.10.1

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

dashpritam avatar Jun 14 '23 21:06 dashpritam

Hello, I'm also seeing this error when installing this repo.

> python -V
Python 3.7.17
> pip list
Package    Version
---------- -------
pip        23.1.2
setuptools 47.1.0

OS: MacOS Ventura 13.4.1

kierad avatar Jul 12 '23 15:07 kierad

I also am getting the same issue. I attempted to solve the problem by creating forks of both the evaluating_rewards repo and and stable_baselines repo, and changing the version string in stable-baselines/stable_baselines/version/txt, and setting the dependency in evaluating-rewards/requirements.txt to point to my forked version of stable-baselines. This seems to fix the initial issue that you pointed out. However, I need to downgrade my python version to 3.7 in order to install tensorflow 1.15, but homebrew does not support python 3.7. Not sure if there is a workaround beyond a manual installation of python 3.7

sibiraja avatar Oct 23 '23 06:10 sibiraja

Update, the best workaround seems to be using a Docker container as mentioned by Dr. Gleave here:

sibiraja avatar Oct 26 '23 04:10 sibiraja