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 #17

Open
ChameleonScales opened this issue Mar 15, 2017 · 3 comments
Open

SyntaxError #17

ChameleonScales opened this issue Mar 15, 2017 · 3 comments
Labels

Comments

@ChameleonScales
Copy link

When I try running the python script, I get this :

File "./svg-objects-export.py", line 124
    print ''.join(msg)
           ^
SyntaxError: invalid syntax

What did I do wrong ?

@berteh
Copy link
Owner

berteh commented Mar 19, 2017

You did nothing wrong. That is because in Python 3, they have replaced the print statement with the print function.

You can either run python2, or add parenthesis to all arguments of "print " in the code and push a code commit therewith here... or wait for me to do it, but maybe not so soon.

old:  print ''.join(msg)  
new:  print(''.join(msg))

hope this helps.

@berteh berteh added the bug label Mar 19, 2017
@ChameleonScales
Copy link
Author

Tank you for this precision

@avsaase
Copy link

avsaase commented Jun 18, 2019

I changed all print statements to print() function, but now I get
File "C:\Program Files\Inkscape\svg-objects-export.py", line 195 sys.exit(2); ^ SyntaxError: invalid syntax

I'm not familiar with Python. Is this a Python 3 compatibility issue as well?

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

3 participants