Newpipe-CSV-Fixer icon indicating copy to clipboard operation
Newpipe-CSV-Fixer copied to clipboard

Getting Error while converting

Open navharsh opened this issue 5 years ago • 10 comments

File "fixer.py", line 34 if((paramEncoding := arguments.encoding) == None): ^ SyntaxError: invalid syntax

navharsh avatar Aug 11 '21 13:08 navharsh

That's Python3 syntax. Make sure you're using the lastest version of Python3 (Python or Python2 will refuse ":=" operator)

JCGdev avatar Aug 11 '21 13:08 JCGdev

I use Zorin OS , was trying directly in terminal. I didnt noticed the version. Sorry :)

navharsh avatar Aug 11 '21 13:08 navharsh

Let me know if it works for you 😁

JCGdev avatar Aug 11 '21 13:08 JCGdev

I got the subscription json file , its just like the one shown in example but it fails while importing in app

navharsh avatar Aug 11 '21 14:08 navharsh

Make sure you're importing the file from "Previous exports".

example:

https://github.com/JCGdev/Newpipe-CSV-Fixer/blob/main/images/import.png

JCGdev avatar Aug 11 '21 15:08 JCGdev

Let me know if that fixes your error, so that I can close this

JCGdev avatar Aug 11 '21 16:08 JCGdev

Thanks, i made an error in the the header , it works fine when i did it the second time.

navharsh avatar Aug 11 '21 18:08 navharsh

Cool 😁

JCGdev avatar Aug 11 '21 20:08 JCGdev

That's Python3 syntax. Make sure you're using the lastest version of Python3 (Python or Python2 will refuse ":=" operator)

I had the same error with Python 3.7. Turns out this operator is only supported in Python 3.8 or higher versions.

See PEP 572

zengxu-yang avatar Sep 02 '21 05:09 zengxu-yang

Just removed the ":=" operator, for more retrocompatibility :)

JCGdev avatar Sep 02 '21 06:09 JCGdev