[IPython-dev] 0.11 on RHEL5/x86

MinRK benjaminrk@gmail....
Fri Oct 7 00:30:33 CDT 2011


On Thu, Oct 6, 2011 at 22:17, Albert Chin <
ipython-dev@mlists.thewrittenword.com> wrote:

> I built ipython-0.11 on RHEL5/x86. Executing "ipython" works.
> Executing "ipython qtconsole" exhibits the following failure. Any idea
> on how to resolve it? I'm using nose-1.0.0, pygments-1.4,
> sphinx-1.0.8, zeromq-2.1.9, pyzmq-2.1.9, qt-4.4.3, sip-4.9.3, and
> PyQt-4.6.2.
>

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.

-MinRK


>
> $ ipython qtconsole
> [IPKernelApp] To connect another client to this kernel, use:
> [IPKernelApp] --existing --shell=51973 --iopub=51966 --stdin=56682
> --hb=36345
> ---------------------------------------------------------------------------
> AttributeError         Python 2.6.6: /usr/packages/python26/bin/python
>                                                   Fri Oct  7 05:06:53 2011
> A problem occured executing Python code.  Here is the sequence of function
> calls leading up to the error, with the most recent (innermost) call last.
> /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)
>    602         """ Shows a prompt for the interpreter given an
> 'execute_reply' message.
>    603         """
>    604         self._show_interpreter_prompt()
>    605
>    606     #------ Signal handlers
> ----------------------------------------------------
>    607
>    608     def _document_contents_change(self, position, removed, added):
>    609         """ Called whenever the document's content changes. Display
> a call tip
>    610             if appropriate.
>    611         """
>    612         # Calculate where the cursor should be *after* the change:
>    613         position += added
>    614
>    615         document = self._control.document()
>    616         if position == self._get_cursor().position():
> --> 617             self._call_tip()
>
> /usr/packages/ipython011/lib/IPython/frontend/qt/console/frontend_widget.pyc
> in
> _call_tip(self=<IPython.frontend.qt.console.rich_ipython_widget.RichIPythonWidget
> object>)
>    498
>    499         else:
>    500             self._append_plain_text('Kernel process is either remote
> or '
>    501                                     'unspecified. Cannot
> restart.\n')
>    502
>    503
> #---------------------------------------------------------------------------
>    504     # 'FrontendWidget' protected interface
>    505
> #---------------------------------------------------------------------------
>    506
>    507     def _call_tip(self):
>    508         """ Shows a call tip, if appropriate, at the current cursor
> location.
>    509         """
>    510         # Decide if it makes sense to show a call tip
>    511         cursor = self._get_cursor()
>    512         cursor.movePosition(QtGui.QTextCursor.Left)
> --> 513         if cursor.document().characterAt(cursor.position()) != '(':
>    514             return False
>    515         context = self._get_context(cursor)
>    516         if not context:
>    517             return False
>    518
>    519         # Send the metadata request to the kernel
>    520         name = '.'.join(context)
>    521         msg_id = self.kernel_manager.shell_channel.object_info(name)
>    522         pos = self._get_cursor().position()
>    523         self._request_info['call_tip'] =
> self._CallTipRequest(msg_id, pos)
>    524         return True
>    525
>    526     def _complete(self):
>    527         """ Performs completion at the current cursor location.
>    528         """
>
> AttributeError: 'QTextCursor' object has no attribute 'document'
>
> --
> albert chin (china@thewrittenword.com)
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20111006/2d5ed5fb/attachment.html 


More information about the IPython-dev mailing list