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

SyntaxError: invalid syntax. Perhaps you forgot a comma? #8

Open
knickr opened this issue Aug 2, 2023 · 0 comments
Open

SyntaxError: invalid syntax. Perhaps you forgot a comma? #8

knickr opened this issue Aug 2, 2023 · 0 comments

Comments

@knickr
Copy link

knickr commented Aug 2, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant