title: Python Websockets Module has no attribute
body: <p>I have this python script that sends a WebSocket message to my python server. But it keeps throwing errors. I have seen these errors before, but I can't seem to fix it. I use the <code>2.7.x</code> version.</p>
  <pre><code>#!/usr/bin/python
  import websocket
  import sys
  val = sys.argv[1]
  ws = websocket.create_connection(&quot;ws://ipaddress:9001&quot;)
  ws.send(val)
  ws.close()
  </code></pre>
  <p>The Error</p>
  <pre><code>Traceback (most recent call last):
    File &quot;./test.py&quot;, line 5, in &lt;module&gt;
      ws = websocket.create_connection(&quot;ws://ipaddress:9001&quot;)
  AttributeError: 'module' object has no attribute 'create_connection'
  </code></pre>