Closed sky-story closed 3 months ago
I think you're using Farama's D4RL package in your experiment. Please try this:
$ pip uninstall D4RL
$ d3rlpy install d4rl
In this way, d3rlpy will install my fork D4RL package from https://github.com/takuseno/D4RL , which fixes some of incompatibilities.
I think you're using Farama's D4RL package in your experiment. Please try this:
$ pip uninstall D4RL $ d3rlpy install d4rl
In this way, d3rlpy will install my fork D4RL package from https://github.com/takuseno/D4RL , which fixes some of incompatibilities.
Thanks for the suggestion!I originally installed the D4RL package using the following commands:
pip install d3rlpy
pip install git+https://github.com/Farama-Foundation/D4RL
pip install -U gym
pip uninstall pybullet
However, it appears that this setup defaults to Farama's D4RL package.
I'll give your approach a try using d3rlpy install d4rl
By the way, it seems that the command d3rlpy install d4rl
requires python 3.9?
By the way, it seems that the command d3rlpy install d4rl requires python 3.9?
I don't think so. Did you see any errors?
By the way, it seems that the command d3rlpy install d4rl requires python 3.9?
I don't think so. Did you see any errors?
@takuseno Sorry for the delayed response. Yes, I have some evidence that this issue exists. I am using Python 3.8, and when I run the command to install d4rl, I get the following error:
(drl_project) root@autodl-container-362e44a99f-d27d57c6:~# d3rlpy install d4rl
Traceback (most recent call last):
File "/root/miniconda3/envs/drl_project/bin/d3rlpy", line 5, in <module>
from d3rlpy.cli import cli
File "/root/miniconda3/envs/drl_project/lib/python3.8/site-packages/d3rlpy/cli.py", line 352, in <module>
name: list[str], upgrade: bool = False, check: bool = True
TypeError: 'type' object is not subscriptable
I suspect it is because type annotations like list[str] are only supported in Python 3.9 and above.
Thanks for following up on this! Yeah, you're right. In the latest commit, I've updated these lines: https://github.com/takuseno/d3rlpy/commit/18d710a9306c48b3cee63f22c20e0e67aff16020
If you install d3rlpy from source, it should work with Python 3.8.
That's great!I'll close this issue.
Hi,it is me again (hhh When I run the example like this:
I find that the step function in the d4rl environment returns five values instead of the traditional four, and the detailed message is following:
Can you tell me how to fix this? Thank you!