Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kjellmf opened this issue May 23, 2014 · 0 comments
Closed

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

kjellmf opened this issue May 23, 2014 · 0 comments
Labels

Comments

@kjellmf
Copy link
Collaborator

kjellmf commented May 23, 2014

GC issue: https://code.google.com/p/inkscape2tikz/issues/detail?id=48

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):

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

@kjellmf kjellmf added the bug label May 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant