Export to WMF fails with AttributeError

Bug #1093280 reported by Benjamin Drung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Unassigned
inkscape (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Exporting a PDF file to WMF fails:

UniConvertor failed:

Cannot list directory /home/skipper/.uniconvertor:[Errno 2] No such file or directory: '/home/skipper/.uniconvertor'
ignoring it in font_path
Cannot list directory /home/skipper/.uniconvertor:[Errno 2] No such file or directory: '/home/skipper/.uniconvertor'
ignoring it in font_path
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/uniconvertor/__init__.py", line 88, in uniconv
    saver(doc, output_file)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/plugins.py", line 201, in __call__
    module.save(document, file, filename, options)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/Filters/wmfsaver.py", line 461, in save
    saver.SaveDocument(document)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/plugins/Filters/wmfsaver.py", line 403, in SaveDocument
    left, bottom, right, top = doc.BoundingRect()
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/document.py", line 221, in BoundingRect
    rect = layer.bounding_rect
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/base.py", line 352, in __getattr__
    getattr(self, method)()
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/compound.py", line 174, in update_rects
    boxes = map(lambda o: o.coord_rect, self.objects)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/compound.py", line 174, in <lambda>
    boxes = map(lambda o: o.coord_rect, self.objects)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/base.py", line 352, in __getattr__
    getattr(self, method)()
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/compound.py", line 174, in update_rects
    boxes = map(lambda o: o.coord_rect, self.objects)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/compound.py", line 174, in <lambda>
    boxes = map(lambda o: o.coord_rect, self.objects)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/base.py", line 352, in __getattr__
    getattr(self, method)()
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/compound.py", line 174, in update_rects
    boxes = map(lambda o: o.coord_rect, self.objects)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/compound.py", line 174, in <lambda>
    boxes = map(lambda o: o.coord_rect, self.objects)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/base.py", line 352, in __getattr__
    getattr(self, method)()
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/compound.py", line 174, in update_rects
    boxes = map(lambda o: o.coord_rect, self.objects)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/compound.py", line 174, in <lambda>
    boxes = map(lambda o: o.coord_rect, self.objects)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/base.py", line 352, in __getattr__
    getattr(self, method)()
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/compound.py", line 174, in update_rects
    boxes = map(lambda o: o.coord_rect, self.objects)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/compound.py", line 174, in <lambda>
    boxes = map(lambda o: o.coord_rect, self.objects)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/base.py", line 352, in __getattr__
    getattr(self, method)()
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/compound.py", line 174, in update_rects
    boxes = map(lambda o: o.coord_rect, self.objects)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/compound.py", line 174, in <lambda>
    boxes = map(lambda o: o.coord_rect, self.objects)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/base.py", line 352, in __getattr__
    getattr(self, method)()
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/compound.py", line 174, in update_rects
    boxes = map(lambda o: o.coord_rect, self.objects)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/compound.py", line 174, in <lambda>
    boxes = map(lambda o: o.coord_rect, self.objects)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/base.py", line 352, in __getattr__
    getattr(self, method)()
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/compound.py", line 174, in update_rects
    boxes = map(lambda o: o.coord_rect, self.objects)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/compound.py", line 174, in <lambda>
    boxes = map(lambda o: o.coord_rect, self.objects)
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/base.py", line 352, in __getattr__
    getattr(self, method)()
  File "/usr/lib/python2.7/dist-packages/uniconvertor/app/Graphics/text.py", line 492, in update_rects
    rect = apply(Rect, a.font.TextBoundingBox(self.text, a.font_size, a))
AttributeError: 'NoneType' object has no attribute 'TextBoundingBox'

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: inkscape 0.48.3.1-1ubuntu6
ProcVersionSignature: Ubuntu 3.5.0-21.32-generic 3.5.7.1
Uname: Linux 3.5.0-21-generic x86_64
ApportVersion: 2.6.1-0ubuntu9
Architecture: amd64
Date: Sun Dec 23 15:41:20 2012
InstallationDate: Installed on 2012-04-24 (242 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120421)
MarkForUpload: True
ProcEnviron:
 LANGUAGE=de_DE:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: inkscape
UpgradeStatus: Upgraded to quantal on 2012-10-22 (61 days ago)

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

> AttributeError: 'NoneType' object has no attribute 'TextBoundingBox'

Duplicate of Bug #420979 “save as wmf error (NoneType in uniconvertor)”?

Upstream bug report for UniConvertor:
<http://sk1project.org/forum/viewthread.php?thread_id=19>

tags: added: exporting uniconvertor wmf
Revision history for this message
Beluga (buovjaga) wrote :

Tested with a random pdf and no problem.

Arch Linux 64-bit, KDE Plasma 5
Inkscape 0.92pre1 15073 (GTK3)

Revision history for this message
jazzynico (jazzynico) wrote :

Inkscape stopped using Uniconvertor as of 0.91 (new internal filters for EMF and WMF), and it seems the bug is now fixed.

Changed in inkscape:
importance: Undecided → Medium
milestone: none → 0.91
status: New → Fix Released
Changed in inkscape (Ubuntu):
status: New → 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.