Save as Compressed with media results in 0 byte zip file

Bug #168533 reported by Bug Importer
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Aaron C Spike

Bug Description

Windows XP, Inkscape 0.45.1, python 2.3.4 (installed with inkscape)

Reproduce: Open graphics file, Save As Compressed Inkscape SVG with media.

Result: 0 byte zip file.
Expected result: Zip file containing SVG and original graphics file

During the save as process, a python window (CLI) flashes by, no text is
visible.

Is there a way to turn on 'tracing' for python when called from Inkscape?

Tags: saving
Revision history for this message
Tom Davidson (tjd-mit) wrote :

Originator: NO

I have the same problem on Fedora Core 6, using latest SVN (rev 16429).
Bug 1364270 suggests that the author of this extension was aware of issues
with his code, but even using his workarounds I have not been able to save
any file to .zip. Bug 1815229 is a duplicate of this one, on Ubuntu.

I get the following trace from Python:
Traceback (most recent call last):
  File "/usr/local/share/inkscape/extensions/svg_and_media_zip_output.py",
line 123, in ?
    e.affect()
  File "/usr/local/share/inkscape/extensions/inkex.py", line 153, in
affect
    self.effect()
  File "/usr/local/share/inkscape/extensions/svg_and_media_zip_output.py",
line 68, in effect
    ctx_orig =
inkex.xml.xpath.Context.Context(self.document,processorNss=inkex.NSS)
AttributeError: 'module' object has no attribute 'xml'

Revision history for this message
Fernan-users (fernan-users) wrote :

Originator: NO

Confirmed using stock inkscape 0.4.5.1 on Ubuntu i386, both on Feisty
(7.04) and Gutsy (7.10).

Revision history for this message
Tom Davidson (tjd-mit) wrote :

The links above to related sourceforge bug numbers should be:
http://bugs.launchpad.net/inkscape/+bug/sf1364270 <--the thread discussing the addition of the possibly broken feature
http://bugs.launchpad.net/inkscape/+bug/sf1815229 <--fernan's dupe under Ubuntu

nightrow (jb-benoit)
Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Cory Dodt (corydodt) wrote :

Reproduced with 0.45+devel (compiled 2008-01-05). First had to install Ubuntu's python-lxml package, then I got the traceback above.

Revision history for this message
Emir ONUK (e-onux) wrote :

I gave that same error (onWinXPhome):

Traceback (most recent call last):

  File "share\extensions\svg_and_media_zip_output.py", line 123, in <module>

    e.affect()

  File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 154, in affect

    self.effect()

  File "share\extensions\svg_and_media_zip_output.py", line 68, in effect

    ctx_orig = inkex.xml.xpath.Context.Context(self.document,processorNss=inkex.NSS)

AttributeError: 'module' object has no attribute 'xml'

Revision history for this message
Tom Davidson (tjd-mit) wrote :

Milestoning as 'fix or remove' for 0.46...

Changed in inkscape:
milestone: none → 0.46
Revision history for this message
Bryce Harrington (bryce) wrote :

I think we can give a few more days, but if it's not fixed by the time we branch the release candidate, we should probably drop the extension from the release, and hope it gets fixed up for 0.47.

Revision history for this message
Aaron C Spike (acspike) wrote :

should be fixed as of 17423

Changed in inkscape:
assignee: nobody → acspike
status: Confirmed → Fix Committed
Revision history for this message
Tom Davidson (tjd-mit) wrote :

Works great in 17424. Thanks ACSpike!!

I note that it's not possibly to use Inkscape to open a .zip flie saved this way. But I have just learned that improved media handling is on the roadmap for 0.47, so I'm sure this is better addressed then...

Revision history for this message
Tom Davidson (tjd-mit) wrote :

(Inkscape doesn't use 'fix committed', per Bryce)

Changed in inkscape:
status: Fix Committed → 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.