Giter Club home page Giter Club logo

Comments (6)

zuoxingdong avatar zuoxingdong commented on July 20, 2024

@YitzhakSp Thanks for the report. It seems the problem is related to new version of gym which requires dtype for Space objects. Now I have updated API, could you try again to see if it works now ? And by the way, maybe you also want to take a look at the required packages in README.

from mazelab.

YitzhakSp avatar YitzhakSp commented on July 20, 2024

Thanks, now its working. However there is another problem now. did you try env.render() ? it opens a figure but the figure is empty and hangs up. here's the code I tried

from gym_maze.envs import MazeEnv
from gym_maze.envs.generators import *
import time

maze = RandomBlockMazeGenerator(maze_size=4, obstacle_ratio=0.0)
env = MazeEnv(maze)
env.reset()
for i in range(100):
    fig=env.render()
    action = env.action_space.sample()
    observation, reward, done, info = env.step(action)
    time.sleep(.5)

my system:
win10
python 3.6

from mazelab.

zuoxingdong avatar zuoxingdong commented on July 20, 2024

@YitzhakSp I have tried again and it works fine. Do you use the following dependencies

- Numpy >= 1.14.2
- Matplotlib >= 2.1.2
- Scikit-image >= 0.13.1

from mazelab.

YitzhakSp avatar YitzhakSp commented on July 20, 2024

yep, I have the required dependencies. maybe its a Windows problem.

from mazelab.

zuoxingdong avatar zuoxingdong commented on July 20, 2024

@YitzhakSp If you have the up-to-date version of the dependencies, then I guess so the problem has something to do with Windows.

from mazelab.

zuoxingdong avatar zuoxingdong commented on July 20, 2024

@YitzhakSp Hi, the repo is entirely rewritten now with much more modular design, can you re-check if it works now ?

from mazelab.

Related Issues (9)

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.