Oderik / xbmc-somafm

SomaFM Plugin for Kodi
GNU General Public License v2.0
11 stars 6 forks source link

Opening SomaFM fails: must be string or read-only buffer, not None #10

Open twicejr opened 8 years ago

twicejr commented 8 years ago

Further info: Raspberry Pi 3; OSMC. Linux osmcat 4.4.6-3-osmc #1 SMP PREEMPT Fri Apr 1 20:55:03 UTC 2016 armv7l GNU/Linux Kodi 17-alpha1

-->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.TypeError'>
                                            Error Contents: must be string or read-only buffer, not None
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/plugin.audio.somafm/default.py", line 181, in <module>
                                                build_directory()
                                              File "/home/osmc/.kodi/addons/plugin.audio.somafm/default.py", line 84, in build_directory
                                                xml_data = ET.fromstring(channel_data)
                                              File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1300, in XML
                                                parser.feed(text)
                                              File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1640, in feed
                                                self._parser.Parse(data, 0)
                                            TypeError: must be string or read-only buffer, not None
                                            -->End of Python script error report<--
twicejr commented 8 years ago

Sorry, dude, I think I found the problem, by debugging the fetch function directly, I got: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)>

twicejr commented 8 years ago

It's fixed by installing DigiCert CA Certs: See https://github.com/osmc/osmc/issues/301

Oderik commented 8 years ago

Hi! Thanks for investigating! Unfortunately right now I don't have the time to look into it.