[IPython-dev] 0.11 on RHEL5/x86

Albert Chin ipython-dev@mlists.thewrittenword....
Fri Oct 7 01:09:42 CDT 2011


On Thu, Oct 06, 2011 at 10:30:33PM -0700, MinRK wrote:
>    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.

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.

>    -MinRK
>    A 
> 
>      $ ipython qtconsole
>      [IPKernelApp] To connect another client to this kernel, use:
>      [IPKernelApp] --existing --shell=51973 --iopub=51966 --stdin=56682
>      --hb=36345
>      ---------------------------------------------------------------------------
>      AttributeError A  A  A  A  Python 2.6.6:
>      /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  Fri Oct A 7 05:06:53 2011
>      A problem occured executing Python code. A 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)
>      A  A 602 A  A  A  A  """ Shows a prompt for the interpreter given an
>      'execute_reply' message.
>      A  A 603 A  A  A  A  """
>      A  A 604 A  A  A  A  self._show_interpreter_prompt()
>      A  A 605
>      A  A 606 A  A  #------ Signal handlers
>      ----------------------------------------------------
>      A  A 607
>      A  A 608 A  A  def _document_contents_change(self, position, removed,
>      added):
>      A  A 609 A  A  A  A  """ Called whenever the document's content changes.
>      Display a call tip
>      A  A 610 A  A  A  A  A  A  if appropriate.
>      A  A 611 A  A  A  A  """
>      A  A 612 A  A  A  A  # Calculate where the cursor should be *after* the
>      change:
>      A  A 613 A  A  A  A  position += added
>      A  A 614
>      A  A 615 A  A  A  A  document = self._control.document()
>      A  A 616 A  A  A  A  if position == self._get_cursor().position():
>      --> 617 A  A  A  A  A  A  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>)
>      A  A 498
>      A  A 499 A  A  A  A  else:
>      A  A 500 A  A  A  A  A  A  self._append_plain_text('Kernel process is
>      either remote or '
>      A  A 501 A  A  A  A  A  A  A  A  A  A  A  A  A  A  A  A  A  A 
>      'unspecified. Cannot restart.\n')
>      A  A 502
>      A  A 503 A  A 
>      #---------------------------------------------------------------------------
>      A  A 504 A  A  # 'FrontendWidget' protected interface
>      A  A 505 A  A 
>      #---------------------------------------------------------------------------
>      A  A 506
>      A  A 507 A  A  def _call_tip(self):
>      A  A 508 A  A  A  A  """ Shows a call tip, if appropriate, at the
>      current cursor location.
>      A  A 509 A  A  A  A  """
>      A  A 510 A  A  A  A  # Decide if it makes sense to show a call tip
>      A  A 511 A  A  A  A  cursor = self._get_cursor()
>      A  A 512 A  A  A  A  cursor.movePosition(QtGui.QTextCursor.Left)
>      --> 513 A  A  A  A  if cursor.document().characterAt(cursor.position())
>      != '(':
>      A  A 514 A  A  A  A  A  A  return False
>      A  A 515 A  A  A  A  context = self._get_context(cursor)
>      A  A 516 A  A  A  A  if not context:
>      A  A 517 A  A  A  A  A  A  return False
>      A  A 518
>      A  A 519 A  A  A  A  # Send the metadata request to the kernel
>      A  A 520 A  A  A  A  name = '.'.join(context)
>      A  A 521 A  A  A  A  msg_id =
>      self.kernel_manager.shell_channel.object_info(name)
>      A  A 522 A  A  A  A  pos = self._get_cursor().position()
>      A  A 523 A  A  A  A  self._request_info['call_tip'] =
>      self._CallTipRequest(msg_id, pos)
>      A  A 524 A  A  A  A  return True
>      A  A 525
>      A  A 526 A  A  def _complete(self):
>      A  A 527 A  A  A  A  """ Performs completion at the current cursor
>      location.
>      A  A 528 A  A  A  A  """
> 
>      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

> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev

-- 
albert chin (china@thewrittenword.com)


More information about the IPython-dev mailing list