Saving as GIMP palette failes with AttributeError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Low
|
Unassigned |
Bug Description
Saving a drawing as GIMP palette (*.gpl) (File -> Save As -> GIMP Palette (*.gpl) fails here with the following message:
Traceback (most recent call last):
File "/usr/local/
walk(dom)
File "/usr/local/
checkStyle(
File "/usr/local/
if node.hasAttribu
AttributeError: Document instance has no attribute 'hasAttributes'
The file actually is created but empty.
I am on (K)Ubuntu 8.04.1 (x86) but use the current SVN version of Inkscape (rev. 19610, which I installed just today (because of another bug in Ubuntus Inkscape version ;). My python-xml version (the package, that contains minidom in Ubuntu -- which is used by the export_
I have attached a patch for export_
At the moment however this inaccuracy does not seem to be an issue. I would however rewrite the patch if requested.
The good thing of the former approach is, that it is a bit more pythonic (doing what you want and handle the consequences instead of passively prechecking everything ;).
The palette export seems to work for others and if this error is my fault or so, then please just ignore this report.
The patch does not do any harm, though ;).
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
Thanks for the testing and the patch. gimp_palette. py extension we have now is different from both rev 19610 and your diff. Seems like it was fixed already, could you please try a recent release? (at this moment it's 0.47-pre1).
The export_