(2016-09-12, 06:15)candrews Wrote: [ -> ]I'm getting this error using Youtube addon version 5.2.2 (which is the latest as of right now) when I try to play any Youtube video (I'm using Kodi 17b1):
Code:
00:09:38 T:140236714555136 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'cryptography.exceptions.InternalError'>
Error Contents: Unknown OpenSSL error. This error is commonly encountered when another library is not cleaning up the OpenSSL error stack. If you are using cryptography with another library that uses OpenSSL try disabling it before reporting a bug. Otherwise please file an issue at https://github.com/pyca/cryptography/issues with information on how to reproduce this. ([_OpenSSLErrorWithText(code=336462231L, lib=20, func=224, reason=407, reason_text='error:140E0197:SSL routines:SSL_shutdown:shutdown while in init')])
Traceback (most recent call last):
File "/home/mythtv/.kodi/addons/plugin.video.youtube-5-0-2/default.py", line 4, in <module>
from resources.lib import youtube
File "/home/mythtv/.kodi/addons/plugin.video.youtube-5-0-2/resources/lib/youtube/__init__.py", line 5, in <module>
from .provider import Provider
File "/home/mythtv/.kodi/addons/plugin.video.youtube-5-0-2/resources/lib/youtube/provider.py", line 9, in <module>
from resources.lib.youtube.client import YouTube
File "/home/mythtv/.kodi/addons/plugin.video.youtube-5-0-2/resources/lib/youtube/client/__init__.py", line 5, in <module>
from .youtube import YouTube
File "/home/mythtv/.kodi/addons/plugin.video.youtube-5-0-2/resources/lib/youtube/client/youtube.py", line 5, in <module>
import requests
File "/home/mythtv/.kodi/addons/script.module.requests/lib/requests/__init__.py", line 53, in <module>
from .packages.urllib3.contrib import pyopenssl
File "/home/mythtv/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/contrib/pyopenssl.py", line 54, in <module>
import OpenSSL.SSL
File "/usr/lib64/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import rand, crypto, SSL
File "/usr/lib64/python2.7/site-packages/OpenSSL/rand.py", line 12, in <module>
from OpenSSL._util import (
File "/usr/lib64/python2.7/site-packages/OpenSSL/_util.py", line 6, in <module>
from cryptography.hazmat.bindings.openssl.binding import Binding
File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 225, in <module>
Binding.init_static_locks()
File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 181, in init_static_locks
cls._ensure_ffi_initialized()
File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 176, in _ensure_ffi_initialized
cls._register_osrandom_engine()
File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 141, in _register_osrandom_engine
_openssl_assert(cls.lib, cls.lib.ERR_peek_error() == 0)
File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 63, in _openssl_assert
errors_with_text
InternalError: Unknown OpenSSL error. This error is commonly encountered when another library is not cleaning up the OpenSSL error stack. If you are using cryptography with another library that uses OpenSSL try disabling it before reporting a bug. Otherwise please file an issue at https://github.com/pyca/cryptography/issues with information on how to reproduce this. ([_OpenSSLErrorWithText(code=336462231L, lib=20, func=224, reason=407, reason_text='error:140E0197:SSL routines:SSL_shutdown:shutdown while in init')])
-->End of Python script error report<--
I found https://github.com/openssl/openssl/issues/710 which mentions that OpenSSL now reports this erroroneous behavior as an error instead of ignoring it. (I'm using OpenSSL 1.0.2h.)
Does anyone have a fix or workaround?
Thanks!
I have a similar error. It happened after upgrading to latest python2.7 in Debian testing. Same with the TED-plugin.
Code:
20:52:57 T:140471825164032 NOTICE: Previous line repeats 1 times.
20:52:57 T:140471825164032 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 0] Error>
Traceback (most recent call last):
File "/home/dencrypt/.kodi/addons/plugin.video.youtube/default.py", line 7, in <module>
runner.run(__provider__)
File "/home/dencrypt/.kodi/addons/plugin.video.youtube/resources/lib/kodion/runner.py", line 32, in run
__RUNNER__.run(provider, context)
File "/home/dencrypt/.kodi/addons/plugin.video.youtube/resources/lib/kodion/impl/xbmc/xbmc_runner.py", line 23, in run
results = provider.navigate(context)
File "/home/dencrypt/.kodi/addons/plugin.video.youtube/resources/lib/kodion/abstract_provider.py", line 123, in navigate
result = method(context, re_match)
File "/home/dencrypt/.kodi/addons/plugin.video.youtube/resources/lib/kodion/register_provider_path.py", line 12, in wrapper
return func(*args, **kwargs)
File "/home/dencrypt/.kodi/addons/plugin.video.youtube/resources/lib/youtube/provider.py", line 387, in _on_subscriptions
return yt_subscriptions.process(method, self, context, re_match)
File "/home/dencrypt/.kodi/addons/plugin.video.youtube/resources/lib/youtube/helper/yt_subscriptions.py", line 45, in process
client = provider.get_client(context)
File "/home/dencrypt/.kodi/addons/plugin.video.youtube/resources/lib/youtube/provider.py", line 153, in get_client
refresh_tokens[0])
File "/home/dencrypt/.kodi/addons/plugin.video.youtube/resources/lib/youtube/client/login_client.py", line 151, in refresh_token_tv
grant_type=grant_type)
File "/home/dencrypt/.kodi/addons/plugin.video.youtube/resources/lib/youtube/client/login_client.py", line 181, in refresh_token
result = requests.post(url, data=post_data, headers=headers, verify=False)
File "/home/dencrypt/.kodi/addons/plugin.video.youtube/resources/lib/kodion/simple_requests/api.py", line 184, in post
return _request('POST', url, data=data, json=json, **kwargs)
File "/home/dencrypt/.kodi/addons/plugin.video.youtube/resources/lib/kodion/simple_requests/api.py", line 155, in _request
response = opener.open(request)
File "/usr/lib/python2.7/urllib2.py", line 429, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 447, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1241, in https_open
context=self._context)
File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 0] Error>
-->End of Python script error report<--
20:52:57 T:140473022991168 ERROR: GetDirectory - Error getting plugin://plugin.video.youtube/subscriptions/list/
20:52:57 T:140473022991168 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/subscriptions/list/) failed