[Bug 1840575] Re: numpy tests fail on openSUSE i586 and armv7l

2019-08-18 Thread John Vandenberg
Note this only occurs when opengl-accelerate is present.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1840575

Title:
  numpy tests fail on openSUSE i586 and armv7l

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pyopengl/+bug/1840575/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1840575] Re: numpy tests fail on openSUSE i586 and armv7l

2019-08-18 Thread John Vandenberg
Two of the failures

[  125s] === FAILURES 
===
[  125s] _ TestCoreDatatype.test_array_subclass 
_
[  125s] 
[  125s] self = 
[  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 
[  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 = 
[  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)= (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] ])
[  125s] except NameError:
[  125s] # Don't have numpy installed...
[  125s] pass
[  125s] 
[  125s] from OpenGL.arrays import _buffers
[  125s] for object,length,itemsize,readonly,ndim,format,shape,strides 
in structures:
[  125s] buf = _buffers.Py_buffer.from_object( object, 
_buffers.PyBUF_STRIDES|_buffers.PyBUF_FORMAT )
[  125s] with buf:
[  125s] assert buf.len == length, (object,length,buf.len)
[  125s] assert buf.itemsize == itemsize, 
(object,itemsize,buf.itemsize)
[  125s] assert buf.readonly == readonly, 
(object,readonly,buf.readonly)
[  125s] assert buf.ndim == ndim, (object,ndim,buf.ndim)
[  125s] if isinstance( format, list):
[  125s] >   assert buf.format in format, 
(object,format,buf.format)
[  125s] E   AssertionError: 
(, ['(3).format
[  125s] 
[  125s] tests/test_arraydatatype.py:245: AssertionError

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1840575

Title:
  numpy tests fail on openSUSE i586 and armv7l

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pyopengl/+bug/1840575/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1840575] Re: numpy tests fail on openSUSE i586 and armv7l

2019-08-18 Thread John Vandenberg
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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1840575

Title:
  numpy tests fail on openSUSE i586 and armv7l

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pyopengl/+bug/1840575/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1840575] Re: numpy tests fail on openSUSE i586 and armv7l

2019-08-18 Thread John Vandenberg
** Summary changed:

- numpy tests fail on openSUSE i586 and armv7l Python 2.7
+ numpy tests fail on openSUSE i586 and armv7l

** Description changed:

  On openSUSE, when numpy is available in the build VM, the tests fail on
- Python 2.7
+ 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]
  [  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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1840575

Title:
  numpy tests fail on openSUSE i586 and armv7l

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pyopengl/+bug/1840575/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs