Skip to content

SSL error when import Semantics3Request #19

Description

@richardpenman

I get the following error when import Semantics3Request:

Traceback (most recent call last):
  File "product_history.py", line 6, in <module>
    from semantics3 import Products
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/semantics3/__init__.py", line 4, in <module>
    from .semantics3 import Semantics3Request
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/semantics3/semantics3.py", line 3, in <module>
    from urltools import normalize
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/urltools/__init__.py", line 1, in <module>
    from .urltools import *
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/urltools/urltools.py", line 46, in <module>
    PSL = _get_public_suffix_list()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/urltools/urltools.py", line 38, in _get_public_suffix_list
    psl_raw = unicode(urlopen(PSL_URL).read(), 'utf-8').split('\n')
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 87, in urlopen
    return opener.open(url)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 213, in open
    return getattr(self, name)(url)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 443, in open_https
    h.endheaders(data)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1038, in endheaders
    self._send_output(message_body)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 882, in _send_output
    self.send(msg)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 844, in send
    self.connect()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1263, in connect
    server_hostname=server_hostname)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 363, in wrap_socket
    _context=self)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 611, in __init__
    self.do_handshake()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 840, in do_handshake
    self._sslobj.do_handshake()
IOError: [Errno socket error] [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:661)

Are there any other dependencies that should be installed, besides the mentioned requests-oauthlib?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions