GithubHelp home page GithubHelp logo

Comments (10)

yakotaki avatar yakotaki commented on July 24, 2024 3

@blobsimulator @ymolists
Try with gym version 0.9.5
I had same problem, changing gym helped.

from multiagent-particle-envs.

blobsimulator avatar blobsimulator commented on July 24, 2024 2

Traceback (most recent call last):
File "bin/interactive.py", line 23, in
env.render()
File "/usr/local/lib/python3.5/dist-packages/gym/core.py", line 110, in render
raise NotImplementedError
NotImplementedError

Is there perhaps a directory issue going on now? Thanks a lot for helping out @nikunjparmar828

from multiagent-particle-envs.

nikunjparmar828 avatar nikunjparmar828 commented on July 24, 2024

@blobsimulator Can you please send those new errors.I did same change and my code is running well.

from multiagent-particle-envs.

ryan-lowe avatar ryan-lowe commented on July 24, 2024

for some reason, the default scenario in interactive.py was not set. should be fixed now

from multiagent-particle-envs.

emanuelepesce avatar emanuelepesce commented on July 24, 2024

I've just cloned and I still have the same issue with python 3. Any suggestions?

from multiagent-particle-envs.

ryan-lowe avatar ryan-lowe commented on July 24, 2024

Could you post the error? It works for me when I clone and I'm using Python 3.5.4

from multiagent-particle-envs.

ryan-lowe avatar ryan-lowe commented on July 24, 2024

or you mean it's the same error as blobsimulator was getting?

from multiagent-particle-envs.

watts4speed avatar watts4speed commented on July 24, 2024

@ryan-lowe I see. I'm using Python 3.5.2 loaded into a Pycharm-Env. I'm on linux ubuntu 16.04. I'll look into switching to 3.5.4. You might have nailed it.

from multiagent-particle-envs.

emanuelepesce avatar emanuelepesce commented on July 24, 2024

Yes, same error on bin/interactive.py --scenario simple.py

Traceback (most recent call last): File "bin/interactive.py", line 21, in <module> env = MultiAgentEnv(world, scenario.reset_world, scenario.reward, scenario.observation, info_callback=None, shared_viewer = False) File "/home/ep15/mylibs/multiagents-particle-envs_36/multiagent-particle-envs/bin/../multiagent/environment.py", line 68, in __init__ self.observation_space.append(spaces.Box(low=-np.inf, high=+np.inf, shape=(obs_dim),)) File "/home/ep15/anaconda2/envs/py364/lib/python3.6/site-packages/gym/spaces/box.py", line 33, in __init__ Space.__init__(self, shape, dtype) File "/home/ep15/anaconda2/envs/py364/lib/python3.6/site-packages/gym/core.py", line 161, in __init__ self.shape = None if shape is None else tuple(shape) TypeError: 'int' object is not iterable

It occur with python 3 (tested on 3.6.4 and 3.5)
SO: Ubuntu 16.04

from multiagent-particle-envs.

ymolists avatar ymolists commented on July 24, 2024

i have the same issue in ubuntu17.10. i used virtualenv to create an env for both python2 and python3 and i still get the same error.

(multiagent-particle-envs.000) ~/3rdp/apps/openai/multiagent-particle-envs$ ./bin/interactive.py --scenario simple.py
WARN: gym.spaces.Box autodetected dtype as <type 'numpy.float32'>. Please provide explicit dtype.
Traceback (most recent call last):
File "./bin/interactive.py", line 23, in
env.render()
File "/data/3rdp/apps/openai/multiagent-particle-envs.000/local/lib/python2.7/site-packages/gym/core.py", line 111, in render
raise NotImplementedError
NotImplementedError

from multiagent-particle-envs.

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.