Re: [PyOpenGL-Users] Any OS-X users able to do some testing with bzr head?
Brought to you by:
mcfletch
|
From: Nicolas R. <Nic...@in...> - 2014-01-03 08:26:04
|
On 02 Jan 2014, at 21:51, Mike C. Fletcher <mcf...@vr...> wrote:
> On 14-01-02 04:19 AM, Nicolas Rougier wrote:
>> Here is my output on OSX 10.9.1 (Mavericks) using:
>>
>> Python 2.7.6 (default, Nov 23 2013, 22:18:00)
>> [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin
>>
>> and pygame 1.9.1release
> Hi Nicolas, wondering if you could do a tiny bit of follow up for me (you will need to pull bzr head again with `bzr pull` in pyopengl, as there were some bug-fixes from my attempts to recreate these errors):
Yep, sure.
>
>> ======================================================================
>> ERROR: test_buffer_api_basic (__main__.Tests)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>> File "test_core.py", line 1030, in test_buffer_api_basic
>> buf = _buffers.Py_buffer.from_object( object, _buffers.PyBUF_STRIDES|_buffers.PyBUF_FORMAT )
>> AttributeError: type object 'Py_buffer' has no attribute 'from_object'
>
> This is just *weird*, the code (a class-method named from_object) is definitely there in the _buffers module in bzr. Could you do the following:
>
> from OpenGL.arrays import _buffers
> print dir( _buffers.Py_buffer )
>
> and send me the output?
['__class__', '__ctypes_from_outparam__', '__delattr__', '__dict__', '__doc__', '__enter__', '__exit__', '__format__', '__getattribute__', '__hash__', '__init__', '__len__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__setstate__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_b_base_', '_b_needsfree_', '_fields_', '_objects', 'buf', 'dim_strides', 'dims', 'format', 'from_object', 'internal', 'itemsize', 'len', 'ndim', 'obj', 'readonly', 'shape', 'smalltable', 'strides', 'suboffsets']
>
>> ======================================================================
>> ERROR: test_bytearray_support (__main__.Tests)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>> File "test_core.py", line 1055, in test_bytearray_support
>> glColor3fv( color )
>> File "/usr/locaL/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenGL/latebind.py", line 45, in __call__
>> return self._finalCall( *args, **named )
>> File "/usr/locaL/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenGL/wrapper.py", line 570, in wrapperCall
>> pyArgs = tuple( calculate_pyArgs( args ))
>> File "/usr/locaL/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenGL/wrapper.py", line 355, in calculate_pyArgs
>> yield converter(args[index], self, args)
>> File "/usr/locaL/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenGL/arrays/arrayhelpers.py", line 111, in asArraySize
>> handler = typ.getHandler( incoming )
>> File "/usr/locaL/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/OpenGL/arrays/arraydatatype.py", line 52, in __call__
>> typ, repr(value)[:50]
>> TypeError: ("No array-type handler for type <type 'bytearray'> (value: bytearray(b'\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x) registered", <function asArraySize at 0x10ff22398>)
>
> For the other two errors, could you re-run the test-suite, as I've added code to report the module and name rather than the repr of the type (it's module+name used to lookup the type).
I pulled pyopengl but now I'm unable to start tests. I got:
Fatal Python error: (pygame parachute) Segmentation Fault
Abort trap: 6
After little debug, the "faulty" line is:
>>> from OpenGL.GL import *
Segmentation fault: 11
Nicolas
|