Python Websockets Module has no attribute : <p>I have this python file that sends a websocket message to my python-server. But it keeps getting errors, I have seen these errors before, but I cant seem to fix them my python version is python2.7</p>

<pre><code>#!/usr/bin/python
import websocket
import sys
val = sys.argv[1]
ws = websocket.create_connection("ws://ipaddress:9001")
ws.send(val)
ws.close()
</code></pre>

<p>The Error</p>

<pre><code>Traceback (most recent call last):
  File "./test.py", line 5, in &lt;module&gt;
    ws = websocket.create_connection("ws://ipaddress:9001")
AttributeError: 'module' object has no attribute 'create_connection'
</code></pre>
