Zim

Linkmap related error (no linkmap created)

Bug #556845 reported by Vlastimil Ott
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zim
Invalid
Medium
Unassigned

Bug Description

Cannot create a linkmap, nothing happens after selecting View-Linkmap. Debug info:

INFO: Index update done
DEBUG: Action: show_linkmap
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/zim/plugins/linkmap/gui.py", line 39, in show_linkmap
    dialog = LinkMapDialog(self.ui, linkmap)
  File "/usr/lib/python2.6/site-packages/zim/plugins/linkmap/gui.py", line 55, in __init__
    self.xdotview.set_dotcode(linkmap.get_dotcode())
  File "/usr/lib/python2.6/site-packages/zim/_lib/xdot.py", line 1335, in set_dotcode
    self.set_xdotcode(xdotcode)
  File "/usr/lib/python2.6/site-packages/zim/_lib/xdot.py", line 1350, in set_xdotcode
    self.graph = parser.parse()
  File "/usr/lib/python2.6/site-packages/zim/_lib/xdot.py", line 1046, in parse
    DotParser.parse(self)
  File "/usr/lib/python2.6/site-packages/zim/_lib/xdot.py", line 866, in parse
    self.parse_graph()
  File "/usr/lib/python2.6/site-packages/zim/_lib/xdot.py", line 875, in parse_graph
    self.parse_stmt()
  File "/usr/lib/python2.6/site-packages/zim/_lib/xdot.py", line 897, in parse_stmt
    self.handle_graph(attrs)
  File "/usr/lib/python2.6/site-packages/zim/_lib/xdot.py", line 997, in handle_graph
    xmin, ymin, xmax, ymax = map(int, bb.split(","))
ValueError: invalid literal for int() with base 10: '631.87'
DEBUG: Action: quit

Mandriva Linux 2010, Zim 0.46, dot - graphviz version 2.24.0 (20090616.2323)

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Seems latest Ubuntu still has graphviz 2.20 so can not test immediately.

You could try a quick fix by editing the reported file and line number and replace "map(int, ..)" by "map(int, map(float, ..))". That should fix this case, but you might run into similar issues in different places.

PLease let me know the result.

Changed in zim:
status: New → Incomplete
importance: Undecided → Medium
Revision history for this message
Vlastimil Ott (vlastimil-e-ott) wrote :

Works for me on Ubuntu 10.10., Zim 0.49, can be closed

Changed in zim:
status: Incomplete → Invalid
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.