-
-
Notifications
You must be signed in to change notification settings - Fork 25
Closed
Labels
help wantedcan't get it up and running? just ask for help.can't get it up and running? just ask for help.
Description
hi @LoveBootCaptain ,
i saw your project by twitter, and at the same i see this project here.i'm a beginner in python,too. So i try to build this project. And i encounter an error:
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\WeatherPi_TFT-master\WeatherPi_TFT.py", line 16, in <module>
locale.setlocale(locale.LC_ALL, locale.getdefaultlocale())
File "D:\Python35\lib\locale.py", line 594, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
i dont know where is wrong.However,i annotate return _setlocale(category, locale) in "D:\Python35\lib\locale.py", line 594
and the error is gone
But there is a new error:
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\WeatherPi_TFT-master\WeatherPi_TFT.py", line 637, in <module>
loop()
File "C:\Users\Administrator\Desktop\WeatherPi_TFT-master\WeatherPi_TFT.py", line 602, in loop
Update.run()
File "C:\Users\Administrator\Desktop\WeatherPi_TFT-master\WeatherPi_TFT.py", line 410, in run
Update.update_json()
File "C:\Users\Administrator\Desktop\WeatherPi_TFT-master\WeatherPi_TFT.py", line 212, in update_json
config = json.loads(config_data)
File "D:\Python35\lib\json\__init__.py", line 319, in loads
return _default_decoder.decode(s)
File "D:\Python35\lib\json\decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "D:\Python35\lib\json\decoder.py", line 355, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 3 column 1 (char 59)
i have no idea about it...
PS: i can get defaultlocale by locale.getdefaultlocale():
>>> locale.getdefaultlocale()
('zh_CN', 'cp936')
Do you have a idea?
Metadata
Metadata
Assignees
Labels
help wantedcan't get it up and running? just ask for help.can't get it up and running? just ask for help.