Giter Site home page Giter Site logo

Comments (6)

takuseno avatar takuseno commented on June 12, 2024

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.

from d3rlpy.

sky-story avatar sky-story commented on June 12, 2024

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?

from d3rlpy.

takuseno avatar takuseno commented on June 12, 2024

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?

from d3rlpy.

sky-story avatar sky-story commented on June 12, 2024

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.

from d3rlpy.

takuseno avatar takuseno commented on June 12, 2024

Thanks for following up on this! Yeah, you're right. In the latest commit, I've updated these lines:
18d710a

If you install d3rlpy from source, it should work with Python 3.8.

from d3rlpy.

sky-story avatar sky-story commented on June 12, 2024

That's great!I'll close this issue.

from d3rlpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.