pyopengl
pyopengl copied to clipboard
[3.1.9] failing test while preparing the Debian package
I try to update the Debian package of PyOpenGL in order to be ready for the next Debian release.
I get this error message while running the test on my sway environment -> during the collect of the tests
I: pybuild base:311: cd /home/picca/debian/python-team/packages/pyopengl/.pybuild/cpython3_3.13_opengl/build; python3.13 -m pytest tests
================================================================================================================================= test session starts =================================================================================================================================
platform linux -- Python 3.13.2, pytest-8.3.5, pluggy-1.5.0
PyQt5 5.15.11 -- Qt runtime 5.15.15 -- Qt compiled 5.15.15
rootdir: /home/picca/debian/python-team/packages/pyopengl/.pybuild/cpython3_3.13_opengl/build
configfile: pyproject.toml
plugins: typeguard-4.4.2, qt-4.4.0, cov-5.0.0, anyio-4.8.0
collected 93 items / 1 error / 1 skipped
======================================================================================================================================= ERRORS ========================================================================================================================================
______________________________________________________________________________________________________________________ ERROR collecting tests/test_glx_raw_x.py _______________________________________________________________________________________________________________________
tests/test_glx_raw_x.py:12: in <module>
from OpenGL.GLX import *
OpenGL/GLX/__init__.py:3: in <module>
from OpenGL.GLX.VERSION.GLX_1_0 import *
OpenGL/GLX/VERSION/GLX_1_0.py:14: in <module>
from OpenGL.raw.GLX.VERSION.GLX_1_0 import *
OpenGL/raw/GLX/VERSION/GLX_1_0.py:42: in <module>
@_f
OpenGL/raw/GLX/VERSION/GLX_1_0.py:13: in _f
return _p.createFunction( function,_p.PLATFORM.GLX,'GLX_VERSION_GLX_1_0',error_checker=_errors._error_checker)
E AttributeError: 'EGLPlatform' object has no attribute 'GLX'. Did you mean: 'GL'?
================================================================================================================================== warnings summary ===================================================================================================================================
../../../../../../../../../usr/lib/python3/dist-packages/pygame/pkgdata.py:25
/usr/lib/python3/dist-packages/pygame/pkgdata.py:25: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import resource_stream, resource_exists
../../../../../../../../../usr/lib/python3/dist-packages/pkg_resources/__init__.py:3142
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:3142: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('logilab')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
../../../../../../../../../usr/lib/python3/dist-packages/pkg_resources/__init__.py:3142
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:3142: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('zope')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
../../../../../../../../../usr/lib/python3/dist-packages/numpy/_pytesttester.py:79
/usr/lib/python3/dist-packages/numpy/_pytesttester.py:79: PytestCollectionWarning: cannot collect 'test' because it is not a function.
def __call__(self, label='fast', verbose=1, extra_argv=None,
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=============================================================================================================================== short test summary info ===============================================================================================================================
ERROR tests/test_glx_raw_x.py - AttributeError: 'EGLPlatform' object has no attribute 'GLX'. Did you mean: 'GL'?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
======================================================================================================================= 1 skipped, 4 warnings, 1 error in 4.93s =======================================================================================================================
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=2: cd /home/picca/debian/python-team/packages/pyopengl/.pybuild/cpython3_3.13_opengl/build; python3.13 -m pytest tests
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 returned exit code 13
Here the full log from the Debian CI
Testing with python3.13:
============================= test session starts ==============================
platform linux -- Python 3.13.2, pytest-8.3.5, pluggy-1.5.0
rootdir: /tmp/autopkgtest.Y3PG5X/autopkgtest_tmp
collected 93 items / 1 skipped
tests/test_arraydatatype.py ..s..s....s..... [ 17%]
tests/test_checks.py FFFFsFxF...FFFFFFFF.F..FF.F [ 46%]
tests/test_core.py ..........F............... [ 74%]
tests/test_evaluators.py ....... [ 81%]
tests/test_tess.py ... [ 84%]
tests/test_textures.py ............. [ 98%]
tests/test_vbo_memusage.py . [100%]
=================================== FAILURES ===================================
_________________________ test_check_crash_on_glutinit _________________________
args = (), named = {}
@wraps(func)
def glut_only_test(*args, **named):
if not glutInit:
pytest.skip("No GLUT installed")
> return func(*args, **named)
tests/test_checks.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
> raise RuntimeError('Test script failure')
E RuntimeError: Test script failure
tests/test_checks.py:77: RuntimeError
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:73 Test did not produce output: Traceback (most recent call last):
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/check_crash_on_glutinit.py", line 23, in <module>
main()
~~~~^^
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/check_crash_on_glutinit.py", line 7, in main
glutInit(' ')
~~~~~~~~^^^^^
File "/usr/lib/python3/dist-packages/OpenGL/GLUT/special.py", line 333, in glutInit
_base_glutInit( ctypes.byref(count), holder )
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/OpenGL/platform/baseplatform.py", line 495, in __call__
raise error.NullFunctionError(
...<5 lines>...
)
OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutInit) before calling
______________________________ test_check_egl_es1 ______________________________
args = (), named = {}
@wraps(func)
def glut_only_test(*args, **named):
if not numpy:
pytest.skip("No GLUT installed")
> return func(*args, **named)
tests/test_checks.py:41:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
> raise RuntimeError('Test script failure')
E RuntimeError: Test script failure
tests/test_checks.py:77: RuntimeError
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:73 Test did not produce output: Traceback (most recent call last):
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/check_egl_es1.py", line 2, in <module>
import xlibegltest as egltest
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/xlibegltest.py", line 3, in <module>
from Xlib import X, display, error
ModuleNotFoundError: No module named 'Xlib'
______________________________ test_check_egl_es2 ______________________________
args = (), named = {}
@wraps(func)
def glut_only_test(*args, **named):
if not numpy:
pytest.skip("No GLUT installed")
> return func(*args, **named)
tests/test_checks.py:41:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
> raise RuntimeError('Test script failure')
E RuntimeError: Test script failure
tests/test_checks.py:77: RuntimeError
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:73 Test did not produce output: Traceback (most recent call last):
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/check_egl_es2.py", line 3, in <module>
import xlibegltest as egltest
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/xlibegltest.py", line 3, in <module>
from Xlib import X, display, error
ModuleNotFoundError: No module named 'Xlib'
____________________________ test_check_egl_opengl _____________________________
args = (), named = {}
@wraps(func)
def glut_only_test(*args, **named):
if not numpy:
pytest.skip("No GLUT installed")
> return func(*args, **named)
tests/test_checks.py:41:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
> raise RuntimeError('Test script failure')
E RuntimeError: Test script failure
tests/test_checks.py:77: RuntimeError
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:73 Test did not produce output: Traceback (most recent call last):
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/check_egl_opengl.py", line 2, in <module>
import xlibegltest as egltest
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/xlibegltest.py", line 3, in <module>
from Xlib import X, display, error
ModuleNotFoundError: No module named 'Xlib'
____________________________ test_check_glutwindow _____________________________
args = (), named = {}
@wraps(func)
def glut_only_test(*args, **named):
if not glutInit:
pytest.skip("No GLUT installed")
> return func(*args, **named)
tests/test_checks.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
> raise RuntimeError('Test script failure')
E RuntimeError: Test script failure
tests/test_checks.py:77: RuntimeError
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:73 Test did not produce output: Traceback (most recent call last):
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/check_glutwindow.py", line 112, in <module>
newArgv = glutInit(sys.argv)
File "/usr/lib/python3/dist-packages/OpenGL/GLUT/special.py", line 333, in glutInit
_base_glutInit( ctypes.byref(count), holder )
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/OpenGL/platform/baseplatform.py", line 495, in __call__
raise error.NullFunctionError(
...<5 lines>...
)
OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutInit) before calling
__________________________ test_check_freeglut_deinit __________________________
args = (), named = {}
@wraps(func)
def glut_only_test(*args, **named):
if not glutInit:
pytest.skip("No GLUT installed")
> return func(*args, **named)
tests/test_checks.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
> raise RuntimeError('Test script failure')
E RuntimeError: Test script failure
tests/test_checks.py:77: RuntimeError
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:73 Test did not produce output: Traceback (most recent call last):
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/check_freeglut_deinit.py", line 36, in <module>
main()
~~~~^^
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/check_freeglut_deinit.py", line 18, in main
glutInit([])
~~~~~~~~^^^^
File "/usr/lib/python3/dist-packages/OpenGL/GLUT/special.py", line 333, in glutInit
_base_glutInit( ctypes.byref(count), holder )
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/OpenGL/platform/baseplatform.py", line 495, in __call__
raise error.NullFunctionError(
...<5 lines>...
)
OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutInit) before calling
___________________________ test_check_gles_imports ____________________________
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
> raise RuntimeError('Test script failure')
E RuntimeError: Test script failure
tests/test_checks.py:77: RuntimeError
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:73 Test did not produce output: Traceback (most recent call last):
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/check_gles_imports.py", line 8, in <module>
from OpenGL.GLES2 import *
File "/usr/lib/python3/dist-packages/OpenGL/GLES2/__init__.py", line 2, in <module>
from OpenGL.raw.GLES2._types import *
File "/usr/lib/python3/dist-packages/OpenGL/raw/GLES2/_types.py", line 5, in <module>
_error_checker = _ErrorChecker( _p, _p.GLES2.glGetError )
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'glGetError'
____________________________ test_check_glut_debug _____________________________
args = (), named = {}
@wraps(func)
def glut_only_test(*args, **named):
if not glutInit:
pytest.skip("No GLUT installed")
> return func(*args, **named)
tests/test_checks.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
> raise RuntimeError('Test script failure')
E RuntimeError: Test script failure
tests/test_checks.py:77: RuntimeError
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:73 Test did not produce output: Traceback (most recent call last):
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/check_glut_debug.py", line 114, in <module>
newArgv = glutInit(sys.argv)
File "/usr/lib/python3/dist-packages/OpenGL/GLUT/special.py", line 333, in glutInit
_base_glutInit( ctypes.byref(count), holder )
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/OpenGL/platform/baseplatform.py", line 495, in __call__
raise error.NullFunctionError(
...<5 lines>...
)
OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutInit) before calling
______________________________ test_check_glut_fc ______________________________
args = (), named = {}
@wraps(func)
def glut_only_test(*args, **named):
if not glutInit:
pytest.skip("No GLUT installed")
> return func(*args, **named)
tests/test_checks.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
> raise RuntimeError('Test script failure')
E RuntimeError: Test script failure
tests/test_checks.py:77: RuntimeError
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:73 Test did not produce output: Traceback (most recent call last):
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/check_glut_fc.py", line 97, in <module>
newArgv = glutInit(sys.argv)
File "/usr/lib/python3/dist-packages/OpenGL/GLUT/special.py", line 333, in glutInit
_base_glutInit( ctypes.byref(count), holder )
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/OpenGL/platform/baseplatform.py", line 495, in __call__
raise error.NullFunctionError(
...<5 lines>...
)
OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutInit) before calling
_____________________________ test_check_glut_load _____________________________
args = (), named = {}
@wraps(func)
def glut_only_test(*args, **named):
if not glutInit:
pytest.skip("No GLUT installed")
> return func(*args, **named)
tests/test_checks.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
raise RuntimeError('Test script failure')
if 'SKIP' in lines:
raise pytest.skip("Skipped by executable")
elif 'OK' in lines:
return
else:
log.error(
"Failing check script output: %s",
stderr.decode('utf-8', errors='ignore'),
)
print(output)
> raise RuntimeError("Test Failed")
E RuntimeError: Test Failed
tests/test_checks.py:88: RuntimeError
----------------------------- Captured stdout call -----------------------------
GL <CDLL 'libGL.so.1', handle 205e4c80 at 0x7f2066c66a50>
GLU <CDLL 'libGLU.so.1', handle 205ef7f0 at 0x7f2066a02e90>
GLUT <CDLL 'None', handle 7f206710a310 at 0x7f2066a034d0>
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:83 Failing check script output: Traceback (most recent call last):
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/check_glut_load.py", line 20, in <module>
print(GLUT.glutSolidTeapot)
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/ctypes/__init__.py", line 403, in __getattr__
func = self.__getitem__(name)
File "/usr/lib/python3.13/ctypes/__init__.py", line 408, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/bin/python3.13: undefined symbol: glutSolidTeapot
_____________________________ test_check_glutinit ______________________________
args = (), named = {}
@wraps(func)
def glut_only_test(*args, **named):
if not glutInit:
pytest.skip("No GLUT installed")
> return func(*args, **named)
tests/test_checks.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
> raise RuntimeError('Test script failure')
E RuntimeError: Test script failure
tests/test_checks.py:77: RuntimeError
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:73 Test did not produce output: Traceback (most recent call last):
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/check_glutinit.py", line 23, in <module>
glutInit([])
~~~~~~~~^^^^
File "/usr/lib/python3/dist-packages/OpenGL/GLUT/special.py", line 333, in glutInit
_base_glutInit( ctypes.byref(count), holder )
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/OpenGL/platform/baseplatform.py", line 495, in __call__
raise error.NullFunctionError(
...<5 lines>...
)
OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutInit) before calling
__________________________ test_check_glutinit_0args ___________________________
args = (), named = {}
@wraps(func)
def glut_only_test(*args, **named):
if not glutInit:
pytest.skip("No GLUT installed")
> return func(*args, **named)
tests/test_checks.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
> raise RuntimeError('Test script failure')
E RuntimeError: Test script failure
tests/test_checks.py:77: RuntimeError
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:73 Test did not produce output: Traceback (most recent call last):
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/check_glutinit_0args.py", line 8, in <module>
GLUT.glutInit()
~~~~~~~~~~~~~^^
File "/usr/lib/python3/dist-packages/OpenGL/GLUT/special.py", line 333, in glutInit
_base_glutInit( ctypes.byref(count), holder )
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/OpenGL/platform/baseplatform.py", line 495, in __call__
raise error.NullFunctionError(
...<5 lines>...
)
OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutInit) before calling
__________________________ test_check_glutinit_single __________________________
args = (), named = {}
@wraps(func)
def glut_only_test(*args, **named):
if not glutInit:
pytest.skip("No GLUT installed")
> return func(*args, **named)
tests/test_checks.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
> raise RuntimeError('Test script failure')
E RuntimeError: Test script failure
tests/test_checks.py:77: RuntimeError
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:73 Test did not produce output: Traceback (most recent call last):
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/check_glutinit_single.py", line 5, in <module>
glutInit([''])
~~~~~~~~^^^^^^
File "/usr/lib/python3/dist-packages/OpenGL/GLUT/special.py", line 333, in glutInit
_base_glutInit( ctypes.byref(count), holder )
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/OpenGL/platform/baseplatform.py", line 495, in __call__
raise error.NullFunctionError(
...<5 lines>...
)
OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutInit) before calling
_________________________ test_check_glutinit_simplest _________________________
args = (), named = {}
@wraps(func)
def glut_only_test(*args, **named):
if not glutInit:
pytest.skip("No GLUT installed")
> return func(*args, **named)
tests/test_checks.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
> raise RuntimeError('Test script failure')
E RuntimeError: Test script failure
tests/test_checks.py:77: RuntimeError
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:73 Test did not produce output: Traceback (most recent call last):
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/check_glutinit_simplest.py", line 3, in <module>
glutInit()
~~~~~~~~^^
File "/usr/lib/python3/dist-packages/OpenGL/GLUT/special.py", line 333, in glutInit
_base_glutInit( ctypes.byref(count), holder )
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/OpenGL/platform/baseplatform.py", line 495, in __call__
raise error.NullFunctionError(
...<5 lines>...
)
OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutInit) before calling
____________________________ test_egl_ext_enumerate ____________________________
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
> raise RuntimeError('Test script failure')
E RuntimeError: Test script failure
tests/test_checks.py:77: RuntimeError
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:73 Test did not produce output: WARNING:os_egl:eglInitilise failure on <OpenGL._opaque.EGLDisplay_pointer object at 0x7f6ff6c12d50>: EGL_NOT_INITIALIZED (EGL_NOT_INITIALIZED)
DEBUG:OpenGL.platform.ctypesloader:Loaded libGLU.so => libGLU.so.1 <CDLL 'libGLU.so.1', handle 1d5391f0 at 0x7f6ff6dd1490>
Traceback (most recent call last):
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/os_egl.py", line 132, in egl_context
eglInitialize(display, major, minor)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/OpenGL/platform/baseplatform.py", line 487, in __call__
return self(*args, **named)
File "/usr/lib/python3/dist-packages/OpenGL/error.py", line 230, in glCheckError
raise self._errorClass(
...<4 lines>...
)
OpenGL.raw.EGL._errors.EGLError: EGLError(
err = EGL_NOT_INITIALIZED,
baseOperation = eglInitialize,
cArguments = (
<OpenGL._opaque.EGLDisplay_pointer object at 0x7f6ff6c12d50>,
c_int(0),
c_int(0),
),
result = 0
)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/egl_ext_enumerate.py", line 36, in <module>
main()
~~~~^^
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/egl_ext_enumerate.py", line 8, in main
with egl_context(output=None, pbuffer=True) as context:
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/contextlib.py", line 141, in __enter__
return next(self.gen)
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/os_egl.py", line 135, in egl_context
raise NoEGLSupport(display)
os_egl.NoEGLSupport: <OpenGL._opaque.EGLDisplay_pointer object at 0x7f6ff6c12d50>
_______________________ test_test_instanced_draw_detect ________________________
args = (), named = {}
@wraps(func)
def glut_only_test(*args, **named):
if not glutInit:
pytest.skip("No GLUT installed")
> return func(*args, **named)
tests/test_checks.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
> raise RuntimeError('Test script failure')
E RuntimeError: Test script failure
tests/test_checks.py:77: RuntimeError
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:73 Test did not produce output: Traceback (most recent call last):
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/test_instanced_draw_detect.py", line 40, in <module>
detect()
~~~~~~^^
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/test_instanced_draw_detect.py", line 11, in detect
glutInit([])
~~~~~~~~^^^^
File "/usr/lib/python3/dist-packages/OpenGL/GLUT/special.py", line 333, in glutInit
_base_glutInit( ctypes.byref(count), holder )
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/OpenGL/platform/baseplatform.py", line 495, in __call__
raise error.NullFunctionError(
...<5 lines>...
)
OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutInit) before calling
__________________________ test_test_gldouble_ctypes ___________________________
args = (), named = {}
@wraps(func)
def glut_only_test(*args, **named):
if not glutInit:
pytest.skip("No GLUT installed")
> return func(*args, **named)
tests/test_checks.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
> raise RuntimeError('Test script failure')
E RuntimeError: Test script failure
tests/test_checks.py:77: RuntimeError
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:73 Test did not produce output: Traceback (most recent call last):
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/test_gldouble_ctypes.py", line 94, in <module>
newArgv = glutInit(sys.argv)
File "/usr/lib/python3/dist-packages/OpenGL/GLUT/special.py", line 333, in glutInit
_base_glutInit( ctypes.byref(count), holder )
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/OpenGL/platform/baseplatform.py", line 495, in __call__
raise error.NullFunctionError(
...<5 lines>...
)
OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutInit) before calling
__________________________ test_test_glgetfloat_leak ___________________________
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
raise RuntimeError('Test script failure')
if 'SKIP' in lines:
raise pytest.skip("Skipped by executable")
elif 'OK' in lines:
return
else:
log.error(
"Failing check script output: %s",
stderr.decode('utf-8', errors='ignore'),
)
print(output)
> raise RuntimeError("Test Failed")
E RuntimeError: Test Failed
tests/test_checks.py:88: RuntimeError
----------------------------- Captured stdout call -----------------------------
pygame 2.6.1 (SDL 2.32.2, Python 3.13.2)
Hello from the pygame community. https://www.pygame.org/contribute.html
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:83 Failing check script output: <frozen importlib._bootstrap>:488: RuntimeWarning: Your system is avx2 capable but pygame was not built with support for it. The performance of some of your blits could be adversely affected. Consider enabling compile time detection with environment variables like PYGAME_DETECT_AVX2=1 if you are compiling without cross compilation.
Failed to create secure directory (/home/experiences/instrumentation/picca/.config/pulse): No such file or directory
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5205:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5205:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1342:(snd_func_refer) error evaluating name
ALSA lib conf.c:5205:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5728:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM default
Failed to create /home/experiences for shader cache (Permission denied)---disabling.
Failed to create /home/experiences for shader cache (Permission denied)---disabling.
Traceback (most recent call last):
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/test_glgetfloat_leak.py", line 37, in <module>
main()
~~~~^^
File "/tmp/autopkgtest.Y3PG5X/autopkgtest_tmp/tests/test_glgetfloat_leak.py", line 26, in main
assert new_mem == mem
^^^^^^^^^^^^^^
AssertionError
_______________________ TestCore.test_glCallLists_twice2 _______________________
self = <test_core.TestCore testMethod=test_glCallLists_twice2>
def test_glCallLists_twice2(self):
"""SF#2829309 report that glCallLists doubles operation"""
glRenderMode(GL_RENDER)
glMatrixMode(GL_PROJECTION)
glLoadIdentity()
gluPerspective(40.0, 1.0, 1.0, 10.0)
glMatrixMode(GL_MODELVIEW)
glLoadIdentity()
glTranslatef(0, 0, -3)
first = glGenLists(2)
second = first + 1
glNewList(first, GL_COMPILE_AND_EXECUTE)
glInitNames()
if not OpenGL.ERROR_ON_COPY:
glCallLists([second]) # replace with gCallList(2)
else:
lists = (GLuint * 1)()
lists[0] = second
glCallLists(lists)
# glCallList(second)
glEndList()
glNewList(second, GL_COMPILE)
glPushName(1)
glBegin(GL_POINTS)
glVertex3f(0, 0, 0)
glEnd()
glEndList()
glCallList(second)
glPopName()
depth = glGetIntegerv(GL_NAME_STACK_DEPTH)
assert depth in (
0,
(0,),
), depth # have popped, but even then, were' not in the mode...
glSelectBuffer(100)
glRenderMode(GL_SELECT)
glCallList(1)
depth = glGetIntegerv(GL_NAME_STACK_DEPTH)
> assert depth in (1, (1,)), depth # should have a single record
E AssertionError: 0
E assert 0 in (1, (1,))
tests/test_core.py:603: AssertionError
=============================== warnings summary ===============================
<frozen importlib._bootstrap>:488
<frozen importlib._bootstrap>:488: RuntimeWarning: Your system is avx2 capable but pygame was not built with support for it. The performance of some of your blits could be adversely affected. Consider enabling compile time detection with environment variables like PYGAME_DETECT_AVX2=1 if you are compiling without cross compilation.
../../../usr/lib/python3/dist-packages/numpy/_pytesttester.py:79
/usr/lib/python3/dist-packages/numpy/_pytesttester.py:79: PytestCollectionWarning: cannot collect 'test' because it is not a function.
def __call__(self, label='fast', verbose=1, extra_argv=None,
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_checks.py::test_check_crash_on_glutinit - RuntimeError: Tes...
FAILED tests/test_checks.py::test_check_egl_es1 - RuntimeError: Test script f...
FAILED tests/test_checks.py::test_check_egl_es2 - RuntimeError: Test script f...
FAILED tests/test_checks.py::test_check_egl_opengl - RuntimeError: Test scrip...
FAILED tests/test_checks.py::test_check_glutwindow - RuntimeError: Test scrip...
FAILED tests/test_checks.py::test_check_freeglut_deinit - RuntimeError: Test ...
FAILED tests/test_checks.py::test_check_gles_imports - RuntimeError: Test scr...
FAILED tests/test_checks.py::test_check_glut_debug - RuntimeError: Test scrip...
FAILED tests/test_checks.py::test_check_glut_fc - RuntimeError: Test script f...
FAILED tests/test_checks.py::test_check_glut_load - RuntimeError: Test Failed
FAILED tests/test_checks.py::test_check_glutinit - RuntimeError: Test script ...
FAILED tests/test_checks.py::test_check_glutinit_0args - RuntimeError: Test s...
FAILED tests/test_checks.py::test_check_glutinit_single - RuntimeError: Test ...
FAILED tests/test_checks.py::test_check_glutinit_simplest - RuntimeError: Tes...
FAILED tests/test_checks.py::test_egl_ext_enumerate - RuntimeError: Test scri...
FAILED tests/test_checks.py::test_test_instanced_draw_detect - RuntimeError: ...
FAILED tests/test_checks.py::test_test_gldouble_ctypes - RuntimeError: Test s...
FAILED tests/test_checks.py::test_test_glgetfloat_leak - RuntimeError: Test F...
FAILED tests/test_core.py::TestCore::test_glCallLists_twice2 - AssertionError: 0
======= 19 failed, 69 passed, 5 skipped, 1 xfailed, 2 warnings in 8.45s ========
By installing the package libglut3.12, I can reduce the failure to this subset.
=========================== short test summary info ============================
FAILED tests/test_checks.py::test_check_egl_es1 - RuntimeError: Test Failed
FAILED tests/test_checks.py::test_check_egl_es2 - RuntimeError: Test script f...
FAILED tests/test_checks.py::test_check_gles_imports - RuntimeError: Test scr...
FAILED tests/test_checks.py::test_egl_ext_enumerate - RuntimeError: Test scri...
FAILED tests/test_core.py::TestCore::test_glCallLists_twice2 - AssertionError: 0
it seems that the HOME should be writable in order to proceed...
ERROR test_checks:test_checks.py:83 Failing check script output: Failed to create /home/experiences for shader cache (Permission denied)---disabling.
Failed to create /home/experiences for shader cache (Permission denied)---disabling.
So now that I setup a writable HOME, I get these errors:
Testing with python3.13:
============================= test session starts ==============================
platform linux -- Python 3.13.2, pytest-8.3.5, pluggy-1.5.0
rootdir: /tmp/autopkgtest.7jxr1Z/autopkgtest_tmp
collected 93 items / 1 skipped
tests/test_arraydatatype.py ..s..s....s..... [ 17%]
tests/test_checks.py .FF.s.x....F........F.....F [ 46%]
tests/test_core.py ..........F............... [ 74%]
tests/test_evaluators.py ....... [ 81%]
tests/test_tess.py ... [ 84%]
tests/test_textures.py ............. [ 98%]
tests/test_vbo_memusage.py . [100%]
=================================== FAILURES ===================================
______________________________ test_check_egl_es1 ______________________________
args = (), named = {}
@wraps(func)
def glut_only_test(*args, **named):
if not numpy:
pytest.skip("No GLUT installed")
> return func(*args, **named)
tests/test_checks.py:41:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
raise RuntimeError('Test script failure')
if 'SKIP' in lines:
raise pytest.skip("Skipped by executable")
elif 'OK' in lines:
return
else:
log.error(
"Failing check script output: %s",
stderr.decode('utf-8', errors='ignore'),
)
print(output)
> raise RuntimeError("Test Failed")
E RuntimeError: Test Failed
tests/test_checks.py:88: RuntimeError
----------------------------- Captured stdout call -----------------------------
api requested: gles1 api constant EGL_OPENGL_ES_API (EGL_OPENGL_ES_API)
local_attributes [EGL_BLUE_SIZE, 8, EGL_RED_SIZE, 8, EGL_GREEN_SIZE, 8, EGL_DEPTH_SIZE, 24, EGL_COLOR_BUFFER_TYPE, EGL_RGB_BUFFER, EGL_CONFIG_CAVEAT, EGL_NONE, EGL_CONFORMANT, EGL_OPENGL_ES_BIT, EGL_NONE]
API EGL_OPENGL_ES_API (EGL_OPENGL_ES_API)
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:83 Failing check script output: Traceback (most recent call last):
File "/tmp/autopkgtest.7jxr1Z/autopkgtest_tmp/tests/check_egl_es1.py", line 19, in <module>
test_es1()
~~~~~~~~^^
File "/tmp/autopkgtest.7jxr1Z/autopkgtest_tmp/tests/xlibegltest.py", line 167, in test_function
window.loop(target=function, args=args, named=named, exit_on_render=True)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/autopkgtest.7jxr1Z/autopkgtest_tmp/tests/xlibegltest.py", line 133, in loop
self.eglSetup()
~~~~~~~~~~~~~^^
File "/tmp/autopkgtest.7jxr1Z/autopkgtest_tmp/tests/xlibegltest.py", line 118, in eglSetup
self.egl_ctx = eglCreateContext(display, configs[0], EGL_NO_CONTEXT, None)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/OpenGL/platform/baseplatform.py", line 487, in __call__
return self(*args, **named)
File "/usr/lib/python3/dist-packages/OpenGL/error.py", line 230, in glCheckError
raise self._errorClass(
...<4 lines>...
)
OpenGL.raw.EGL._errors.EGLError: EGLError(
err = EGL_BAD_ALLOC,
baseOperation = eglCreateContext,
cArguments = (
<OpenGL._opaque.EGLDisplay_pointer object at 0x7f7c957c04d0>,
<OpenGL._opaque.EGLConfig_pointer object at 0x7f7c957c0fd0>,
<OpenGL._opaque.EGLContext_pointer object at 0x7f7c97642ad0>,
None,
),
result = <OpenGL._opaque.EGLContext_pointer object at 0x7f7c957c1050>
)
______________________________ test_check_egl_es2 ______________________________
args = (), named = {}
@wraps(func)
def glut_only_test(*args, **named):
if not numpy:
pytest.skip("No GLUT installed")
> return func(*args, **named)
tests/test_checks.py:41:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
> raise RuntimeError('Test script failure')
E RuntimeError: Test script failure
tests/test_checks.py:77: RuntimeError
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:73 Test did not produce output: Traceback (most recent call last):
File "/tmp/autopkgtest.7jxr1Z/autopkgtest_tmp/tests/check_egl_es2.py", line 7, in <module>
from OpenGL.GLES2 import *
File "/usr/lib/python3/dist-packages/OpenGL/GLES2/__init__.py", line 2, in <module>
from OpenGL.raw.GLES2._types import *
File "/usr/lib/python3/dist-packages/OpenGL/raw/GLES2/_types.py", line 5, in <module>
_error_checker = _ErrorChecker( _p, _p.GLES2.glGetError )
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'glGetError'
___________________________ test_check_gles_imports ____________________________
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
> raise RuntimeError('Test script failure')
E RuntimeError: Test script failure
tests/test_checks.py:77: RuntimeError
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:73 Test did not produce output: Traceback (most recent call last):
File "/tmp/autopkgtest.7jxr1Z/autopkgtest_tmp/tests/check_gles_imports.py", line 8, in <module>
from OpenGL.GLES2 import *
File "/usr/lib/python3/dist-packages/OpenGL/GLES2/__init__.py", line 2, in <module>
from OpenGL.raw.GLES2._types import *
File "/usr/lib/python3/dist-packages/OpenGL/raw/GLES2/_types.py", line 5, in <module>
_error_checker = _ErrorChecker( _p, _p.GLES2.glGetError )
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'glGetError'
____________________________ test_egl_ext_enumerate ____________________________
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
> raise RuntimeError('Test script failure')
E RuntimeError: Test script failure
tests/test_checks.py:77: RuntimeError
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:73 Test did not produce output: WARNING:os_egl:eglInitilise failure on <OpenGL._opaque.EGLDisplay_pointer object at 0x7f69a554ed50>: EGL_NOT_INITIALIZED (EGL_NOT_INITIALIZED)
DEBUG:OpenGL.platform.ctypesloader:Loaded libGLU.so => libGLU.so.1 <CDLL 'libGLU.so.1', handle 820e1f0 at 0x7f69a570d490>
Traceback (most recent call last):
File "/tmp/autopkgtest.7jxr1Z/autopkgtest_tmp/tests/os_egl.py", line 132, in egl_context
eglInitialize(display, major, minor)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/OpenGL/platform/baseplatform.py", line 487, in __call__
return self(*args, **named)
File "/usr/lib/python3/dist-packages/OpenGL/error.py", line 230, in glCheckError
raise self._errorClass(
...<4 lines>...
)
OpenGL.raw.EGL._errors.EGLError: EGLError(
err = EGL_NOT_INITIALIZED,
baseOperation = eglInitialize,
cArguments = (
<OpenGL._opaque.EGLDisplay_pointer object at 0x7f69a554ed50>,
c_int(0),
c_int(0),
),
result = 0
)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/autopkgtest.7jxr1Z/autopkgtest_tmp/tests/egl_ext_enumerate.py", line 36, in <module>
main()
~~~~^^
File "/tmp/autopkgtest.7jxr1Z/autopkgtest_tmp/tests/egl_ext_enumerate.py", line 8, in main
with egl_context(output=None, pbuffer=True) as context:
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/contextlib.py", line 141, in __enter__
return next(self.gen)
File "/tmp/autopkgtest.7jxr1Z/autopkgtest_tmp/tests/os_egl.py", line 135, in egl_context
raise NoEGLSupport(display)
os_egl.NoEGLSupport: <OpenGL._opaque.EGLDisplay_pointer object at 0x7f69a554ed50>
__________________________ test_test_glgetfloat_leak ___________________________
@wraps(func)
def test_x():
log.info("Starting test: %s", filename)
pipe = subprocess.Popen(
[
sys.executable,
file,
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
try:
stdout, stderr = pipe.communicate()
except subprocess.TimeoutExpired:
log.warning("TIMEOUT on %s", filename)
pipe.kill()
raise
except subprocess.CalledProcessError as err:
log.warning("ERROR reported by process: %s", err)
raise
output = stdout.decode('utf-8', errors='ignore')
lines = [x.strip() for x in output.strip().splitlines()]
if not lines:
log.error(
"Test did not produce output: %s",
stderr.decode('utf-8', errors='ignore'),
)
raise RuntimeError('Test script failure')
if 'SKIP' in lines:
raise pytest.skip("Skipped by executable")
elif 'OK' in lines:
return
else:
log.error(
"Failing check script output: %s",
stderr.decode('utf-8', errors='ignore'),
)
print(output)
> raise RuntimeError("Test Failed")
E RuntimeError: Test Failed
tests/test_checks.py:88: RuntimeError
----------------------------- Captured stdout call -----------------------------
pygame 2.6.1 (SDL 2.32.2, Python 3.13.2)
Hello from the pygame community. https://www.pygame.org/contribute.html
------------------------------ Captured log call -------------------------------
ERROR test_checks:test_checks.py:83 Failing check script output: <frozen importlib._bootstrap>:488: RuntimeWarning: Your system is avx2 capable but pygame was not built with support for it. The performance of some of your blits could be adversely affected. Consider enabling compile time detection with environment variables like PYGAME_DETECT_AVX2=1 if you are compiling without cross compilation.
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5205:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5205:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1342:(snd_func_refer) error evaluating name
ALSA lib conf.c:5205:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5728:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM default
Traceback (most recent call last):
File "/tmp/autopkgtest.7jxr1Z/autopkgtest_tmp/tests/test_glgetfloat_leak.py", line 37, in <module>
main()
~~~~^^
File "/tmp/autopkgtest.7jxr1Z/autopkgtest_tmp/tests/test_glgetfloat_leak.py", line 26, in main
assert new_mem == mem
^^^^^^^^^^^^^^
AssertionError
_______________________ TestCore.test_glCallLists_twice2 _______________________
self = <test_core.TestCore testMethod=test_glCallLists_twice2>
def test_glCallLists_twice2(self):
"""SF#2829309 report that glCallLists doubles operation"""
glRenderMode(GL_RENDER)
glMatrixMode(GL_PROJECTION)
glLoadIdentity()
gluPerspective(40.0, 1.0, 1.0, 10.0)
glMatrixMode(GL_MODELVIEW)
glLoadIdentity()
glTranslatef(0, 0, -3)
first = glGenLists(2)
second = first + 1
glNewList(first, GL_COMPILE_AND_EXECUTE)
glInitNames()
if not OpenGL.ERROR_ON_COPY:
glCallLists([second]) # replace with gCallList(2)
else:
lists = (GLuint * 1)()
lists[0] = second
glCallLists(lists)
# glCallList(second)
glEndList()
glNewList(second, GL_COMPILE)
glPushName(1)
glBegin(GL_POINTS)
glVertex3f(0, 0, 0)
glEnd()
glEndList()
glCallList(second)
glPopName()
depth = glGetIntegerv(GL_NAME_STACK_DEPTH)
assert depth in (
0,
(0,),
), depth # have popped, but even then, were' not in the mode...
glSelectBuffer(100)
glRenderMode(GL_SELECT)
glCallList(1)
depth = glGetIntegerv(GL_NAME_STACK_DEPTH)
> assert depth in (1, (1,)), depth # should have a single record
E AssertionError: 0
E assert 0 in (1, (1,))
tests/test_core.py:603: AssertionError
=============================== warnings summary ===============================
<frozen importlib._bootstrap>:488
<frozen importlib._bootstrap>:488: RuntimeWarning: Your system is avx2 capable but pygame was not built with support for it. The performance of some of your blits could be adversely affected. Consider enabling compile time detection with environment variables like PYGAME_DETECT_AVX2=1 if you are compiling without cross compilation.
../../../usr/lib/python3/dist-packages/numpy/_pytesttester.py:79
/usr/lib/python3/dist-packages/numpy/_pytesttester.py:79: PytestCollectionWarning: cannot collect 'test' because it is not a function.
def __call__(self, label='fast', verbose=1, extra_argv=None,
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_checks.py::test_check_egl_es1 - RuntimeError: Test Failed
FAILED tests/test_checks.py::test_check_egl_es2 - RuntimeError: Test script f...
FAILED tests/test_checks.py::test_check_gles_imports - RuntimeError: Test scr...
FAILED tests/test_checks.py::test_egl_ext_enumerate - RuntimeError: Test scri...
FAILED tests/test_checks.py::test_test_glgetfloat_leak - RuntimeError: Test F...
FAILED tests/test_core.py::TestCore::test_glCallLists_twice2 - AssertionError: 0
======= 6 failed, 82 passed, 5 skipped, 1 xfailed, 2 warnings in 15.19s ========
After installing libgles1 and libgles2 on less failing test...
=========================== short test summary info ============================ FAILED tests/test_checks.py::test_check_egl_es1 - RuntimeError: Test Failed FAILED tests/test_checks.py::test_check_egl_es2 - RuntimeError: Test Failed FAILED tests/test_checks.py::test_egl_ext_enumerate - RuntimeError: Test scri... FAILED tests/test_core.py::TestCore::test_glCallLists_twice2 - AssertionError: 0 ======= 4 failed, 84 passed, 5 skipped, 1 xfailed, 2 warnings in 15.31s ========
I think, I will need your help in order to solve these remaining failure.
thansk