<div><h4>Issue description</h4>
<p><em>write the description here</em></p>
<p>There appears to be some sort of requests handshake issue:</p>
<p>All matching attempt leads to this:</p>
<p>Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/IMDbPY-6.6.dev20180501-py3.6.egg/imdb/parser/http/<strong>init</strong>.py", line 183, in retrieve_unicode
uopener = self.open(url)
File "/usr/local/lib/python3.6/urllib/request.py", line 1763, in open
raise OSError('socket error', msg).with_traceback(sys.exc_info()[2])
File "/usr/local/lib/python3.6/urllib/request.py", line 1757, in open
return getattr(self, name)(url)
File "/usr/local/lib/python3.6/urllib/request.py", line 1936, in open_http
return self._open_generic_http(http.client.HTTPConnection, url, data)
File "/usr/local/lib/python3.6/urllib/request.py", line 1932, in _open_generic_http
response.status, response.reason, response.msg, data)
File "/usr/local/lib/python3.6/urllib/request.py", line 1948, in http_error
result = method(url, fp, errcode, errmsg, headers)
File "/usr/local/lib/python3.6/urllib/request.py", line 2136, in http_error_302
headers, data)
File "/usr/local/lib/python3.6/urllib/request.py", line 2167, in redirect_internal
return self.open(newurl)
File "/usr/local/lib/python3.6/urllib/request.py", line 1763, in open
raise OSError('socket error', msg).with_traceback(sys.exc_info()[2])
File "/usr/local/lib/python3.6/urllib/request.py", line 1757, in open
return getattr(self, name)(url)
File "/usr/local/lib/python3.6/urllib/request.py", line 1967, in open_https
return self._open_generic_http(self._https_connection, url, data)
File "/usr/local/lib/python3.6/urllib/request.py", line 1916, in _open_generic_http
http_conn.request("GET", selector, headers=headers)
File "/usr/local/lib/python3.6/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.6/http/client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.6/http/client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.6/http/client.py", line 1026, in _send_output
self.send(msg)
File "/usr/local/lib/python3.6/http/client.py", line 964, in send
self.connect()
File "/usr/local/lib/python3.6/http/client.py", line 1400, in connect
server_hostname=server_hostname)
File "/usr/local/lib/python3.6/ssl.py", line 407, in wrap_socket
_context=self, _session=session)
File "/usr/local/lib/python3.6/ssl.py", line 814, in <strong>init</strong>
self.do_handshake()
File "/usr/local/lib/python3.6/ssl.py", line 1068, in do_handshake
self._sslobj.do_handshake()
File "/usr/local/lib/python3.6/ssl.py", line 689, in do_handshake
self._sslobj.do_handshake()
OSError: [Errno socket error] [Errno socket error] EOF occurred in violation of protocol (_ssl.c:833)</p>
<h4>Version of IMDbPY, Python and OS</h4>
<ul><li><strong>Python:</strong> <code>python3 -V</code> or, if you are using Python 2, <code>python -V</code></li><li><strong>IMDbPY:</strong> <code>python3 -c 'import imdb ; print(imdb.VERSION)'</code> or, if you are using Python 2, <code>python -c 'import imdb ; print(imdb.VERSION)'</code></li><li><strong>OS:</strong> <code>python -c 'import platform ; print(platform.uname())'</code></li></ul>
<p>python - Python 3.6.5rc1
imdbpy - 6.6dev20180415
OS - uname_result(system='Linux', node='ushapld00167.stg-tfayd.com', release='2.6.32-573.26.1.el6.x86_64', version='#1 SMP Tue May 3 12:39:43 PDT 2016', machine='x86_64', processor='x86_64')</p>
<h4>Steps to reproduce the issue</h4>
<p><em>if possible, provide a minimal code to reproduce the problem</em></p>
<pre><code>
#!python
# your code here
</code></pre>
<p>ia = imdb.IMDb()
ia.set_proxy(proxy)
results = ia.search_movie(title)</p>
<h4>What's the expected result?</h4>
<p>-A search for movies.</p>
<h4>What's the actual result?</h4>
<ul><li>SSL handshake issues.</li></ul>
<h4>Additional details</h4>
<ul><li>I've attempting force reinstalling every module I can think of.</li></ul><p>该提问来源于开源项目:alberanid/imdbpy</p></div>