i get this error
it gives me error EOL while scanning string literal
Error:'C:/Users/user/Documents/RaspberryPi-Noticeboard-master/WeatherIcons/clear-day.png'
Traceback (most recent call last):
File "C:\Users\user\Documents\hi.py", line 306, in <module>
window.resize_icons()
File "C:\Users\user\Documents\hi.py", line 286, in resize_icons
img = PIL.Image.open(fp)
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\site-packages\PIL\Image.py", line 2818, in open
prefix = fp.read(16)
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 146: character maps to <undefined>
>>>
if i use directory = r'C:\Users\user\Documents\RaspberryPi-Noticeboard-master\WeatherIcons\'it gives me error EOL while scanning string literal