fogleman / Minecraft

Simple Minecraft-inspired program using Python and Pyglet
MIT License
5.22k stars 1.23k forks source link

Can not run main.py #69

Closed khoi-thinh closed 8 years ago

khoi-thinh commented 8 years ago

As i followed the steps, i got stuck when running the main.py [root@ip-10-0-7-118 Minecraft]# python main.py Traceback (most recent call last): File "main.py", line 7, in from pyglet.gl import * File "/usr/lib/python2.7/site-packages/pyglet/gl/init.py", line 97, in from pyglet.gl.lib import GLException File "/usr/lib/python2.7/site-packages/pyglet/gl/lib.py", line 142, in from pyglet.gl.lib_glx import link_GL, link_GLU, link_GLX File "/usr/lib/python2.7/site-packages/pyglet/gl/lib_glx.py", line 50, in gl_lib = pyglet.lib.load_library('GL') File "/usr/lib/python2.7/site-packages/pyglet/lib.py", line 160, in load_library raise ImportError('Library "%s" not found.' % names[0]) ImportError: Library "GL" not found. Can you tell me how to fix it please? I'm running python 2.7.5 on Centos 7.2

progval commented 8 years ago

Try this: http://stackoverflow.com/a/7941950/539465

khoi-thinh commented 8 years ago

Ah sorry i think i just forgot. I don't have OS graphic version, now i'm running CentOS7 on Instance EC2 on AWS. That's totally command-line interface.

progval commented 8 years ago

You need an X server to run this.