[Bug 1161818] Re: QTextBlockUserData loses its data

Launchpad Bug Tracker 1161818 at bugs.launchpad.net
Mon Apr 1 18:55:25 UTC 2013


This bug was fixed in the package ipython - 0.13.2~rc2-1

---------------
ipython (0.13.2~rc2-1) experimental; urgency=low


  * New upstream release candidate (LP: #1161818, #1162112)
  * pass -a to xvfb-run
  * drop DM-Upload-Allowed, not needed anymore
  * don't link documentation of ipython-doc so ipython3 does not depend on
    ipython (Closes: #695554)
    Requires ipython-doc.preinst to not lose copyright on upgrade
  * add ipython3 and ipython3-qtconsole desktop files (Closes: #693612)
  * fix detection of cython modules for multiarch python (Closes: #697704)
  * don't install tests for notebook and qtconsole
  * bump standard to 3.9.4, no changes required
  * add autopkgtests running testsuite and testing tools, cython magics
    and incomplete install message
  * fix crash on tracebacks without line numbers (Closes: #701597)
  * add tkinter package to debianize-error-messages.patch (Closes: #701707)
  * use canonical vcs fields in control

 -- Julian Taylor <jtaylor.debian at googlemail.com>  Sat, 02 Feb 2013
11:14:27 +0100

** Changed in: ipython (Ubuntu)
       Status: Triaged => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-qt4 in Ubuntu.
https://bugs.launchpad.net/bugs/1161818

Title:
  QTextBlockUserData loses its data

Status in “ipython” package in Ubuntu:
  Fix Released
Status in “python-qt4” package in Ubuntu:
  Fix Released

Bug description:
  in pyqt4 4.10 QTextBlockUserData is broken.
  see
  http://www.riverbankcomputing.com/pipermail/pyqt/2013-March/032457.html

  from PyQt4.QtGui import QTextDocument, QTextBlockUserData
  doc=QTextDocument()
  data=QTextBlockUserData()
  data.value = 123
  doc.firstBlock().setUserData(data)
  del data
  import gc
  gc.collect()
  print doc.firstBlock().userData().value

  AttributeError: 'QTextBlockUserData' object has no attribute 'value'

  example in archive
  ipython qtconsole
  type:
  if 1:
    print 1

  and you get lots of tracebacks in the terminal:
    File "/usr/lib/python2.7/dist-packages/IPython/frontend/qt/console/pygments_highlighter.py", line 107, in highlightBlock
      self._lexer._saved_state_stack = prev_data.syntax_stack
  AttributeError: 'QTextBlockUserData' object has no attribute 'syntax_stack'

  it also breaks ninja ide.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ipython/+bug/1161818/+subscriptions




More information about the foundations-bugs mailing list