# visual.Window() error

**URL:** <https://discourse.psychopy.org/t/visual-window-error/8578>\
**Category:** Coding\
**Tags:** screen\
**Created:** [July 19, 2019, 1:41pm UTC](https://discourse.psychopy.org/t/visual-window-error/8578 "2019-07-19T13:41:04Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![WillHinkle](https://avatars.discourse-cdn.com/v4/letter/w/e480ec/32.png) [@WillHinkle](https://discourse.psychopy.org/u/WillHinkle)\
**Post date:** [July 31, 2019, 6:15pm UTC](https://discourse.psychopy.org/t/visual-window-error/8578/10 "2019-07-31T18:15:54Z")

</div>

I found this post and it seems like it is the same problem you are having. Hopefully this helps.

> [@Bugfixes for "Unable to share contexts" and "Portaudio not initialized"](https://discourse.psychopy.org/t/bugfixes-for-unable-to-share-contexts-and-portaudio-not-initialized/3537/3):
>
> I ran into this issue with PsychoPy 1.85.6 on some older Win XP laptops, so unfortunately those code changes, which are already included in 1.85.6 (via [this](https://github.com/psychopy/psychopy/commit/a1c29d3a) commit), don’t seem to work. It turns out, that even setting pyglet.options['shadow\_window']=False at the very beginning of the try block does not prevent the “pyglet.gl.ContextException: Unable to share contexts” error. Furthermore, it even looks like that try block is never actually executed, because if you put logging.warning("Beginning …

---

_[View the full topic](https://discourse.psychopy.org/t/visual-window-error/8578)._
