Closed hal9174 closed 9 years ago
Anyone knows why I get this error when I execute the script? please help me
help me please
finally I solved myself this error but now I have another another one : this time in log file (see in issue list) please help me!
If you have this error msg [SSL: CERTIFICATE_VERIFY_FAILED]
here is the solution :
import ssl
at the topcontext = ssl._create_unverified_context()
res = urllib2.urlopen(f, data, context=context)
python plex-tvst-scrobbler.py
== Requesting tvshowtime.com auth == Traceback (most recent call last): File "plex-tvst-scrobbler.py", line 98, in
tvst.tvst_auth()
File "/share/CACHEDEV1_DATA/.qpkg/Python/lib/python2.7/site-packages/plex_tvst_scrobbler/tvst.py", line 100, in tvst_auth
auth_infos = self._get_auth_infos()
File "/share/CACHEDEV1_DATA/.qpkg/Python/lib/python2.7/site-packages/plex_tvst_scrobbler/tvst.py", line 56, in _get_auth_infos
res = self._do_tvst_post(url, urllib.urlencode(args))
File "/share/CACHEDEV1_DATA/.qpkg/Python/lib/python2.7/site-packages/plex_tvst_scrobbler/tvst.py", line 40, in _do_tvst_post
res = urllib2.urlopen(f, data)
File "/share/CACHEDEV1_DATA/.qpkg/Python/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/share/CACHEDEV1_DATA/.qpkg/Python/lib/python2.7/urllib2.py", line 431, in open
response = self._open(req, data)
File "/share/CACHEDEV1_DATA/.qpkg/Python/lib/python2.7/urllib2.py", line 449, in _open
'_open', req)
File "/share/CACHEDEV1_DATA/.qpkg/Python/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/share/CACHEDEV1_DATA/.qpkg/Python/lib/python2.7/urllib2.py", line 1240, in https_open
context=self._context)
File "/share/CACHEDEV1_DATA/.qpkg/Python/lib/python2.7/urllib2.py", line 1197, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)>