Problem creating visual.Window() in Spyder (python 3.6) psychopy 1.90.1 pyglet>1.3.0b1

I have the some problem.
Python 3.6.1, Psychopy 1.90.1, pyglet 1.3.1

If I downgrade pyglet to 1.3.0, it works fine. Hopefully psychopy experts can fix it soon.