Update problem on February 29th: "ValueError: day is out of range for month"

Just tried to update a freshly installed OSMC.

01:13:31 29.058422 T:1802998816 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<–
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type ‘exceptions.ValueError’>
Error Contents: day is out of range for month
Traceback (most recent call last):
File “/usr/share/kodi/addons/script.module.osmcsetting.updates/service.py”, line 38, in
m = update_service.Main()
File “/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/lib/update_service.py”, line 185, in init
self.scheduler = sched.SimpleScheduler(self.s)
File “/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/lib/simple_scheduler.py”, line 16, in init
self.trigger_time = datetime.datetime.now().replace(year=2222) # the time of the next update check
ValueError: day is out of range for month
–>End of Python script error report<–

Is the leap year the problem? :grin:

When I disable the daily update check, I get a different error:

01:26:34 812.367920 T:1802998816 NOTICE: Thread LanguageInvoker start, auto delete: false
01:26:35 812.812195 T:1802998816 NOTICE: -->Python Interpreter Initialized<–
01:26:35 812.812561 T:1802998816 WARNING: CPythonInvoker(9): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
01:26:35 812.995178 T:1802998816 NOTICE: OSMC settings sending response, update
01:26:35 812.998047 T:1802998816 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<–
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class ‘socket.error’>
Error Contents: (2, ‘No such file or directory’)
Traceback (most recent call last):
File “/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/lib/call_parent.py”, line 18, in
sock.connect(address)
File “/usr/lib/python2.7/socket.py”, line 224, in meth
return getattr(self._sock,name)(*args)
error: (2, ‘No such file or directory’)
–>End of Python script error report<–

Yep.

It’s been fixed and we’ll push it out as an update soon, which ironically, users won’t receive until 1st March or if they update manually.

3 Likes