Comments (7)
Thanks for reporting the issue. We've noticed it shortly after the previous code push and already have a fix for it.
It should be released to github later today/tomorrow.
from football.
I have just cloned the latest repo and built from scratch, but I am still getting this error msg.
Traceback (most recent call last):
File "football.py", line 17, in <module>
e.reset()
File "/home/hongyu/anaconda3/envs/pearl/lib/python3.5/site-packages/gym/core.py", line 327, in reset
return self.env.reset()
File "/home/hongyu/anaconda3/envs/pearl/lib/python3.5/site-packages/gym/core.py", line 317, in reset
observation = self.env.reset(**kwargs)
File "/home/hongyu/anaconda3/envs/pearl/lib/python3.5/site-packages/gym/core.py", line 318, in reset
return self.observation(observation)
File "/home/hongyu/anaconda3/envs/pearl/lib/python3.5/site-packages/gfootball/env/wrappers.py", line 135, in observation
frame = obs['frame']
TypeError: list indices must be integers or slices, not str
My code is listed below:
import gfootball.env as football_env
import os
os.environ["MESA_GL_VERSION_OVERRIDE"]='3.2'
os.environ["MESA_GLSL_VERSION_OVERRIDE"]='150'
e = football_env.create_environment(
env_name='academy_empty_goal_close',
representation='pixels',
# rewards='scoring,checkpoints',
render=True
)
for i in range(10000):
e.reset()
done = False
while not done:
_, _, done, _ = e.step(e.action_space.sample())
# e.render()
I feel the error is caused by the incompatibility between different representations and render functions.
from football.
Thanks! I'll wait for the fix.
from football.
Fix was just pushed in v1.2 release.
from football.
Same as hyren. Still getting that error.
from football.
Originally reported bug happened for simple115 representation which was fixed with the push.
The bug reported by hyren is for pixels. We have a fix and hopefully will release it today.
from football.
v1.3 release (just pushed) has a fix to this problem.
from football.
Related Issues (20)
- Running problem
- How can solve RuntimeError: Dynamic linking causes SDL downgrade! (compiled with version 2.28.3, linked to 2.0.16)? HOT 1
- ImportError: /../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found HOT 3
- Rendering frame by frame (Headless: on a server without desktop)
- error: subprocess-exited-with-error python setup.py egg_info did not run successfully.
- Saving replay by rendering failed
- Football
- Football dates
- ImportError: /lib/x86_64-linux-gnu/libwayland-client.so.0: undefined symbol: ffi_type_uint32, version LIBFFI_BASE_7.0 HOT 2
- Colab example HOT 1
- working on small issues
- Error on colab
- Error: signal 11: HOT 2
- Compatibility with Pettingzoo
- Request for gfootball Installation Guide on Red Hat Linux
- Football game
- Football game
- Fotbal
- RuntimeError: This class cannot be instantiated from Python
- Example execution error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from football.