“Unicode Error “unicodeescape” codec can’t decode bytes
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
You must login to ask question.
The problem is with the string
Here,
\U
in"C:\Users
… starts an eight-character Unicode escape, such as\U00014321
. In your code, the escape is followed by the character ‘s’, which is invalid. You either need to duplicate all backslashes:Or prefix the string with
r
(to produce a raw string):