[IPython-dev] ipython-zmq messages help

Omar Andrés Zapata Mesa andresete.chaos at gmail.com
Fri Jun 4 11:55:30 EDT 2010


Thanks Biran!!!
whithout reciv_json  and with recv SUB/PUB is working very fine

Thanks again!

El 4 de junio de 2010 09:44, Brian Granger <ellisonbg at gmail.com> escribió:

> Can you print the message you are receiving by calling recv instead of
> recv_json?  If there is a topic, you may be trying to decode the
> topic, which won't work.  But let's see what the message is first.
>
> Brian
>
> 2010/6/4 Omar Andrés Zapata Mesa <andresete.chaos at gmail.com>:
> > hi all.
> > what is a valid python json message?
> > I am sending string that content dictionaries and in  REQ/REP sockets it
> > dont show me error, but in SUB/PUB it show me
> > msg=self._subscribe_socket.recv_json()
> >   File "_zmq.pyx", line 918, in zmq._zmq.Socket.recv_json
> (zmq/_zmq.c:6989)
> >   File "/usr/lib/python2.6/json/__init__.py", line 307, in loads
> >     return _default_decoder.decode(s)
> >   File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
> >     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
> >   File "/usr/lib/python2.6/json/decoder.py", line 336, in raw_decode
> >     obj, end = self._scanner.iterscan(s, **kw).next()
> >   File "/usr/lib/python2.6/json/scanner.py", line 55, in iterscan
> >     rval, next_pos = action(m, context)
> >   File "/usr/lib/python2.6/json/decoder.py", line 171, in JSONObject
> >     raise ValueError(errmsg("Expecting property name", s, end))
> > ValueError: Expecting property name: line 1 column 1 (char 1)
> > some idea?
> > O.
> > _______________________________________________
> > IPython-dev mailing list
> > IPython-dev at scipy.org
> > http://mail.scipy.org/mailman/listinfo/ipython-dev
> >
> >
>
>
>
> --
> Brian E. Granger, Ph.D.
> Assistant Professor of Physics
> Cal Poly State University, San Luis Obispo
> bgranger at calpoly.edu
> ellisonbg at gmail.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20100604/f29b75a6/attachment.html>


More information about the IPython-dev mailing list