title: How to solve the error ImportError: cannot import name 'AsyncWebsocketConsumer'?
body: <p>I am using Python 3.6 ,Django 1.11 and chennels=2.
  I am following this tutorial and it works fine till tutorial part 2: <a href="http://channels.readthedocs.io/en/stable/tutorial/part_2.html" rel="nofollow noreferrer">http://channels.readthedocs.io/en/stable/tutorial/part_2.html</a></p>
  
  <p>When i moved to tutorial part 3 and changed ChatConsumer file accordingly: <a href="http://channels.readthedocs.io/en/stable/tutorial/part_3.html" rel="nofollow noreferrer">http://channels.readthedocs.io/en/stable/tutorial/part_3.html</a></p>
  
  <p>I am facing this issue </p>
  
  <blockquote>
    <p>ImportError: cannot import name 'AsyncWebsocketConsumer'</p>
  </blockquote>
  
  <p>Consumer.py:</p>
  
  <pre><code>from channels.generic.websocket import AsyncWebsocketConsumer
  import json
  
  class ChatConsumer(AsyncWebsocketConsumer):
      async def connect(self):
          self.room_name = self.scope['url_route']['kwargs']['room_name']
          self.room_group_name = 'chat_%s' % self.room_name
  
          # Join room group
          await self.channel_layer.group_add(
              self.room_group_name,
              self.channel_name
          )
  
          await self.accept()
  
      async def disconnect(self, close_code):
          # Leave room group
          await self.channel_layer.group_discard(
              self.room_group_name,
              self.channel_name
          )
  
      # Receive message from WebSocket
      async def receive(self, text_data):
          text_data_json = json.loads(text_data)
          message = text_data_json['message']
  
          # Send message to room group
          await self.channel_layer.group_send(
              self.room_group_name,
              {
                  'type': 'chat_message',
                  'message': message
              }
          )
  
      # Receive message from room group
      async def chat_message(self, event):
          message = event['message']
  
          # Send message to WebSocket
          await self.send(text_data=json.dumps({
              'message': message
          }))
  </code></pre>
  
  <p>Error:
  <a href="https://i.stack.imgur.com/ATtKg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ATtKg.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/JYqGU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JYqGU.png" alt="enter image description here"></a>
  Any kind of will be appreciated! </p>