Bug#852290: inkscape: saving as "optimised SVG" fails, due to error when importing scourString
Tim Wienk
tim at wienk.name
Mon Jan 23 10:19:46 UTC 2017
Package: inkscape
Version: 0.92.0-3~bpo8+1
Severity: normal
Dear Maintainer,
Please note, this bug only applies to Debian Jessie (using inkscape from
jessie-backports and python-scour from jessie - there is no backported
version of python-scour).
When saving as an optimised SVG, inkscape uses the scour library to
optimise the SVG. An error is reported when doing so, triggered by
importing `scourString` from `scour.scour`.
The problem is most likely a result of a change in the python-scour
package:
- In package version 0.26-3 (jessie), scour.py exists as:
/usr/lib/python2.7/dist-packages/scour.py
- In package version 0.32-2 (stretch), scour.py exists as:
/usr/lib/python2.7/dist-packages/scour/scour.py
I have implemented the following patch locally to work around the
problem:
--- /usr/share/inkscape/extensions/scour.inkscape.py~
+++ /usr/share/inkscape/extensions/scour.inkscape.py
@@ -6,3 +6,6 @@
import scour
- from scour.scour import scourString
+ try:
+ from scour.scour import scourString
+ except Exception as e:
+ from scour import scourString
except Exception as e:
Thanks for the continued work and effort on maintaining this package.
Kind regards,
Tim.
-- System Information:
Debian Release: 8.7
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable'), (50, 'testing'), (10, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.8.0-0.bpo.2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages inkscape depends on:
ii libaspell15 0.60.7~20110707-1.3
ii libatk1.0-0 2.14.0-1
ii libatkmm-1.6-1 2.22.7-2.1
ii libc6 2.19-18+deb8u7
ii libcairo2 1.14.0-2.1+deb8u2
ii libcairomm-1.0-1 1.10.0-1.1
ii libcdr-0.1-1 0.1.0-3
ii libdbus-1-3 1.8.22-0+deb8u1
ii libdbus-glib-1-2 0.102-1
ii libfontconfig1 2.11.0-6.3+deb8u1
ii libfreetype6 2.5.2-3+deb8u1
ii libgc1c2 1:7.2d-6.4
ii libgcc1 1:4.9.2-10
ii libgdk-pixbuf2.0-0 2.31.1-2+deb8u5
ii libglib2.0-0 2.42.1-1+b1
ii libglibmm-2.4-1c2a 2.42.0-1
ii libgomp1 4.9.2-10
ii libgsl0ldbl 1.16+dfsg-2
ii libgtk2.0-0 2.24.25-3+deb8u1
ii libgtkmm-2.4-1c2a 1:2.24.4-1.1
ii libgtkspell0 2.0.16-1.1
ii libjpeg62-turbo 1:1.3.1-12
ii liblcms2-2 2.6-3+b3
ii libmagick++-6.q16-5 8:6.8.9.9-5+deb8u6
ii libmagickcore-6.q16-2 8:6.8.9.9-5+deb8u6
ii libmagickwand-6.q16-2 8:6.8.9.9-5+deb8u6
ii libpango-1.0-0 1.36.8-3
ii libpangocairo-1.0-0 1.36.8-3
ii libpangoft2-1.0-0 1.36.8-3
ii libpangomm-1.4-1 2.34.0-1.1
ii libpng12-0 1.2.50-2+deb8u3
ii libpoppler-glib8 0.26.5-2+deb8u1
ii libpoppler46 0.26.5-2+deb8u1
ii libpopt0 1.16-10
ii libpotrace0 1.12-1+deb8u1
ii librevenge-0.0-0 0.0.1-3
ii libsigc++-2.0-0c2a 2.4.0-1
ii libstdc++6 4.9.2-10
ii libvisio-0.1-1 0.1.0-2
ii libwpg-0.3-3 0.3.0-3
ii libx11-6 2:1.6.2-3
ii libxml2 2.9.1+dfsg1-5+deb8u4
ii libxslt1.1 1.1.28-2+deb8u2
ii python 2.7.9-1
pn python:any <none>
ii zlib1g 1:1.2.8.dfsg-2+b1
Versions of packages inkscape recommends:
ii aspell 0.60.7~20110707-1.3
ii imagemagick 8:6.8.9.9-5+deb8u6
pn libimage-magick-perl <none>
pn libwmf-bin <none>
ii python-lxml 3.4.0-1
ii python-numpy 1:1.8.2-2
ii python-scour 0.26-3
pn transfig <none>
Versions of packages inkscape suggests:
ii dia 0.97.3-1
pn libsvg-perl <none>
pn libxml-xql-perl <none>
pn pstoedit <none>
pn python-uniconvertor <none>
ii ruby 1:2.1.5+deb8u2
-- no debconf information
More information about the pkg-multimedia-maintainers
mailing list