ive added
fp = open(original_path, 'rb', encoding='utf-8')
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 285, in resize_icons
fp = open(original_path, 'rb', encoding='utf-8')
ValueError: binary mode doesn't take an encoding argument
>>>
and tried this
fp = open(original_path, 'rb')
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 293, 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>
>>>
Here's the link to the code it's all at the bottom of the page and also the folder with the images is there too.maybe you can fix it
https://maker.pro/raspberry-pi/projects/...en-display
fp = open(original_path, 'rb', encoding='utf-8')
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 285, in resize_icons
fp = open(original_path, 'rb', encoding='utf-8')
ValueError: binary mode doesn't take an encoding argument
>>>
and tried this
fp = open(original_path, 'rb')
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 293, 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>
>>>
Here's the link to the code it's all at the bottom of the page and also the folder with the images is there too.maybe you can fix it
https://maker.pro/raspberry-pi/projects/...en-display