jefftriplett / kindlestrip

:book: A pip-installable conversion of Paul Durrant's kindlestrip
https://www.mobileread.com/forums/showthread.php?t=96903
The Unlicense
68 stars 10 forks source link

Error UTF-8 #4

Open OptimusPrime1984 opened 5 years ago

OptimusPrime1984 commented 5 years ago

I tried to run it and it gives the following error"

python kindlestrip.py VOL6.mobi vol6c.mobi > error.text
  File "kindlestrip.py", line 70
    print "Warning: pathof expects utf-8 encoded byestring: ", s
                                                            ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Warning
: pathof expects utf-8 encoded byestring: ", s)?

Anything I did wrong in my end? thanks.

mrzool commented 4 years ago

Same issue on macOS 10.14.6.

yhh2021 commented 3 years ago

This is not about UTF-8. The script is written in Python 2 and you are running it with Python 3.