The line
File "D:\Python35\lib\site-packages\pyglet\gl\__init__.py", line 205, in
_crea
te_shadow_window
_shadow_window = Window(width=1, height=1, visible=False)
tells that pyglet has trouble while creating a shadow window.
This was a bug in pyglet some time ago, but it was fixed, at least in some
cases.
Which pyglet version are you using ?
As a workaround you can try setting an envar that disables the shadow
window, as
Your last run was done by typing
py -3.6 test_sprite.py
and then the 'enter' key.
Now try with
set
*shadow_window'=0 *
*'enter'*
* py -3.6 test_sprite.py*
'enter'
What happens now ?
On Sun, Aug 13, 2017 at 10:17 PM, Dragonfly king <[email protected]>
wrote:
> Thanks U
>>
> I just did as you said,but it still happend,
> here is the full trace back:
>
>
>
>
> Traceback (most recent call last):
> File "test_sprite.py", line 12, in <module>
> import cocos
> File "..\cocos\__init__.py", line 107, in <module>
> from cocos import cocosnode
> File "..\cocos\cocosnode.py", line 51, in <module>
> from cocos.director import director
> File "..\cocos\director.py", line 134, in <module>
> import cocos.fps
> File "..\cocos\fps.py", line 57, in <module>
> import pyglet.font
> File "D:\Python35\lib\site-packages\pyglet\font\__init__.py", line 79,
> in <mod
> ule>
> from pyglet.gl import *
> File "D:\Python35\lib\site-packages\pyglet\gl\__init__.py", line 236,
> in <modu
> le>
> import pyglet.window
> File "D:\Python35\lib\site-packages\pyglet\window\__init__.py", line
> 1816, in
> <module>
> gl._create_shadow_window()
> File "D:\Python35\lib\site-packages\pyglet\gl\__init__.py", line 205,
> in _crea
> te_shadow_window
> _shadow_window = Window(width=1, height=1, visible=False)
> File "D:\Python35\lib\site-packages\pyglet\window\win32\__init__.py",
> line 131
> , in __init__
> super(Win32Window, self).__init__(*args, **kwargs)
> File "D:\Python35\lib\site-packages\pyglet\window\__init__.py", line
> 558, in _
> _init__
> self._create()
> File "D:\Python35\lib\site-packages\pyglet\window\win32\__init__.py",
> line 263
> , in _create
> self.context.attach(self.canvas)
> File "D:\Python35\lib\site-packages\pyglet\gl\win32.py", line 203, in
> attach
> self._context = wgl.wglCreateContext(canvas.hdc)
> OSError: exception: access violation reading 0x0000000000000000
>
>
>
> the same error as before....
>
>>
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "cocos2d discuss" 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/cocos-discuss.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"cocos2d discuss" 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/cocos-discuss.
For more options, visit https://groups.google.com/d/optout.