Seems like an invalid JSON string is being returned.  See what you get
when you print sock.recv(4096).

Regards
KK

On 20 September 2011 21:13, Aaron Rosen <aro...@clemson.edu> wrote:
> Thanks kk,
> Quick question, I'm getting the following error with getlinks any idea?
>  getnodes works fine though.
> arosen@laptop ~/devel/nox/src/scripts $ python nox-console.py  -n awesome -p
> 11222  getlinks
> Traceback (most recent call last):
>   File "nox-console.py", line 104, in <module>
>     print simplejson.dumps(simplejson.loads(sock.recv(4096)), indent=4)
>   File "/usr/lib64/python2.7/site-packages/simplejson/__init__.py", line
> 385, in loads
>     return _default_decoder.decode(s)
>   File "/usr/lib64/python2.7/site-packages/simplejson/decoder.py", line 402,
> in decode
>     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
>   File "/usr/lib64/python2.7/site-packages/simplejson/decoder.py", line 418,
> in raw_decode
>     obj, end = self.scan_once(s, idx)
> ValueError: end is out of bounds
>
>
>
> On Wed, Sep 21, 2011 at 12:00 AM, kk yap <yap...@stanford.edu> wrote:
>>
>> Hi Aaron,
>>
>> LAVI in the zaku branch uses a new JSON format and a different port.
>> nox-gui.py in the destiny branch is another example.  More is said
>> here:
>>
>> http://www.openflow.org/wk/index.php/LAVI
>>
>> Regards
>> KK
>>
>> On 20 September 2011 15:09, Aaron Rosen <aro...@clemson.edu> wrote:
>> > Hello,
>> > I was thinking about writing a front end that could integrate with Lavi
>> > (the
>> > way envi does). Right now I'm just playing around with them. Anyone know
>> > how
>> > to run lavi and connect envi? I tired doing ./nox_core -i ptcp:6633 lavi
>> > but envi keeps telling me that it cannot connect.
>> > If i do ./nox_core  -i ptcp:6633  jsonmessenger=tcpport=2503 lavi
>> > I get a json syntax error from nox.
>> > Thanks,
>> > Aaron
>> >
>> > --
>> > Aaron O. Rosen
>> > Masters Student - Network Communication
>> > 306B Fluor Daniel
>> >
>> >
>> >
>> > _______________________________________________
>> > nox-dev mailing list
>> > nox-dev@noxrepo.org
>> > http://noxrepo.org/mailman/listinfo/nox-dev
>> >
>> >
>
>
>
> --
> Aaron O. Rosen
> Masters Student - Network Communication
> 306B Fluor Daniel
>
>
>
_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev

Reply via email to