halamalala / inkscape2tikz

Automatically exported from code.google.com/p/inkscape2tikz
Other
22 stars 2 forks source link

Plugin fails to export: invalid literal for float(): 138px #48

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open 
http://upload.wikimedia.org/wikipedia/commons/c/c3/Biquad_filter_DF-I.svg
2. Try to export as tikz

inkscape2tikz fails, creating the following backtrace:
Traceback (most recent call last):
  File "tikz_export.py", line 1391, in <module>
    main_inkscape()
  File "tikz_export.py", line 1379, in main_inkscape
    effect.affect()
  File "/usr/share/inkscape/extensions/inkex.py", line 215, in affect
    self.effect()
  File "tikz_export.py", line 1286, in effect
    s = self._output_group(nodes, graphics_state)
  File "tikz_export.py", line 1260, in _output_group
    s += self._handle_use(node, graphics_state, accumulated_state)
  File "tikz_export.py", line 1099, in _handle_use
    return self._output_group(g_wrapper, accumulated_state)
  File "tikz_export.py", line 1231, in _output_group
    graphics_state = GraphicsState(node)
  File "tikz_export.py", line 523, in __init__
    self._get_graphics_state(svg_node)
  File "tikz_export.py", line 562, in _get_graphics_state
    self.transform = parse_transform(transform)
  File "tikz_export.py", line 416, in parse_transform
    dx = float(args[0])
ValueError: invalid literal for float(): 138px

What version of the product are you using? On what operating system?
inkscape-tikz-hg revision 147
inkscape 0.48.4-2
Linux x86_64

Please provide any additional information below.

Original issue reported on code.google.com by raphael....@gmail.com on 12 Jan 2013 at 6:52

GoogleCodeExporter commented 8 years ago

Original comment by kjel...@gmail.com on 23 May 2014 at 8:40