# Cannot import create\_connection form websocket Rasa Core Agent

**URL:** <https://forum.rasa.com/t/cannot-import-create-connection-form-websocket-rasa-core-agent/20523>\
**Category:** Rasa Open Source\
**Created:** [October 27, 2019, 11:11pm UTC](https://forum.rasa.com/t/cannot-import-create-connection-form-websocket-rasa-core-agent/20523 "2019-10-27T23:11:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![digitaShadow](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/digitashadow/32/5686_2.png) [@digitaShadow](https://forum.rasa.com/u/digitaShadow)\
**Post date:** [October 27, 2019, 11:11pm UTC](https://forum.rasa.com/t/cannot-import-create-connection-form-websocket-rasa-core-agent/20523/1 "2019-10-27T23:11:08Z")

</div>

Hi

I’m getting this error again and again and I can’t figure out if its the version of Rasa Core or any other problem. Please let me know if anyone has a solution.

Error:

Traceback (most recent call last): File “C:/Users/qasim/PycharmProjects/healthbot/run.py”, line 1, in from rasa\_core.agent import Agent File “C:\Users\qasim\Anaconda3\lib\site-packages\rasa\_core\agent.py”, line 24, in from rasa\_core.channels import UserMessage, OutputChannel, InputChannel File “C:\Users\qasim\Anaconda3\lib\site-packages\rasa\_core\channels\ __init_\_.py”, line 27, in from rasa\_core.channels.slack import SlackInput # nopep8 File “C:\Users\qasim\Anaconda3\lib\site-packages\rasa\_core\channels\slack.py”, line 11, in from slackclient import SlackClient File “C:\Users\qasim\Anaconda3\lib\site-packages\slackclient\__ init_\_.py”, line 1, in from .client import SlackClient # noqa File “C:\Users\qasim\Anaconda3\lib\site-packages\slackclient\client.py”, line 7, in from .server import Server File “C:\Users\qasim\Anaconda3\lib\site-packages\slackclient\server.py”, line 14, in from websocket import create\_connection ImportError: cannot import name ‘create\_connection’

Rasa Core Version: 0.11.0 Rasa-Core-SDK Version: 0.12.2 Rasa-NLU Version: 0.13.0

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [October 30, 2019, 4:40pm UTC](https://forum.rasa.com/t/cannot-import-create-connection-form-websocket-rasa-core-agent/20523/2 "2019-10-30T16:40:29Z")

</div>

Hi there @digitaShadow, the biggest possibility is that it’s probably importing either the wrong version of slackclient, or a version that is unsupported on e.g. the python version you are using. However, it’s hard to say because the versions you are using are very old – a lot has changed and also been fixed since those versions (I have been working at Rasa for almost a year and haven’t worked with core 0.11.0 for example 😃) I would recommend migrating your bot to the newer rasa versions in order to be able to get proper support for bugs from not only Rasas but also the community members.

---

<div class="post-metadata">

**Author:** ![digitaShadow](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/digitashadow/32/5686_2.png) [@digitaShadow](https://forum.rasa.com/u/digitaShadow)\
**Post date:** [November 7, 2019, 8:08pm UTC](https://forum.rasa.com/t/cannot-import-create-connection-form-websocket-rasa-core-agent/20523/3 "2019-11-07T20:08:10Z")

</div>

I’m using Python 3.5 but I also think that I should upgrade it to Rasa X.

Thanks for your response.

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [November 11, 2019, 1:26pm UTC](https://forum.rasa.com/t/cannot-import-create-connection-form-websocket-rasa-core-agent/20523/4 "2019-11-11T13:26:18Z")

</div>

Agreed, you should update 😄just know that the newer versions of rasa run on python 3.6 or later, so you will probably need to create a new virtual environment with a higher version of python.
