> Traceback (most recent call last):


 "test.py", line 6, in <module>

from pyglet.window import Window


 "/usr/local/lib/python3.7/site-packages/pyglet/window/__init__.py", line 648, in __init__

self._create()


 "/usr/local/lib/python3.7/site-packages/pyglet/window/cocoa/__init__.py", line 197, in _create

self.context.attach(self.canvas)


 "/usr/local/lib/python3.7/site-packages/pyglet/gl/cocoa.py", line 300, in attach

self._nscontext.setView_(canvas.nsview)
AttributeError: 'NoneType' object has no attribute 'setView_'

Traceback (most recent call last):


 "/usr/local/lib/python3.8/logging/handlers.py", line 631, in emit

s = self.makePickle(record)


 "/usr/local/lib/python3.8/logging/handlers.py", line 603, in makePickle

s = pickle.dumps(d, 1)
AttributeError: Can't pickle local object 'FastAPI.setup.<locals>.openapi'
