[IPython-dev] 0.11 on RHEL5/x86
Albert Chin
ipython-dev at mlists.thewrittenword.com
Fri Oct 7 03:22:51 EDT 2011
On Thu, Oct 06, 2011 at 11:21:40PM -0700, MinRK wrote:
> On Thu, Oct 6, 2011 at 23:09, Albert Chin
> <ipython-dev at mlists.thewrittenword.com> wrote:
>
> On Thu, Oct 06, 2011 at 10:30:33PM -0700, MinRK wrote:
> > A A On Thu, Oct 6, 2011 at 22:17, Albert Chin
> > A A <ipython-dev at mlists.thewrittenword.com> wrote:
> >
> > A A A I built ipython-0.11 on RHEL5/x86. Executing "ipython" works.
> > A A A Executing "ipython qtconsole" exhibits the following failure.
> Any idea
> > A A A on how to resolve it? I'm using nose-1.0.0, pygments-1.4,
> > A A A sphinx-1.0.8, zeromq-2.1.9, pyzmq-2.1.9, qt-4.4.3, sip-4.9.3,
> and
> > A A A PyQt-4.6.2.
> >
> > A A I believe the qtconsole requires PyQt-4.7 (released 01/2010).
> This is
> > A A enforced in trunk, but not 0.11, resulting in opaque errors like
> this on
> > A A old PyQt or PySide.
>
> I just upgraded from sip-4.9.3 to sip-4.12.4 and from PyQt-4.6.2 to
> PyQt-4.8.5 and get the same error.
>
> Did you upgrade Qt itself? A Maybe we depend on a relatively recent Qt as
> well.
No. We just upgraded PyQt and sip. We're still running against
qt-4.4.3. Upgrading Qt is a bit more work. Do we need qt-4.7.x for
qtconsole?
> A
>
> > A A -MinRK
> > A A A
> >
> > A A A $ ipython qtconsole
> > A A A [IPKernelApp] To connect another client to this kernel, use:
> > A A A [IPKernelApp] --existing --shell=51973 --iopub=51966
> --stdin=56682
> > A A A --hb=36345
> > A A
> A ---------------------------------------------------------------------------
> > A A A AttributeError A A A A A A A A Python 2.6.6:
> > A A A /usr/packages/python26/bin/python
> > A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A
> A A A A A A A A A A A A A A A A
> > A A A A A Fri Oct A 7 05:06:53 2011
> > A A A A problem occured executing Python code. A Here is the
> sequence of
> > A A A function
> > A A A calls leading up to the error, with the most recent
> (innermost) call
> > A A A last.
> > A A
> A /usr/packages/ipython011/lib/IPython/frontend/qt/console/frontend_widget.pyc
> > A A A in
> > A A
> A _document_contents_change(self=<IPython.frontend.qt.console.rich_ipython_widget.RichIPythonWidget
> > A A A object>, position=0, removed=1, added=0)
> > A A A A A A 602 A A A A A A A A """ Shows a prompt for the
> interpreter given an
> > A A A 'execute_reply' message.
> > A A A A A A 603 A A A A A A A A """
> > A A A A A A 604 A A A A A A A A self._show_interpreter_prompt()
> > A A A A A A 605
> > A A A A A A 606 A A A A #------ Signal handlers
> > A A A ----------------------------------------------------
> > A A A A A A 607
> > A A A A A A 608 A A A A def _document_contents_change(self,
> position, removed,
> > A A A added):
> > A A A A A A 609 A A A A A A A A """ Called whenever the document's
> content changes.
> > A A A Display a call tip
> > A A A A A A 610 A A A A A A A A A A A A if appropriate.
> > A A A A A A 611 A A A A A A A A """
> > A A A A A A 612 A A A A A A A A # Calculate where the cursor should
> be *after* the
> > A A A change:
> > A A A A A A 613 A A A A A A A A position += added
> > A A A A A A 614
> > A A A A A A 615 A A A A A A A A document = self._control.document()
> > A A A A A A 616 A A A A A A A A if position ==
> self._get_cursor().position():
> > A A A --> 617 A A A A A A A A A A A A self._call_tip()
> >
> > A A
> A /usr/packages/ipython011/lib/IPython/frontend/qt/console/frontend_widget.pyc
> > A A A in
> > A A
> A _call_tip(self=<IPython.frontend.qt.console.rich_ipython_widget.RichIPythonWidget
> > A A A object>)
> > A A A A A A 498
> > A A A A A A 499 A A A A A A A A else:
> > A A A A A A 500 A A A A A A A A A A A
> A self._append_plain_text('Kernel process is
> > A A A either remote or '
> > A A A A A A 501 A A A A A A A A A A A A A A A A A A A A A A A A A
> A A A A A A A A A A
> > A A A 'unspecified. Cannot restart.\n')
> > A A A A A A 502
> > A A A A A A 503 A A A
> > A A
> A #---------------------------------------------------------------------------
> > A A A A A A 504 A A A A # 'FrontendWidget' protected interface
> > A A A A A A 505 A A A
> > A A
> A #---------------------------------------------------------------------------
> > A A A A A A 506
> > A A A A A A 507 A A A A def _call_tip(self):
> > A A A A A A 508 A A A A A A A A """ Shows a call tip, if
> appropriate, at the
> > A A A current cursor location.
> > A A A A A A 509 A A A A A A A A """
> > A A A A A A 510 A A A A A A A A # Decide if it makes sense to show a
> call tip
> > A A A A A A 511 A A A A A A A A cursor = self._get_cursor()
> > A A A A A A 512 A A A A A A A
> A cursor.movePosition(QtGui.QTextCursor.Left)
> > A A A --> 513 A A A A A A A A if
> cursor.document().characterAt(cursor.position())
> > A A A != '(':
> > A A A A A A 514 A A A A A A A A A A A A return False
> > A A A A A A 515 A A A A A A A A context = self._get_context(cursor)
> > A A A A A A 516 A A A A A A A A if not context:
> > A A A A A A 517 A A A A A A A A A A A A return False
> > A A A A A A 518
> > A A A A A A 519 A A A A A A A A # Send the metadata request to the
> kernel
> > A A A A A A 520 A A A A A A A A name = '.'.join(context)
> > A A A A A A 521 A A A A A A A A msg_id =
> > A A A self.kernel_manager.shell_channel.object_info(name)
> > A A A A A A 522 A A A A A A A A pos = self._get_cursor().position()
> > A A A A A A 523 A A A A A A A A self._request_info['call_tip'] =
> > A A A self._CallTipRequest(msg_id, pos)
> > A A A A A A 524 A A A A A A A A return True
> > A A A A A A 525
> > A A A A A A 526 A A A A def _complete(self):
> > A A A A A A 527 A A A A A A A A """ Performs completion at the
> current cursor
> > A A A location.
> > A A A A A A 528 A A A A A A A A """
> >
> > A A A AttributeError: 'QTextCursor' object has no attribute
> 'document'
> > A A A --
> > A A A albert chin (china at thewrittenword.com)
> > A A A _______________________________________________
> > A A A IPython-dev mailing list
> > A A A IPython-dev at scipy.org
> > A A A http://mail.scipy.org/mailman/listinfo/ipython-dev
>
> > _______________________________________________
> > IPython-dev mailing list
> > IPython-dev at scipy.org
> > http://mail.scipy.org/mailman/listinfo/ipython-dev
>
> --
> albert chin (china at thewrittenword.com)
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
--
albert chin (china at thewrittenword.com)
More information about the IPython-dev
mailing list