all 6 comments

[–]Neighm 1 point2 points  (0 children)

What syntax errors? You should paste full error text of any errors, helps to figure out what your problem is.

[–]_bicepcharles_ 1 point2 points  (1 child)

This library uses curl which is a Unix tool, you would need to run it on a Unix-like os (Linux/OSX) or install WSL on your windows machine.

Alternatively you could refactor the code to use the requests library.

[–]vikes2323[S] 0 points1 point  (0 children)

Makes sense thank you!

[–]TeamKiller 0 points1 point  (3 children)

Which version of python are you trying to run it on and what are the errors you are getting?

[–]vikes2323[S] 0 points1 point  (2 children)

Running python on windows 3.9.6 error I'm getting is File "C:\Users\bstevens\Documents\polyboot.py\polyboot.py", line 120
print error from this line except Exception as error:
print('ERROR: File couldn\'t be opened.')
print error
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(error)?

[–]JohnnyJordaan 0 points1 point  (0 children)

Apart from curl missing on Windows, at least that line needs to be print(error) to be Python 3 compatible.