numpy tests fail on openSUSE i586 and armv7l

Bug #1840575 reported by John Vandenberg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyopengl (Ubuntu)
Undecided
Unassigned

Bug Description

On openSUSE, when numpy is available in the build VM, the tests fail on Python 2.7 and Python 3.7

The short version:

[ 258s] + python2 -m pytest -v tests
[ 258s] ============================= test session starts ==============================
[ 258s] platform linux2 -- Python 2.7.16, pytest-4.6.4, py-1.8.0, pluggy-0.12.0 -- /usr/bin/python2
[ 258s] cachedir: .pytest_cache
[ 258s] rootdir: /home/abuild/rpmbuild/BUILD/PyOpenGL-3.1.3b2
[ 267s] collecting ... collected 65 items
[ 267s]
[ 267s] tests/test_arraydatatype.py::TestCoreDatatype::test_arrayPointer PASSED [ 1%]
[ 268s] tests/test_arraydatatype.py::TestCoreDatatype::test_array_subclass FAILED [ 3%]
[ 268s] tests/test_arraydatatype.py::TestCoreDatatype::test_buffer_api_basic FAILED [ 4%]
[ 268s] tests/test_arraydatatype.py::TestCoreDatatype::test_byte_count PASSED [ 6%]
[ 268s] tests/test_arraydatatype.py::TestCoreDatatype::test_byte_count_numpy /var/tmp/rpm-tmp.Ztyz5e: line 42: 25279 Aborted python2 -m pytest -v tests
[ 268s] + kill 25259

The complete rpmbuild log is attached.

Revision history for this message
John Vandenberg (jayvdb) wrote :
John Vandenberg (jayvdb)
summary: - numpy tests fail on openSUSE i586 and armv7l Python 2.7
+ numpy tests fail on openSUSE i586 and armv7l
description: updated
Revision history for this message
John Vandenberg (jayvdb) wrote :

The list of tests failing or aborting:

test_array_subclass
test_buffer_api_basic
test_byte_count_numpy
test_numpyConversion
test_copyNonContiguous
test_arrayTranspose
test_glmultidraw
test_glbuffersubdata_numeric
test_vbo
test_mmap_data
test_nurbs
test_evaluator
test_tess_cb_traditional
test_glAreTexturesResident
test_tess_collection
test_glreadpixels_warray

Revision history for this message
John Vandenberg (jayvdb) wrote :
Download full text (4.4 KiB)

Two of the failures

[ 125s] =================================== FAILURES ===================================
[ 125s] _____________________ TestCoreDatatype.test_array_subclass _____________________
[ 125s]
[ 125s] self = <test_arraydatatype.TestCoreDatatype testMethod=test_array_subclass>
[ 125s]
[ 125s] @pytest.mark.skipif( not np, reason="Numpy not available")
[ 125s] def test_array_subclass( self ):
[ 125s] s = Subclassed([0,1,2,3,4])
[ 125s] > result = arraydatatype.ArrayDatatype.asArray( s )
[ 125s]
[ 125s] tests/test_arraydatatype.py:287:
[ 125s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 125s] src/arraydatatype.pyx:172: in OpenGL_accelerate.arraydatatype.ArrayDatatype.asArray
[ 125s] ???
[ 125s] src/arraydatatype.pyx:47: in OpenGL_accelerate.arraydatatype.HandlerRegistry.c_lookup
[ 125s] ???
[ 125s] OpenGL/plugins.py:16: in load
[ 125s] return importByName( self.import_path )
[ 125s] OpenGL/plugins.py:38: in importByName
[ 125s] module = __import__( ".".join(moduleName), {}, {}, moduleName)
[ 125s] OpenGL/arrays/numpymodule.py:28: in <module>
[ 125s] from OpenGL_accelerate.numpy_formathandler import NumpyHandler
[ 125s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 125s]
[ 125s] > ???
[ 125s] E AttributeError: 'module' object has no attribute 'float128'
[ 125s]
[ 125s] src/numpy_formathandler.pyx:55: AttributeError
[ 125s] ____________________ TestCoreDatatype.test_buffer_api_basic ____________________
[ 125s]
[ 125s] self = <test_arraydatatype.TestCoreDatatype testMethod=test_buffer_api_basic>
[ 125s]
[ 125s] @pytest.mark.skipif( not (
[ 125s] OpenGL.USE_ACCELERATE and acceleratesupport.ACCELERATE_AVAILABLE
[ 125s] ), reason="Need OpenGL_accelerate for buffer support")
[ 125s] def test_buffer_api_basic(self):
[ 125s] import array as silly_array
[ 125s] structures = [
[ 125s] (b'this and that',13,1,True,1,b'B',[13],[1]),
[ 125s] ]
[ 125s] if sys.version_info[:2] >= (2,7):
[ 125s] structures.append(
[ 125s] # on Python 3.4 we do *not* get the (3) prefix :(
[ 125s] ((GLint * 3)( 1,2,3 ),12,4,False,1,[b'(3)<i',b'(3)<l',b'<i'],[3],None),
[ 125s] )
[ 125s]
[ 125s] if sys.version_info[:2] >= (3,0):
[ 125s] # only supports buffer protocol in 3.x
[ 125s] structures.extend([
[ 125s] (silly_array.array('I',[1,2,3]),12,4,False,1,b'I',[3],[4]),
[ 125s] ])
[ 125s] try:
[ 125s] structures.append( (memoryview(b'this'),4,1,True,1,b'B',[4],[1]) )
[ 125s] except NameError:
[ 125s] # Python 2.6 doesn't have memory view
[ 125s] pass
[ 125s] try:
[ 125s] if array:
[ 125s] structures.extend( [
[ 125s] (arange(0,9,dtype='I').reshape((3,3)),36,4,False,2,b'I',[3,3],[12,4]),
[ 125s] (arange(0,9,dtype='I').reshape((3,3))[:,1],12,4,False,1,b'I',[3],[12]),
[ 125s] ...

Read more...

Revision history for this message
John Vandenberg (jayvdb) wrote :

Note this only occurs when opengl-accelerate is present.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments