# ERROR module 'pyglet.window' has no attribute 'get\_platform' \[FIXED -- SOLUTION BELOW\]

**URL:** <https://discourse.psychopy.org/t/error-module-pyglet-window-has-no-attribute-get-platform-fixed-solution-below/8897>\
**Category:** Coding\
**Created:** [August 28, 2019, 4:00pm UTC](https://discourse.psychopy.org/t/error-module-pyglet-window-has-no-attribute-get-platform-fixed-solution-below/8897 "2019-08-28T16:00:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kathia](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/kathia/32/8794_2.png) [@Kathia](https://discourse.psychopy.org/u/Kathia)\
**Post date:** [August 28, 2019, 4:00pm UTC](https://discourse.psychopy.org/t/error-module-pyglet-window-has-no-attribute-get-platform-fixed-solution-below/8897/1 "2019-08-28T16:00:20Z")

</div>

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
