snippets plugin broken with python 3.4

Bug #1282607 reported by Marc Deslauriers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gedit
Fix Released
Medium
gedit (Ubuntu)
Fix Released
High
Unassigned

Bug Description

$ gedit
Traceback (most recent call last):
  File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/windowactivatable.py", line 57, in do_activate
    self.accel_group = Library().get_accel_group(None)
  File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/library.py", line 878, in get_accel_group
    self.ensure(language)
  File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/library.py", line 912, in ensure
    self.ensure_files()
  File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/library.py", line 930, in ensure_files
    self.add_user_library)
  File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/library.py", line 854, in find_libraries
    addcb(f)
  File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/library.py", line 834, in add_user_library
    return self.add_library(library)
  File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/library.py", line 794, in add_library
    library.ensure_language()
  File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/library.py", line 523, in ensure_language
    for element in self.parse_xml(256):
  File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/library.py", line 456, in parse_xml
    parser = et.XMLTreeBuilder(target=builder)
AttributeError: 'module' object has no attribute 'XMLTreeBuilder'
Traceback (most recent call last):
  File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/windowactivatable.py", line 71, in do_deactivate
    if self.accel_group:
AttributeError: 'WindowActivatable' object has no attribute 'accel_group'

I believe XMLTreeBuilder was changed to XMLParser

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: gedit 3.10.4-0ubuntu2
ProcVersionSignature: Ubuntu 3.13.0-11.31-generic 3.13.3
Uname: Linux 3.13.0-11-generic x86_64
ApportVersion: 2.13.2-0ubuntu5
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Feb 20 09:19:46 2014
InstallationDate: Installed on 2013-11-26 (85 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
SourcePackage: gedit
UpgradeStatus: Upgraded to trusty on 2014-01-17 (33 days ago)

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https://wiki.ubuntu.com/Bugs/Upstream/GNOME. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

Changed in gedit (Ubuntu):
importance: Undecided → High
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

More info:

http://effbot.org/zone/elementtree-13-intro.htm

Looks like python 3.4 dropped the XMLTreeBuilder backwards compatibility.

Changed in gedit:
importance: Unknown → Medium
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gedit - 3.10.4-0ubuntu3

---------------
gedit (3.10.4-0ubuntu3) trusty; urgency=medium

  * Fix snippets plugin with Python 3.4 (LP: #1282607)
 -- Marc Deslauriers <email address hidden> Thu, 20 Feb 2014 09:56:39 -0500

Changed in gedit (Ubuntu):
status: New → Fix Released
Changed in gedit:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.