svg-objects-export icon indicating copy to clipboard operation
svg-objects-export copied to clipboard

SyntaxError

Open ChameleonScales opened this issue 8 years ago • 3 comments

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 ?

ChameleonScales avatar Mar 15 '17 16:03 ChameleonScales

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 avatar Mar 19 '17 21:03 berteh

Tank you for this precision

ChameleonScales avatar Mar 20 '17 02:03 ChameleonScales

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?

avsaase avatar Jun 18 '19 19:06 avsaase