PixelSnap extension returns error

Bug #1466712 reported by Erik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

Whenever I run the PixelSnap extension (Extensions > Modify Path > PixelSnap > Apply). I get the following error:

---
Traceback (most recent call last):
  File "pixelsnap.py", line 507, in <module>
    effect.affect()
  File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 265, in affect
    self.getposinlayer()
  File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 207, in getposinlayer
    x = self.unittouu( xattr[0] + 'px' )
  File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 351, in unittouu
    return retval * (self.__uuconv[u.string[u.start():u.end()]] / self.__uuconv[self.getDocumentUnit()])
  File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 304, in getDocumentUnit
    p = param.match(svgwidth)
TypeError: expected string or buffer
---

I am running Inkscape 0.91 on Windows 7 x64

Revision history for this message
su_v (suv-lp) wrote :

To allow further investigation, please attach a test case (SVG file) which triggers the reported error.

Likely same underlying issue as already tracked in
* Bug #1463623 “Error trying to save Optimized SVG (no 'width' attribute for SVGRoot)”
  https://bugs.launchpad.net/inkscape/+bug/1463623

tags: added: extensions-plugins
Changed in inkscape:
status: New → Incomplete
Revision history for this message
Erik (eberkund) wrote :

Yep, you are correct. I added height and width attributes to the SVG root and the error went away. Thanks.

Revision history for this message
su_v (suv-lp) wrote :

Thank you for the feedback - linking as duplicate to bug #1463623.

Changed in inkscape:
status: Incomplete → New
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.