Kodi can't install/update addons or access weather

Hello,

Kodi is unable to update addons or access the weather app. It can search databases and catalogue my TV and movies, however.

From the log I get:

18:10:22 T:546836574464   ERROR: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
18:10:28 T:546836574464   ERROR: Previous line repeats 4 times.
18:10:28 T:546836574464   ERROR: CAddonInstallJob[service.nextup.notification]: MD5 mismatch after download special://home/addons/packages/service.nextup.notification-1.0.35.zip
18:10:29 T:547658658048   ERROR: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
18:10:44 T:546341740800   ERROR: Previous line repeats 7 times.
18:10:44 T:546341740800   ERROR: CAddonInstallJob[script.service.next-episode]: MD5 mismatch after download special://home/addons/packages/script.service.next-episode-1.1.1.zip
18:10:46 T:547658658048   ERROR: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
18:11:26 T:547658658048   ERROR: Previous line repeats 32 times.
18:11:26 T:547658658048   ERROR: CAddonInstallJob[script.service.checkpreviousepisode]: MD5 mismatch after download special://home/addons/packages/script.service.checkpreviousepisode-0.3.1.zip
18:11:27 T:546836574464   ERROR: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
19:32:19 T:546039783680   ERROR: Previous line repeats 34 times.
.....
20:48:40 T:547360444672  NOTICE: ### Oz Weather - 0.8.9 ### Oz Weather (Author: Bossanova808) Starting ...
20:48:40 T:547360444672  NOTICE: ### Oz Weather - 0.8.9 ### uname is: ('Linux', 'Odroid', '3.14.79+', '#1 SMP PREEMPT Thu May 11 15:12:03 CEST 2017', 'aarch64', '')
20:48:40 T:547360444672  NOTICE: ### Oz Weather - 0.8.9 ### System is linux
20:48:40 T:547360444672  NOTICE: ### Oz Weather - 0.8.9 ### Kodi Version #: 16.1
20:48:40 T:547360444672  NOTICE: ### Oz Weather - 0.8.9 ### Kodi Version  : J*
20:48:40 T:547360444672  NOTICE: ### Oz Weather - 0.8.9 ### Addon arguments as: ['/root/.kodi/addons/weather.ozweather/default.py', '1']
20:48:40 T:547360444672   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ImportError'>
                                            Error Contents: No module named PIL
                                            Traceback (most recent call last):
                                              File "/root/.kodi/addons/weather.ozweather/default.py", line 324, in <module>
                                                forecast(locationUrlPath, radar)
                                              File "/root/.kodi/addons/weather.ozweather/default.py", line 226, in forecast
                                                buildImages(radarCode, updateRadarBackgrounds, backgroundsPath, overlayLoopPath)
                                              File "/root/.kodi/addons/weather.ozweather/resources/lib/bom.py", line 198, in buildImages
                                                prepareBackgrounds(radarCode, backgroundsPath)
                                              File "/root/.kodi/addons/weather.ozweather/resources/lib/bom.py", line 116, in prepareBackgrounds
                                                downloadBackground(radarCode, "IDR.legend.0.png", backgroundsPath)
                                              File "/root/.kodi/addons/weather.ozweather/resources/lib/bom.py", line 67, in downloadBackground
                                                from PIL import Image
                                            ImportError: No module named PIL
                                            -->End of Python script error report<--

My resolv.conf is:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.8.8
nameserver 8.8.4.4

Any help would be appreciated.

Odroid C2 running DietPi v151