Hi,

I think this may have been fixed in the latest pyglet release. If you're 
already running the latest release, can you post a full example code? I'm 
not familar with psychopy, but I will test it on my machine. 

On Wednesday, August 24, 2016 at 6:49:45 AM UTC+9, Noel El wrote:
>
> I am new to pyglet and psychopy and I am trying to get to draw a 3D image 
> by making use of QUAD buffer. 
> But when i use psychopy and pyglet it fails with exception given below.
> If I set the value to False or if I do not set this at all there is no 
> issue. 
> Any help with respect to this is helpful. 
>
> I had posted this in psychopy and they mentioned it is pyglet issue and I 
> am trying to figure out why this is not working
> Plase let me know what am I missing
>
> Tracebak:
> ========
>
> Traceback (most recent call last):
>   File "fixiation.py", line 57, in <module>
>     stereo_mode()
>   File "fixiation.py", line 26, in stereo_mode
>     stereo=True)
>   File "/usr/lib/python2.7/dist-packages/psychopy/visual/window.py", line 
> 325, in __init__
>     self._setupGL()
>   File "/usr/lib/python2.7/dist-packages/psychopy/visual/window.py", line 
> 1425, in _setupGL
>     self._setupPyglet()
>   File "/usr/lib/python2.7/dist-packages/psychopy/visual/window.py", line 
> 1286, in _setupPyglet
>     style=style)
>   File "_build/bdist.linux-x86_64/egg/pyglet/window/xlib/__init__.py", 
> line 163, in __init__
>   File "_build/bdist.linux-x86_64/egg/pyglet/window/__init__.py", line 
> 513, in __init__
>   File "_build/bdist.linux-x86_64/egg/pyglet/canvas/base.py", line 163, in 
> get_best_config
> pyglet.window.NoSuchConfigException
> Exception AttributeError: "'Window' object has no attribute 
> 'useNativeGamma'" in <bound method Window.__del__ of 
> <psychopy.visual.window.Window object at 0x7f66097c8190>> ignored
>
>
>
> System info:
> ===========
>
> userPrefsFile: ~/.psychopy2/userPrefs.cfg
> appDataFile: ~/.psychopy2/appData.cfg
> demos: /usr/lib/python2.7/dist-packages/psychopy/demos
> appFile: /usr/lib/python2.7/dist-packages/psychopy/app/PsychoPy.py
>
> System info:System info:
> Linux-4.2.0-42-generic-x86_64-with-Ubuntu-14.04-trusty
>
> Python info
> /usr/bin/python
> 2.7.6 (default, Jun 22 2015, 17:58:13) 
> [GCC 4.8.2]
> numpy 1.8.2
> scipy 0.13.3
> matplotlib 1.3.1
> pyglet 1.2.4
> pyo version 0.6.8 (uses single precision)
> pyo 0.6.8
>
> PsychoPy 1.83.04
> have shaders: True
>
> OpenGL info:
> vendor: NVIDIA Corporation
> rendering engine: GeForce GTX 970/PCIe/SSE2
> OpenGL version: 4.5.0 NVIDIA 352.63
> (Selected) Extensions:
>      True GL_ARB_multitexture
>      True GL_EXT_framebuffer_object
>      True GL_ARB_fragment_program
>      True GL_ARB_shader_objects
>      True GL_ARB_vertex_shader
>      True GL_ARB_texture_non_power_of_two
>      True GL_ARB_texture_float
>      False GL_STEREO
>     max vertices in vertex array: 1048576
> 0.2272     WARNING     Monitor specification not found. Creating a 
> temporary one...
>
>
> sample code
>
> ==========
>
> def stereo_mode():
>     
>     win = visual.Window([1920, 1080], monitor='DVI-I-1', screen=1, 
> units='pix',
>                         stereo=True)
>     squareL = visual.Rect(win, lineColor='red', size=[100, 100], pos=[100, 0])
>     squareR = visual.Rect(win, lineColor='blue', size=[100, 100], pos=[-100, 
> 0])
>
>     while not event.getKeys(keyList=['q']):
>         win.setBuffer('left', clear=True)
>         squareL.setFillColor('blue')
>         squareL.draw()
>         win.setBuffer('right', clear=True)
>         squareR.setFillColor('red')
>         squareR.draw()
>
>         win.flip()
>         if len(event.getKeys()) > 0:
>             break
>         event.clearEvents()
>         core.wait(.2)
>
>     win.close()
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to