On 03/05/2007, at 3:57 AM, joey101 wrote:

>
> Hmm, then I have no idea what could be wrong. My brother has the same
> problem though on his comp.
>

Could you find out what's being returned from ctypes, for example by  
inserting this line

     print name, addr, type(addr)

before line 52?

Cheers
Alex.
>

> On Apr 30, 6:28 pm, Alex Holkner <[EMAIL PROTECTED]> wrote:
>> On 01/05/2007, at 5:46 AM, joey101 wrote:
>>
>>
>>
>>> Sorry took so long to reply... I don't get enough internet time. :P
>>
>>> On line 50 in pyglet/gl/lib_glx.py I made it make sure the addr is
>>> callable before running it though ftype()
>>
>>> if addr *and callable(addr)*:
>>
>>> and that fixes it for me. Or at least one of the problems :P
>>
>> Not really a useful fix... addr is only supposed to be an int (I'd
>> settle for a number of some sort).
>>
>> Alex.
>>
>>> On Apr 12, 5:31 pm, Alex Holkner <[EMAIL PROTECTED]> wrote:
>>>>> OpenGL vendor string: Tungsten Graphics, Inc.
>>>>> OpenGL renderer string: Mesa DRI Radeon 20061018 AGP 1x x86/MMX/ 
>>>>> SSE2
>>>>> TCL
>>>>> OpenGL version string: 1.3 Mesa 6.5.2
>>
>>>> This is an interesting driver that we've not seen before...
>>
>>>>> python 2.4
>>>>> ctypes 1.0.1
>>
>>>> But this combination has been well-tested.  But this traceback
>>
>>>>    File "/home/joey/projects/pyglet/window/xlib/__init__.py", line
>>>> 37,
>>>> in ?
>>>>      from pyglet.gl.glxext_abi import *
>>>>    File "/home/joey/projects/pyglet/gl/glxext_abi.py", line 232,  
>>>> in ?
>>>>      glXSwapIntervalSGI = _link_function('glXSwapIntervalSGI',  
>>>> c_int,
>>>> [c_int], 'SGI_swap_control')
>>>>    File "/home/joey/projects/pyglet/gl/lib_glx.py", line 52, in
>>>> link_GL
>>>>      func = ftype(addr)
>>>> TypeError: argument must be callable or integer function address
>>
>>>> suggests a problem with ctypes, not the driver.  Could you find out
>>>> what's being returned into 'addr' here, for example by inserting  
>>>> this
>>>> line
>>
>>>>                  print name, addr, type(addr)
>>
>>>> before line 52 in pyglet/gl/lib_glx.py?
>>
>>>>> [EMAIL PROTECTED] tests $ python test.py
>>>>> Traceback (most recent call last):
>>>>>   File "test.py", line 201, in ?
>>>>>     import tests.regression
>>>>> ImportError: No module named tests.regression
>>
>>>> This looks like your working checkout is broken, perhaps try  
>>>> checking
>>>> out trunk cleanly again? (svn is not without its faults).
>>
>>>> Alex.
>
>
> >

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to