What version of pyzmq do you have? If you are still using 2.0.9, then that's before we made this addition (early October).<div><br></div><div>I realize that since IPython depends on 2.6, I can just import the (super slow) builtin json module, rather than follow pyzmq's import preferences.<br>
<br></div><div>-MinRK</div><div><br><div class="gmail_quote">On Wed, Jan 26, 2011 at 16:00, Brian Granger <span dir="ltr"><<a href="mailto:ellisonbg@gmail.com">ellisonbg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Fernando,<br>
<br>
This is actually an import from pyzmq:<br>
<br>
In [4]: from zmq.utils import jsonapi as json<br>
<br>
In [5]: json.__file__<br>
Out[5]: '/Users/bgranger/Documents/Computation/zeromq/pyzmq/zmq/utils/jsonapi.pyc'<br>
<br>
So it looks like something is odd with your pyzmq install...unless for<br>
some reason Python is putting the IPython directory in you sys.path<br>
so importing zmq picks up IPython.zmq instead of zmq (pyzmq). Can you<br>
look at your pyzmq install?<br>
<br>
Brian<br>
<div><div></div><div class="h5"><br>
<br>
On Wed, Jan 26, 2011 at 3:31 PM, Fernando Perez <<a href="http://fperez.net" target="_blank">fperez.net</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>> wrote:<br>
> Hey guys,<br>
><br>
> as I was working on the 'asdf' bug I just posted about, I tried to use<br>
> the Qt console after updating my trunk, and got this:<br>
><br>
> (trunk)dreamweaver[ipython]> ipython-qtconsole<br>
> Traceback (most recent call last):<br>
> File "/home/fperez/usr/bin/ipython-qtconsole", line 4, in <module><br>
> from IPython.frontend.qt.console.ipythonqt import main<br>
> File "/home/fperez/ipython/ipython/IPython/frontend/qt/console/ipythonqt.py",<br>
> line 17, in <module><br>
> from IPython.frontend.qt.kernelmanager import QtKernelManager<br>
> File "/home/fperez/ipython/ipython/IPython/frontend/qt/kernelmanager.py",<br>
> line 9, in <module><br>
> from IPython.zmq.kernelmanager import KernelManager, SubSocketChannel, \<br>
> File "/home/fperez/ipython/ipython/IPython/zmq/kernelmanager.py",<br>
> line 36, in <module><br>
> from session import Session, Message<br>
> File "/home/fperez/ipython/ipython/IPython/zmq/session.py", line 7,<br>
> in <module><br>
> from zmq.utils import jsonapi as json<br>
> ImportError: No module named utils<br>
><br>
><br>
> Not sure when it broke, but I suspect the merge of the recent session<br>
> branch might have something to do with it.<br>
><br>
> Brian/Min, do you guys have an idea of what happened, maybe just a<br>
> file someone forgot to add from their local working tree?<br>
><br>
> Cheers,<br>
><br>
> f<br>
> _______________________________________________<br>
> IPython-dev mailing list<br>
> <a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
> <a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
><br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Brian E. Granger, Ph.D.<br>
Assistant Professor of Physics<br>
Cal Poly State University, San Luis Obispo<br>
<a href="mailto:bgranger@calpoly.edu">bgranger@calpoly.edu</a><br>
<a href="mailto:ellisonbg@gmail.com">ellisonbg@gmail.com</a><br>
</font><div><div></div><div class="h5">_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</div></div></blockquote></div><br></div>