Git Product home page Git Product logo

Comments (6)

MuLx10 avatar MuLx10 commented on August 24, 2024 2

@zoq @KimSangYeon-DGU I suppose that the newer gym versions are kind of python3 supporting.
env =gym.make(en) File "/usr/lib/python2.7/site-packages/gym/envs/registration.py", line 171, in make return registry.make(id, **kwargs) File "/usr/lib/python2.7/site-packages/gym/envs/registration.py", line 123, in make env = spec.make(**kwargs) File "/usr/lib/python2.7/site-packages/gym/envs/registration.py", line 87, in make env = cls(**_kwargs) File "/usr/lib/python2.7/site-packages/gym/envs/toy_text/taxi.py", line 104, in __init__ discrete.DiscreteEnv.__init__(self, nS, nA, P, isd) File "/usr/lib/python2.7/site-packages/gym/envs/toy_text/discrete.py", line 38, in __init__ self.action_space = spaces.Discrete(self.nA) File "/usr/lib/python2.7/site-packages/gym/spaces/discrete.py", line 15, in __init__ super().__init__((), np.int64) TypeError: super() takes at least 1 argument (0 given)

The constructor issue is inherent trouble of Python2 code when executed using Python3.
Also the higher versions of gym is written in Python3.
Should we move to Python3?

from gym_tcp_api.

KimSangYeon-DGU avatar KimSangYeon-DGU commented on August 24, 2024 1

@MuLx10, Right, the problem was resolved, just by running the server in default python3.

  1. Edit from gym.wrappers.monitoring import Monitor to from gym.wrappers import Monitor in priv/worker.py.
  2. Just run the server in python3.

After checking it, feel free to make a pull request. Thanks for taking time to do. :)

p.s. It would be a good idea to make a note indicating that the version of python should be 3 for compatibility with the latest gym for users.

from gym_tcp_api.

MuLx10 avatar MuLx10 commented on August 24, 2024

Hey, @KimSangYeon-DGU and @zoq I want to contribute. I see that the Monitor doesn't seem to work for gym>0.9.5.

from gym_tcp_api.

KimSangYeon-DGU avatar KimSangYeon-DGU commented on August 24, 2024

@MuLx10, Sure, go ahead. :)

from gym_tcp_api.

MuLx10 avatar MuLx10 commented on August 24, 2024

@KimSangYeon-DGU @zoq I have made the necessary changes. Please review it (#13).
Thank You

from gym_tcp_api.

KimSangYeon-DGU avatar KimSangYeon-DGU commented on August 24, 2024

Thanks again!! @MuLx10

from gym_tcp_api.

Related Issues (8)

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.