<div dir="ltr">Thanks Matthew, I tested this out and it fixed the error. For posterity (and google's) sake, I created a fresh virtualenv and ran:<div><br></div><div>$ pip install requests==2.0.1</div><div>$ pip install websocket-client==0.12.0</div>
<div>$ pip install git+<a href="https://github.com/asterisk/ari-py.git">https://github.com/asterisk/ari-py.git</a></div><div><br></div><div>Then example.py ran fine.</div>























</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 9, 2014 at 11:19 PM, Matthew Jordan <span dir="ltr"><<a href="mailto:mjordan@digium.com" target="_blank">mjordan@digium.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Fri, Jun 6, 2014 at 9:33 PM, Thomas McMahon <<a href="mailto:thmcmahon@gmail.com">thmcmahon@gmail.com</a>> wrote:<br>

> Hi all<br>
><br>
> I'm excited to build a new web app using the ARI, however I'm having some<br>
> issues using the ari-py library with python.<br>
><br>
> I'm trying to get up and running with the ari-py library. The REST side of<br>
> things is working great, I can create channels, do stuff to those channels,<br>
> no problems.<br>
><br>
> However, I can't get any of the example code in the ari-py repository to run<br>
> because the websocket aspect doesn't work for me.<br>
><br>
> When I run a 'client.run(apps='hello')' (hello being the name of the app in<br>
> the dialplan, all I get back is 'No JSON object could be decoded'. Have you<br>
> seen this error before, is there something I'm doing wrong? To me it seems<br>
> like it's hanging because it's not receiving any messages, but my<br>
> understanding is that this is a function that waits until it has received a<br>
> message before it does anything.<br>
<br>
</div>Using requests 2.0.1 and websocket-client 0.12.0 with swaggerpy 0.2.0,<br>
I don't have that problem.<br>
<br>
However, when upgrading to requests 2.3.0 and websocket-client 0.15.0,<br>
I run into that same issue.<br>
<br>
Until someone can figure out what the heck changed, you may want to<br>
downgrade those two libraries to the versions mentioned above.<br>
<div class="HOEnZb"><div class="h5"><br>
> When I just use the python websocket-client library, I can connect to the<br>
> websocket of ari just fine. It just doesn't work with the library.<br>
><br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Matthew Jordan<br>
Digium, Inc. | Engineering Manager<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br>
Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> & <a href="http://asterisk.org" target="_blank">http://asterisk.org</a><br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</font></span></blockquote></div><br></div>