<br><br><div class="gmail_quote">On Thu, Oct 6, 2011 at 22:17, Albert Chin <span dir="ltr"><<a href="mailto:ipython-dev@mlists.thewrittenword.com">ipython-dev@mlists.thewrittenword.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I built ipython-0.11 on RHEL5/x86. Executing "ipython" works.<br>
Executing "ipython qtconsole" exhibits the following failure. Any idea<br>
on how to resolve it? I'm using nose-1.0.0, pygments-1.4,<br>
sphinx-1.0.8, zeromq-2.1.9, pyzmq-2.1.9, qt-4.4.3, sip-4.9.3, and<br>
PyQt-4.6.2.<br></blockquote><div><br></div><div>I believe the qtconsole requires PyQt-4.7 (released 01/2010). This is enforced in trunk, but not 0.11, resulting in opaque errors like this on old PyQt or PySide.</div><div>
<br></div><div>-MinRK</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
$ ipython qtconsole<br>
[IPKernelApp] To connect another client to this kernel, use:<br>
[IPKernelApp] --existing --shell=51973 --iopub=51966 --stdin=56682 --hb=36345<br>
---------------------------------------------------------------------------<br>
AttributeError Python 2.6.6: /usr/packages/python26/bin/python<br>
Fri Oct 7 05:06:53 2011<br>
A problem occured executing Python code. Here is the sequence of function<br>
calls leading up to the error, with the most recent (innermost) call last.<br>
/usr/packages/ipython011/lib/IPython/frontend/qt/console/frontend_widget.pyc in _document_contents_change(self=<IPython.frontend.qt.console.rich_ipython_widget.RichIPythonWidget object>, position=0, removed=1, added=0)<br>
602 """ Shows a prompt for the interpreter given an 'execute_reply' message.<br>
603 """<br>
604 self._show_interpreter_prompt()<br>
605<br>
606 #------ Signal handlers ----------------------------------------------------<br>
607<br>
608 def _document_contents_change(self, position, removed, added):<br>
609 """ Called whenever the document's content changes. Display a call tip<br>
610 if appropriate.<br>
611 """<br>
612 # Calculate where the cursor should be *after* the change:<br>
613 position += added<br>
614<br>
615 document = self._control.document()<br>
616 if position == self._get_cursor().position():<br>
--> 617 self._call_tip()<br>
<br>
/usr/packages/ipython011/lib/IPython/frontend/qt/console/frontend_widget.pyc in _call_tip(self=<IPython.frontend.qt.console.rich_ipython_widget.RichIPythonWidget object>)<br>
498<br>
499 else:<br>
500 self._append_plain_text('Kernel process is either remote or '<br>
501 'unspecified. Cannot restart.\n')<br>
502<br>
503 #---------------------------------------------------------------------------<br>
504 # 'FrontendWidget' protected interface<br>
505 #---------------------------------------------------------------------------<br>
506<br>
507 def _call_tip(self):<br>
508 """ Shows a call tip, if appropriate, at the current cursor location.<br>
509 """<br>
510 # Decide if it makes sense to show a call tip<br>
511 cursor = self._get_cursor()<br>
512 cursor.movePosition(QtGui.QTextCursor.Left)<br>
--> 513 if cursor.document().characterAt(cursor.position()) != '(':<br>
514 return False<br>
515 context = self._get_context(cursor)<br>
516 if not context:<br>
517 return False<br>
518<br>
519 # Send the metadata request to the kernel<br>
520 name = '.'.join(context)<br>
521 msg_id = self.kernel_manager.shell_channel.object_info(name)<br>
522 pos = self._get_cursor().position()<br>
523 self._request_info['call_tip'] = self._CallTipRequest(msg_id, pos)<br>
524 return True<br>
525<br>
526 def _complete(self):<br>
527 """ Performs completion at the current cursor location.<br>
528 """<br>
<br>
AttributeError: 'QTextCursor' object has no attribute 'document'<br>
<font color="#888888"><br>
--<br>
albert chin (<a href="mailto:china@thewrittenword.com">china@thewrittenword.com</a>)<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>
</font></blockquote></div><br>