YouTube doesn't work


since some days YouTube hasn’t been working correctly anymore. Some times I could open the AddOn and after opening a video twice or more times, it was played. But since yesterday I can’t open the Addon at all.

In the logfile:
20:32:42 69.094749 T:2686448672 NOTICE: -->Python Interpreter Initialized<-- 20:32:56 83.419830 T:2686448672 NOTICE: [] Running: YouTube (5.1.10) on Isengard (15.2) with Python 2.7.9 20:33:45 132.901764 T:2686448672 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <class 'urllib2.URLError'> Error Contents: <urlopen error [Errno -2] Name or service not known> Traceback (most recent call last): File "/home/osmc/.kodi/addons/", line 7, in <module> File "/home/osmc/.kodi/addons/", line 32, in run, context) File "/home/osmc/.kodi/addons/", line 23, in run results = provider.navigate(context) File "/home/osmc/.kodi/addons/", line 123, in navigate result = method(context, re_match) File "/home/osmc/.kodi/addons/", line 157, in _internal_root return self.on_root(context, re_match) File "/home/osmc/.kodi/addons/", line 487, in on_root self.get_client(context) File "/home/osmc/.kodi/addons/", line 149, in get_client refresh_tokens[0]) File "/home/osmc/.kodi/addons/", line 131, in refresh_token_tv grant_type=grant_type) File "/home/osmc/.kodi/addons/", line 161, in refresh_token result =, data=post_data, headers=headers, verify=False) File "/home/osmc/.kodi/addons/", line 184, in post return _request('POST', url, data=data, json=json, **kwargs) File "/home/osmc/.kodi/addons/", line 155, in _request response = File "/usr/lib/python2.7/", line 431, in open response = self._open(req, data) File "/usr/lib/python2.7/", line 449, in _open '_open', req) File "/usr/lib/python2.7/", line 409, in _call_chain result = func(*args) File "/usr/lib/python2.7/", line 1240, in https_open context=self._context) File "/usr/lib/python2.7/", line 1197, in do_open raise URLError(err) URLError: <urlopen error [Errno -2] Name or service not known> -->End of Python script error report<-- 20:33:46 133.021286 T:3024970288 ERROR: GetDirectory - Error getting plugin:// 20:33:46 133.029099 T:3024970288 ERROR: CGUIMediaWindow::GetDirectory(plugin:// failed

After reinstalling OSMC it doesn’t work as well. :frowning:

Hope you can help me!

Many greetings from Germany,

Do you by any chance have another Kodi installation (e.g. on your laptop) with which you can confirm that the Addon generally is still working in Kodi from your network?

What version of kodi do you have?
Maybe you can download a different version of osmc and try with it?
Also what youtube addon do you have?

Almost certainly an issue with the addon. I would seek support from the Addon author. There should be a support thread somewhere in here:

(Note that there are two different Youtube addons for Kodi so check which one you are using)