export_gimp_palette.py crashed with AttributeError in checkStyle()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
inkscape (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: inkscape
Inkscape crash during recording a .gpl palette in usr/share/
ProblemType: Crash
Architecture: i386
Date: Wed Apr 30 14:39:02 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/share/
InterpreterPath: /usr/bin/python2.5
Package: inkscape 0.46-0ubuntu2
PackageArchitec
ProcCmdline: python /usr/share/
ProcEnviron:
PATH=/
LANG=fr_FR.UTF-8
SHELL=/bin/bash
PythonArgs: ['/usr/
SourcePackage: inkscape
Title: export_
Uname: Linux 2.6.24-16-generic i686
UserGroups: adm admin audio cdrom dialout dip floppy lpadmin netdev plugdev powerdev sambashare scanner vboxusers video
Changed in inkscape: | |
importance: | Undecided → Medium |
This looks like a plain error with this plugin. The error in question is in Python code calling "node.hasAttrib utes()" on an xml minidom node. This hasAttributes is not a part of Python's minidom, and not mentioned in the DOM level 1 documentation. http:// www.w3. org/TR/ REC-DOM- Level-1/ level-one- core.html
An easy fix looks like to remove this line 27. The code would still ignore nodes without a "style" attribute, and should have no difference in behaviour. (If we assume hasAttributes() returned True if there were any attributes on the xml node?)