# ImportError: cannot import name 'CLOSED' from 'websockets.connection'

**URL:** <https://community.okteto.com/t/importerror-cannot-import-name-closed-from-websockets-connection/770>\
**Category:** Not sure?\
**Created:** [April 9, 2023, 1:24pm UTC](https://community.okteto.com/t/importerror-cannot-import-name-closed-from-websockets-connection/770 "2023-04-09T13:24:23Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![urbanusm](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/urbanusm/32/345_2.png) [@urbanusm](https://community.okteto.com/u/urbanusm)\
**Post date:** [April 11, 2023, 5:19am UTC](https://community.okteto.com/t/importerror-cannot-import-name-closed-from-websockets-connection/770/5 "2023-04-11T05:19:35Z")

</div>

Hi @AgustinRamiroDiaz ,

Thanks for responding! I checked out the StackOverflow post you mentioned and attempted to resolve the issue by downgrading my websockets version to 10.0, but unfortunately, even after adding `ADD pip install websockets==10.0` to my Dockerfile, I still encountered the same error. I’m currently stuck and hoping to find a solution soon. Thank you.

---

_[View the full topic](https://community.okteto.com/t/importerror-cannot-import-name-closed-from-websockets-connection/770)._
