Not sure if this is a bug report for PsychoPy - more of an FYI on what I’ve found:
I’m having a problem simply creating a Window from inside Spyder. After a little digging, I found that the problem is with pyglet versions > 1.3.0b1. Here’s what I get
Python 3.6.4 |Anaconda custom (64-bit)| (default, Jan 16 2018, 10:22:32) [MSC v.1900 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.
IPython 6.1.0 -- An enhanced Interactive Python.
from psychopy import visual
win=visual.Window()
Traceback (most recent call last):
File "<ipython-input-2-24b96ad64581>", line 1, in <module>
win=visual.Window()
File "C:\Users\timothy.j.williams1\Anaconda3\lib\site-packages\psychopy\visual\window.py", line 375, in __init__
self.backend = backends.getBackend(win=self, *args, **kwargs)
File "C:\Users\timothy.j.williams1\Anaconda3\lib\site-packages\psychopy\visual\backends\__init__.py", line 32, in getBackend
return Backend(win, *args, **kwargs)
File "C:\Users\timothy.j.williams1\Anaconda3\lib\site-packages\psychopy\visual\backends\pygletbackend.py", line 102, in __init__
allScrs = defDisp.get_screens()
File "C:\Users\timothy.j.williams1\Anaconda3\lib\site-packages\pyglet\canvas\base.py", line 65, in get_screens
raise NotImplementedError('abstract')
NotImplementedError: abstract
I was getting ready to post this before looking into pyglet, then I tried it from a PowerShell terminal (cmd terminals are disabled), and it worked fine. Everything is also fine with my python 2.7 environment (psychopy version 1.85.3, pyglet 1.2.4). I haven’t tried different pyglet versions there.