svg2data icon indicating copy to clipboard operation
svg2data copied to clipboard

SyntaxError: invalid syntax. Perhaps you forgot a comma?

Open knickr opened this issue 2 years ago • 0 comments

Could this be due to the version of Python I am running?

data = svg2data("test.svg")


Traceback (most recent call last):

File ~\AppData\Roaming\Python\Python311\site-packages\IPython\core\interactiveshell.py:3505 in run_code exec(code_obj, self.user_global_ns, self.user_ns)

Cell In[6], line 1 data = svg2data("test.svg")

File D:\Users\Nick\Documents\Python\svg2data.py:49 in init child = pass_transformation(child)

File D:\Users\Nick\Documents\Python\svg2data.py:233 in pass_transformation child = pass_transformation(child)

File D:\Users\Nick\Documents\Python\svg2data.py:213 in pass_transformation parent_matrix = transform2matrix(parent_transform)

File D:\Users\Nick\Documents\Python\svg2data.py:169 in transform2matrix matrix = ast.literal_eval(matrix_string)

File C:\Program Files\Python311\Lib\ast.py:64 in literal_eval node_or_string = parse(node_or_string.lstrip(" \t"), mode='eval')

File C:\Program Files\Python311\Lib\ast.py:50 in parse return compile(source, filename, mode, flags,

File :1 [1 0 0 1 8 8] ^ SyntaxError: invalid syntax. Perhaps you forgot a comma?

knickr avatar Aug 02 '23 12:08 knickr