2015-01-30 3 views
3

저는 VM에 Arch Linux를 설치 한 Python 과정을 진행하고 있습니다. Matplotlib.pyplot을 사용하여 물건을 그릴 때 (x vs y) 나는 많은 오류가 발생합니다.Python/Matplotlib 용 OpenGL 사용 안함

libGL error: pci id for fd 12: 80ee:beef, driver (null) 
OpenGL Warning: glFlushVertexArrayRangeNV not found in mesa table 
OpenGL Warning: glVertexArrayRangeNV not found in mesa table 
OpenGL Warning: glCombinerInputNV not found in mesa table 
OpenGL Warning: glCombinerOutputNV not found in mesa table 
OpenGL Warning: glCombinerParameterfNV not found in mesa table 
OpenGL Warning: glCombinerParameterfvNV not found in mesa table 
OpenGL Warning: glCombinerParameteriNV not found in mesa table 
OpenGL Warning: glCombinerParameterivNV not found in mesa table 
OpenGL Warning: glFinalCombinerInputNV not found in mesa table 
OpenGL Warning: glGetCombinerInputParameterfvNV not found in mesa table 
OpenGL Warning: glGetCombinerInputParameterivNV not found in mesa table 
OpenGL Warning: glGetCombinerOutputParameterfvNV not found in mesa table 
OpenGL Warning: glGetCombinerOutputParameterivNV not found in mesa table 
OpenGL Warning: glGetFinalCombinerInputParameterfvNV not found in mesa table 
OpenGL Warning: glGetFinalCombinerInputParameterivNV not found in mesa table 
OpenGL Warning: glDeleteFencesNV not found in mesa table 
OpenGL Warning: glFinishFenceNV not found in mesa table 
OpenGL Warning: glGenFencesNV not found in mesa table 
OpenGL Warning: glGetFenceivNV not found in mesa table 
OpenGL Warning: glIsFenceNV not found in mesa table 
OpenGL Warning: glSetFenceNV not found in mesa table 
OpenGL Warning: glTestFenceNV not found in mesa table 
libGL error: core dri or dri2 extension not found 
libGL error: failed to load driver: vboxvideo 
OpenGL Warning: XGetVisualInfo returned 0 visuals for 00007f6ff33d0240 
OpenGL Warning: Retry with 0x8002 returned 0 visuals 
OpenGL Warning: XGetVisualInfo returned 0 visuals for 00007f6ff33d0240 
OpenGL Warning: Retry with 0x8002 returned 0 visuals 
OpenGL Warning: glXGetFBConfigAttrib for 00007f6ff33d0240, failed to get XVisualInfo 
OpenGL Warning: XGetVisualInfo returned 0 visuals for 00007f6ff33d0240 
OpenGL Warning: Retry with 0x8002 returned 0 visuals 
OpenGL Warning: glXGetFBConfigAttrib for 00007f6ff33d0240, failed to get XVisualInfo 
OpenGL Warning: XGetVisualInfo returned 0 visuals for 00007f6ff33d0240 
OpenGL Warning: Retry with 0x8002 returned 0 visuals 
OpenGL Warning: glXGetFBConfigAttrib for 00007f6ff33d0240, failed to get XVisualInfo 
OpenGL Warning: XGetVisualInfo returned 0 visuals for 00007f6ff33d0240 
OpenGL Warning: Retry with 0x8002 returned 0 visuals 
OpenGL Warning: glXGetFBConfigAttrib for 00007f6ff33d0240, failed to get XVisualInfo 
OpenGL Warning: XGetVisualInfo returned 0 visuals for 00007f6ff33d0240 
OpenGL Warning: Retry with 0x8002 returned 0 visuals 
OpenGL Warning: glXGetFBConfigAttrib for 00007f6ff33d0240, failed to get XVisualInfo 
OpenGL Warning: XGetVisualInfo returned 0 visuals for 00007f6ff33d0240 
OpenGL Warning: Retry with 0x8002 returned 0 visuals 
OpenGL Warning: glXGetFBConfigAttrib for 00007f6ff33d0240, failed to get XVisualInfo 
OpenGL Warning: XGetVisualInfo returned 0 visuals for 00007f6ff33d0240 
OpenGL Warning: Retry with 0x8002 returned 0 visuals 
OpenGL Warning: glXGetFBConfigAttrib for 00007f6ff33d0240, failed to get XVisualInfo 
OpenGL Warning: XGetVisualInfo returned 0 visuals for 00007f6ff33d0240 
OpenGL Warning: Retry with 0x8002 returned 0 visuals 
OpenGL Warning: glXGetFBConfigAttrib for 00007f6ff33d0240, failed to get XVisualInfo 

VM에 3D 지원을 설정하면 OpenGL을 묻습니다. 내 스크립트는 플롯 (빈 캔버스)을 만들지 만 선은 만들지 않습니다.

OpenGL을 사용하지 않고 일부 선을 그릴 수 있어야한다고 생각하십니까? 이걸 어떻게 가야하는지 ...

편집 : 내 파이썬 코드의 오류와 결합 된 VirtualBox 버그라고 생각합니다. 나는 결국 오류 메시지가있는 좋은 그래프를 얻을 수 있습니다. VirtualBox의 최신 버전에서는 더 이상 오류가 발생하지 않습니다. 고맙습니다.

+0

mpl은 (직접) openpl을 터치하지 않습니다. 'vispy'도 사용하고 있습니까? 내 추측에 따르면 이것이 좀 더 일반적이고 mpl에만 국한되지 않는 GUI 툴킷과 관련이있다. – tacaswell

+0

및 VM에 하드웨어 카드 문제가 발생했습니다. – tacaswell

+0

내가 사용 matplotlib.pyplot plt로 가져 오기 사실 나는 VirtualBox가 OpenGL 3을 지원하지 않는다고 생각한다. 그러나 나는 파이썬에서 hw accelaration을 전혀 사용하지 않아야한다고 생각하고있다. . – Freek

답변

0

그럼에도 불구하고 모든 오류가 있었음에도 불구하고 실제로 작동하지 않는 것이 전혀 없었습니다. 그래프를 보지 못했다는 사실은 원래 게시물의 오류 때문이 아닙니다. 그것은 뭔가 다른 것이 었습니다. 나는 VirtualBox에서 3D 가속의 부족과 관련이 있고 모름과는 무관하다고 생각합니다.