当我尝试运行输出GUI信息屏幕的前端应用程序文件“Frontend.py”时
我收到以下错误,即使我已成功安装了“PyProcessing,Pyglet”所有必要的实用工具
但我得到了这个
"File "MIISC_Frontend.py", line 18, in <module>
from pyprocessing import __draw
File "/usr/local/lib/python2.7/dist-packages/pyprocessing-0.1.3.22-py2.7.egg/pyprocessing/__init__.py", line 51, in <module>
from pyglet.gl import *
File "/usr/local/lib/python2.7/dist-packages/pyglet-1.1.4-py2.7.egg/pyglet/gl/__init__.py", line 510, in <module>
import pyglet.window
File "/usr/local/lib/python2.7/dist-packages/pyglet-1.1.4-py2.7.egg/pyglet/window/__init__.py", line 1684, in <module>
gl._create_shadow_window()
File "/usr/local/lib/python2.7/dist-packages/pyglet-1.1.4-py2.7.egg/pyglet/gl/__init__.py", line 494, in _create_shadow_window
_shadow_window = Window(width=1, height=1, visible=False)
File "/usr/local/lib/python2.7/dist-packages/pyglet-1.1.4-py2.7.egg/pyglet/window/xlib/__init__.py", line 474, in __init__
super(XlibWindow, self).__init__(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pyglet-1.1.4-py2.7.egg/pyglet/window/__init__.py", line 636, in __init__
config = screen.get_best_config(template_config)
File "/usr/local/lib/python2.7/dist-packages/pyglet-1.1.4-py2.7.egg/pyglet/window/__init__.py", line 288, in get_best_config
configs = self.get_matching_configs(template)
File "/usr/local/lib/python2.7/dist-packages/pyglet-1.1.4-py2.7.egg/pyglet/window/xlib/__init__.py", line 238, in get_matching_configs
have_13 = self.display.info.have_version(1, 3)
File "/usr/local/lib/python2.7/dist-packages/pyglet-1.1.4-py2.7.egg/pyglet/gl/glx_info.py", line 79, in have_version
raise GLXInfoException('pyglet requires an X server wit
h GLX')
pyglet.gl.glx_info.GLXInfoException: pyglet requires an X server with GLX""
Plz帮助 提前致谢
答案 0 :(得分:1)
pyglet似乎需要GLX。此错误表示显示pyglet正在与之交谈没有GLX。
您的DISPLAY设置正确吗?通常这将是:0
尝试:
echo $ DISPLAY
您的X服务器不支持GLX吗?尝试:
xdpyinfo | grep GLX
如果确实出现空白,请检查您的X启动日志(例如在Linux上)
grep -i glx /var/log/Xorg*
某些VNC服务器不提供GLX。您可以使用VirtualGL包伪造它。