psychopy.org | Reference | Downloads | Github

ERROR module 'pyglet.window' has no attribute 'get_platform' [FIXED -- SOLUTION BELOW]

I am new to PsychoPy, and while following the tutorial on how to open a window

mywin = visual.Window([800,600], monitor=“testMonitor”, units=“deg”)

I got the following error:

AttributeError: module ‘pyglet.window’ has no attribute 'get_platform’

My operating system is Ubuntu 18.04.3 LTS, and the kernel version 4.15.0-58-generic. I am using Python 3.6.4 and I have just installed PsychoPy using the command “pip install PsychoPy”.

I have found in a similar post the solution of downgrading pyglet 1.3.2 which I did with the command: pip install pyglet==1.3.2 and I got a new Error:

NotImplementedError: abstract

UPDATE : I fixed the problem by downgrading pyglet to version 1.3.0b1

1 Like