Universe: a software platform for measuring and training an AI's general intelligence across the world's supply of games, websites and other applications.
Hello,
when I try to run the example code "run your first agent", the "env.render()" command throws an error (without this command everything works as expected):
2017/07/02 21:16:51 C0702 21:16:51.499408 4778 vncgl.go:40] failed to initialize glfw: APIUnavailable: EGL: Failed to initialize EGL: EGL is not or could not be initialized
There are no other lines of errors such as i965 related ones etc., only this.
I tried solutions posted before such as renaming/deleting libstdc++ etc. in anaconda but it does not help (in fact if you create a virtual env in anaconda, there are no c++ and gcc libraries in there, so this issue should not be present).
I have Arch Linux. On my second laptop I have Manjaro and everything works as it should, so I think there is a problem with my system, however I don't even know where to look.
I hava a bumblebee (nvidia optimus) and I tried to run the demo code with and without nvidia enabled, result is the same.
Also, glxspheres demos etc. of course work without problems, and openAI gym without the "universe" also works and renders games without issues.
Below in addition to the python env, I also attach a glxinfo | grep version output.
Do you know how can I resolve this issue?
Versions
glxinfo | grep versionserver glx version string: 1.4client glx version string: 1.4GLX version: 1.4Max core profile version: 4.5Max compat profile version: 3.0Max GLES1 profile version: 1.1Max GLES[23] profile version: 3.1OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.1.4OpenGL core profile shading language version string: 4.50OpenGL version string: 3.0 Mesa 17.1.4OpenGL shading language version string: 1.30OpenGL ES profile version string: OpenGL ES 3.1 Mesa 17.1.4OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
python env:
Linux konrad-dell 4.11.8-1-zen #1 ZEN SMP PREEMPT Thu Jun 29 21:25:23 UTC 2017 x86_64 GNU/Linux
Python 3.6.1 :: Continuum Analytics, Inc. Name: universe Version: 0.21.5 Summary: Universe: a software platform for measuring and training an AI's general intelligence across the world's supply of games, websites and other applications. Home-page: https://github.com/openai/universe Author: OpenAI Author-email: universe@openai.com License: UNKNOWN Location: /home/konrad/Anaconda/universe Requires: autobahn, docker-py, docker-pycreds, fastzbarlight, go-vncdriver, gym, Pillow, PyYAML, six, twisted, ujson
Name: gym Version: 0.9.2 Summary: The OpenAI Gym: A toolkit for developing and comparing your reinforcement learning agents. Home-page: https://github.com/openai/gym Author: OpenAI Author-email: gym@openai.com License: UNKNOWN Location: /home/konrad/Anaconda/anaconda3/envs/openai/lib/python3.6/site-packages Requires: pyglet, six, requests, numpy
Hello, when I try to run the example code "run your first agent", the "env.render()" command throws an error (without this command everything works as expected):
2017/07/02 21:16:51 C0702 21:16:51.499408 4778 vncgl.go:40] failed to initialize glfw: APIUnavailable: EGL: Failed to initialize EGL: EGL is not or could not be initialized
There are no other lines of errors such as i965 related ones etc., only this.I tried solutions posted before such as renaming/deleting libstdc++ etc. in anaconda but it does not help (in fact if you create a virtual env in anaconda, there are no c++ and gcc libraries in there, so this issue should not be present).
I have Arch Linux. On my second laptop I have Manjaro and everything works as it should, so I think there is a problem with my system, however I don't even know where to look. I hava a bumblebee (nvidia optimus) and I tried to run the demo code with and without nvidia enabled, result is the same. Also, glxspheres demos etc. of course work without problems, and openAI gym without the "universe" also works and renders games without issues.
Below in addition to the python env, I also attach a glxinfo | grep version output.
Do you know how can I resolve this issue?
Versions
glxinfo | grep version
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
Max core profile version: 4.5
Max compat profile version: 3.0
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.1
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.1.4
OpenGL core profile shading language version string: 4.50
OpenGL version string: 3.0 Mesa 17.1.4
OpenGL shading language version string: 1.30
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 17.1.4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
python env:
Linux konrad-dell 4.11.8-1-zen #1 ZEN SMP PREEMPT Thu Jun 29 21:25:23 UTC 2017 x86_64 GNU/Linux
Python 3.6.1 :: Continuum Analytics, Inc. Name: universe Version: 0.21.5 Summary: Universe: a software platform for measuring and training an AI's general intelligence across the world's supply of games, websites and other applications. Home-page: https://github.com/openai/universe Author: OpenAI Author-email: universe@openai.com License: UNKNOWN Location: /home/konrad/Anaconda/universe Requires: autobahn, docker-py, docker-pycreds, fastzbarlight, go-vncdriver, gym, Pillow, PyYAML, six, twisted, ujson
Name: gym Version: 0.9.2 Summary: The OpenAI Gym: A toolkit for developing and comparing your reinforcement learning agents. Home-page: https://github.com/openai/gym Author: OpenAI Author-email: gym@openai.com License: UNKNOWN Location: /home/konrad/Anaconda/anaconda3/envs/openai/lib/python3.6/site-packages Requires: pyglet, six, requests, numpy
Name: numpy Version: 1.13.0 Summary: NumPy: array processing for numbers, strings, records, and objects. Home-page: http://www.numpy.org Author: NumPy Developers Author-email: numpy-discussion@python.org License: BSD Location: /home/konrad/Anaconda/anaconda3/envs/openai/lib/python3.6/site-packages Requires:
Name: go-vncdriver Version: 0.4.19 Summary: UNKNOWN Home-page: UNKNOWN Author: UNKNOWN Author-email: UNKNOWN License: UNKNOWN Location: /home/konrad/Anaconda/anaconda3/envs/openai/lib/python3.6/site-packages Requires: numpy
Name: Pillow Version: 4.2.0 Summary: Python Imaging Library (Fork) Home-page: https://python-pillow.org Author: Alex Clark (Fork Author) Author-email: aclark@aclark.net License: Standard PIL License Location: /home/konrad/Anaconda/anaconda3/envs/openai/lib/python3.6/site-packages Requires: olefile