sakakibara-yuuki / rl

A modular, primitive-first, python-first PyTorch library for Reinforcement Learning.
MIT License
0 stars 0 forks source link

Do SAC.py move ? #4

Open sakakibara-yuuki opened 10 months ago

sakakibara-yuuki commented 10 months ago
python sac.py
from tensordict import unravel_key
ImportError: cannot import name 'unravel_key' from 'tensordict' (/home/sakakibara/project/rl/.rl/lib/python3.9/site-packages/tensordict/__init__.py

これはhttps://github.com/pytorch-labs/tensordict/issues/153#issue-1523860188 によるとディレクトリにtensordict.pyがあることに起因する

pip list
tensorboard              2.14.0
tensorboard-data-server  0.7.1
tensordict               0.1.2
tensordict-nightly       2023.9.10
tomli                    2.0.1
torch                    2.0.1
torchrl                  0.1.1+dc573fd /home/sakakibara/project/rl
sakakibara-yuuki commented 10 months ago
pip uninstall -y tensordict

以前のエラーは消えた。

しかし

ImportError: cannot import name 'TensorDictModule' from 'tensordict.nn' (unknown location)

has raised

sakakibara-yuuki commented 10 months ago
python -c "from tensordict.nn import TensorDictModule"

is success. but

python -c "from tensordict.nn import TensorDictModule"

is failed.

もしかして、nightlyって差分だけ?

sakakibara-yuuki commented 10 months ago
pip install git+https://github.com/pytorch-labs/tensordict
python sac.py

動いた

sakakibara-yuuki commented 10 months ago
'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1129)

祭り