Hi all, when I ran the DQN tutorial example, I encountered an error:
/usr/local/lib/python2.7/dist-packages/pyglet/image/init.py in ()
148 from pyglet.window import *
–> 150 from pyglet.image import atlas
151 from pyglet.compat import asbytes, bytes_type, BytesIO
ImportError: cannot import name atlas
Anyone knows what’s wrong? Thanks so much!
Maybe you should update your pyglet version?
The pyglet is already the latest version…
I followed the tutorial step by step, all is right except that error,
It seems that your pyglet is not installed properly. pyglet.image.atlas definitely exists as per https://pyglet.readthedocs.io/en/pyglet-1.2-maintenance/api/pyglet/pyglet.image.html. Could you check your pyglet version?
Hi SimonW, the pyglet version is 1.2.4
pyglet was installed automatically when I installed gym.
Follow your URL, I can ‘from pyglet import image’ but when I 'from pyglet.gl import * ’ an exception raised — 'pyglet.canvas.xlib.NoSuchDisplayException: Cannot connect to “None” ', did you see that before?Thx.