[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

OpenGL test



Hello, I am working on the pyopengl package.

but when I run the test with autopkgtest, I have a failure.


   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:217: cd /builds/python-team/modules/pyopengl/debian/output/pyopengl-3.1.5+dfsg/.pybuild/cpython3_3.8_opengl/build; python3.8 -m unittest discover -v 
Unable to import Tkinter, likely need to install a separate package (python-tk) to have Tkinter support.  You likely also want to run the src/togl.py script in the PyOpenGL source distribution to install the Togl widget
OpenGL.EGL (unittest.loader._FailedTest) ... ERROR
OpenGL.GLES2 (unittest.loader._FailedTest) ... ERROR
OpenGL.GLES3 (unittest.loader._FailedTest) ... ERROR
OpenGL.Tk (unittest.loader._FailedTest) ... ERROR
OpenGL.WGL (unittest.loader._FailedTest) ... ERROR
OpenGL.osmesa (unittest.loader._FailedTest) ... ERROR
OpenGL.raw.GLES3 (unittest.loader._FailedTest) ... ERROR

======================================================================
ERROR: OpenGL.EGL (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: OpenGL.EGL
Traceback (most recent call last):
  File "/usr/lib/python3.8/unittest/loader.py", line 470, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/builds/python-team/modules/pyopengl/debian/output/pyopengl-3.1.5+dfsg/.pybuild/cpython3_3.8_opengl/build/OpenGL/EGL/__init__.py", line 2, in <module>
    from OpenGL.raw.EGL._types import *
  File "/builds/python-team/modules/pyopengl/debian/output/pyopengl-3.1.5+dfsg/.pybuild/cpython3_3.8_opengl/build/OpenGL/raw/EGL/_types.py", line 77, in <module>
    CALLBACK_TYPE = _p.PLATFORM.functionTypeFor( _p.PLATFORM.EGL )
AttributeError: 'GLXPlatform' object has no attribute 'EGL'


======================================================================
ERROR: OpenGL.GLES2 (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: OpenGL.GLES2
Traceback (most recent call last):
  File "/usr/lib/python3.8/unittest/loader.py", line 470, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/builds/python-team/modules/pyopengl/debian/output/pyopengl-3.1.5+dfsg/.pybuild/cpython3_3.8_opengl/build/OpenGL/GLES2/__init__.py", line 2, in <module>
    from OpenGL.raw.GLES2._types import *
  File "/builds/python-team/modules/pyopengl/debian/output/pyopengl-3.1.5+dfsg/.pybuild/cpython3_3.8_opengl/build/OpenGL/raw/GLES2/_types.py", line 5, in <module>
    _error_checker = _ErrorChecker( _p, _p.GLES2.glGetError )
AttributeError: 'NoneType' object has no attribute 'glGetError'


======================================================================
ERROR: OpenGL.GLES3 (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: OpenGL.GLES3
Traceback (most recent call last):
  File "/usr/lib/python3.8/unittest/loader.py", line 470, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/builds/python-team/modules/pyopengl/debian/output/pyopengl-3.1.5+dfsg/.pybuild/cpython3_3.8_opengl/build/OpenGL/GLES3/__init__.py", line 2, in <module>
    from OpenGL.raw.GLES3._types import *
  File "/builds/python-team/modules/pyopengl/debian/output/pyopengl-3.1.5+dfsg/.pybuild/cpython3_3.8_opengl/build/OpenGL/raw/GLES3/__init__.py", line 1, in <module>
    from OpenGL.raw.GLES3._types import *
  File "/builds/python-team/modules/pyopengl/debian/output/pyopengl-3.1.5+dfsg/.pybuild/cpython3_3.8_opengl/build/OpenGL/raw/GLES3/_types.py", line 1, in <module>
    from OpenGL.raw.GLES2._types import *
  File "/builds/python-team/modules/pyopengl/debian/output/pyopengl-3.1.5+dfsg/.pybuild/cpython3_3.8_opengl/build/OpenGL/raw/GLES2/_types.py", line 5, in <module>
    _error_checker = _ErrorChecker( _p, _p.GLES2.glGetError )
AttributeError: 'NoneType' object has no attribute 'glGetError'


======================================================================
ERROR: OpenGL.Tk (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: OpenGL.Tk
Traceback (most recent call last):
  File "/builds/python-team/modules/pyopengl/debian/output/pyopengl-3.1.5+dfsg/.pybuild/cpython3_3.8_opengl/build/OpenGL/Tk/__init__.py", line 31, in <module>
    from tkinter import _default_root
ModuleNotFoundError: No module named 'tkinter'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/unittest/loader.py", line 470, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/builds/python-team/modules/pyopengl/debian/output/pyopengl-3.1.5+dfsg/.pybuild/cpython3_3.8_opengl/build/OpenGL/Tk/__init__.py", line 36, in <module>
    from Tkinter import _default_root
ModuleNotFoundError: No module named 'Tkinter'


======================================================================
ERROR: OpenGL.WGL (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: OpenGL.WGL
Traceback (most recent call last):
  File "/usr/lib/python3.8/unittest/loader.py", line 470, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/builds/python-team/modules/pyopengl/debian/output/pyopengl-3.1.5+dfsg/.pybuild/cpython3_3.8_opengl/build/OpenGL/WGL/__init__.py", line 1, in <module>
    from OpenGL.raw.WGL.VERSION.WGL_1_0 import *
  File "/builds/python-team/modules/pyopengl/debian/output/pyopengl-3.1.5+dfsg/.pybuild/cpython3_3.8_opengl/build/OpenGL/raw/WGL/VERSION/WGL_1_0.py", line 49, in <module>
    def ChoosePixelFormat(hDc,pPfd):pass
  File "/builds/python-team/modules/pyopengl/debian/output/pyopengl-3.1.5+dfsg/.pybuild/cpython3_3.8_opengl/build/OpenGL/raw/WGL/VERSION/WGL_1_0.py", line 13, in _f
    return _p.createFunction( function,_p.PLATFORM.WGL,'WGL_VERSION_WGL_1_0',error_checker=_errors._error_checker)
AttributeError: 'GLXPlatform' object has no attribute 'WGL'


======================================================================
ERROR: OpenGL.osmesa (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: OpenGL.osmesa
Traceback (most recent call last):
  File "/usr/lib/python3.8/unittest/loader.py", line 470, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/builds/python-team/modules/pyopengl/debian/output/pyopengl-3.1.5+dfsg/.pybuild/cpython3_3.8_opengl/build/OpenGL/osmesa/__init__.py", line 2, in <module>
    from OpenGL.raw.osmesa.mesa import *
  File "/builds/python-team/modules/pyopengl/debian/output/pyopengl-3.1.5+dfsg/.pybuild/cpython3_3.8_opengl/build/OpenGL/raw/osmesa/mesa.py", line 43, in <module>
    def OSMesaCreateContext(format,sharelist): pass
  File "/builds/python-team/modules/pyopengl/debian/output/pyopengl-3.1.5+dfsg/.pybuild/cpython3_3.8_opengl/build/OpenGL/raw/osmesa/mesa.py", line 10, in _f
    function,_p.PLATFORM.OSMesa,
AttributeError: 'GLXPlatform' object has no attribute 'OSMesa'


======================================================================
ERROR: OpenGL.raw.GLES3 (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: OpenGL.raw.GLES3
Traceback (most recent call last):
  File "/usr/lib/python3.8/unittest/loader.py", line 470, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/builds/python-team/modules/pyopengl/debian/output/pyopengl-3.1.5+dfsg/.pybuild/cpython3_3.8_opengl/build/OpenGL/raw/GLES3/__init__.py", line 1, in <module>
    from OpenGL.raw.GLES3._types import *
  File "/builds/python-team/modules/pyopengl/debian/output/pyopengl-3.1.5+dfsg/.pybuild/cpython3_3.8_opengl/build/OpenGL/raw/GLES3/_types.py", line 1, in <module>
    from OpenGL.raw.GLES2._types import *
  File "/builds/python-team/modules/pyopengl/debian/output/pyopengl-3.1.5+dfsg/.pybuild/cpython3_3.8_opengl/build/OpenGL/raw/GLES2/_types.py", line 5, in <module>
    _error_checker = _ErrorChecker( _p, _p.GLES2.glGetError )
AttributeError: 'NoneType' object has no attribute 'glGetError'


----------------------------------------------------------------------
Ran 7 tests in 0.003s


so my question is quite simple, how can we test OpenGL on the
autopkgtest infra.

thanks

Frederic


Reply to: