Change the Pyglet version to 1.2.4 to solve it.

pip install pyglet==1.24

在 2019年4月16日星期二 UTC+8下午4:09:25,6258...@qq.com写道:
>
> /usr/local/bin/python3.6 
> /Volumes/Work/PycharmWorkspace/Warships_emotion/test.py
> 2019-04-16 16:01:11.703 Python[9915:563026] ApplePersistenceIgnoreState: 
> Existing state will not be touched. New state will be written to (null)
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pyglet/libs/darwin/cocoapy/runtime.py",
>  
> line 755, in __call__
>     result = f(objc_id, self.selector, *args)
> ctypes.ArgumentError: argument 1: <class 'RecursionError'>: maximum 
> recursion depth exceeded in __instancecheck__
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File "_ctypes/callbacks.c", line 234, in 'calling callback function'
>   File 
> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pyglet/libs/darwin/cocoapy/runtime.py",
>  
> line 1121, in objc_method
>     result = f(py_self, *args)
>   File 
> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pyglet/window/cocoa/pyglet_window.py",
>  
> line 25, in nextEventMatchingMask_untilDate_inMode_dequeue_
>     if self.inLiveResize():
>   File 
> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pyglet/libs/darwin/cocoapy/runtime.py",
>  
> line 785, in __call__
>     return self.method(self.objc_id, *args)
>   File 
> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pyglet/libs/darwin/cocoapy/runtime.py",
>  
> line 764, in __call__
>     error.args += ('selector = ' + self.name,
> TypeError: must be str, not bytes
>
> Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
>
>
>

-- 
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 pyglet-users+unsubscr...@googlegroups.com.
To post to this group, send email to pyglet-users@googlegroups.com.
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