SSLError: [Errno 8] Evernote

Probleme bei der Installation?
Antworten
sora1994
User
Beiträge: 2
Registriert: Mittwoch 17. April 2013, 13:33

Hallo ich bin gerade dabei das EVERNOTE SDK für Pyhton zu installieren.
Da ich hinter einem Proxy sitze, habe ich zuerst folgende Datei geändert:

THttpClient.py"

Code: Alles auswählen

ef __init__(
        self,
        uri_or_host,
        port=None,
        path=None,
        proxy_host="139.*.***.**",
        proxy_port="8080"
    ):
danach kommt jetzt immer dieser Error:

Code: Alles auswählen

 Traceback (most recent call last):
  File "C:\python\sample\client\EDAMTest.py", line 41, in <module>
    UserStoreConstants.EDAM_VERSION_MINOR
  File "C:\Python27\lib\site-packages\evernote-1.23.2-py2.7.egg\evernote\api\client.py", line 132, in delegate_method
    return targetMethod(*args, **kwargs)
  File "C:\Python27\lib\site-packages\evernote-1.23.2-py2.7.egg\evernote\edam\userstore\UserStore.py", line 398, in checkVersion
    self.send_checkVersion(clientName, edamVersionMajor, edamVersionMinor)
  File "C:\Python27\lib\site-packages\evernote-1.23.2-py2.7.egg\evernote\edam\userstore\UserStore.py", line 409, in send_checkVersion
    self._oprot.trans.flush()
  File "C:\Python27\lib\site-packages\evernote-1.23.2-py2.7.egg\thrift\transport\THttpClient.py", line 125, in _f
    result = f(*args, **kwargs)
  File "C:\Python27\lib\site-packages\evernote-1.23.2-py2.7.egg\thrift\transport\THttpClient.py", line 151, in flush
    self.__http.endheaders()
  File "C:\Python27\Lib\httplib.py", line 969, in endheaders
    self._send_output(message_body)
  File "C:\Python27\Lib\httplib.py", line 829, in _send_output
    self.send(msg)
  File "C:\Python27\Lib\httplib.py", line 791, in send
    self.connect()
  File "C:\Python27\Lib\httplib.py", line 1176, in connect
    self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
  File "C:\Python27\Lib\ssl.py", line 383, in wrap_socket
    ciphers=ciphers)
  File "C:\Python27\Lib\ssl.py", line 143, in __init__
    self.do_handshake()
  File "C:\Python27\Lib\ssl.py", line 305, in do_handshake
    self._sslobj.do_handshake()
SSLError: [Errno 8] _ssl.c:504: EOF occurred in violation of protocol
Jemand ne Idee?
BlackJack

@sora1994: Da gibt es wohl ein Problem in OpenSSL. Unter der Fehlermeldung findet man einiges im Netz, unter anderem: http://stackoverflow.com/questions/1177 ... of-protoco
sora1994
User
Beiträge: 2
Registriert: Mittwoch 17. April 2013, 13:33

Ich denke das ist ein Proxy problem bzw. Einstellungsproblem. Das was du mir geschickt hast hab ich schon alles ausprobiert.

Wo muss ich denn was einfügen? Ich habe eine 139.6.0.*** IP und habe Port 8080/443 offen.

Code: Alles auswählen

    """Http implementation of TTransport base."""

    def __init__(
        self,
        uri_or_host,
        port=None,
        path=None,
        proxy_host=None,
        proxy_port=None	
    ):
        """THttpClient supports two different types constructor parameters.

        THttpClient(host, port, path) - deprecated
        THttpClient(uri)

        Only the second supports https."""

        """THttpClient supports proxy
        THttpClient(host, port, path, proxy_host, proxy_port) - deprecated
        ThttpClient(uri, None, None, proxy_host, proxy_port)"""

Code: Alles auswählen

__all__ = ["HTTP", "HTTPResponse", "HTTPConnection",
           "HTTPException", "NotConnected", "UnknownProtocol",
           "UnknownTransferEncoding", "UnimplementedFileMode",
           "IncompleteRead", "InvalidURL", "ImproperConnectionState",
           "CannotSendRequest", "CannotSendHeader", "ResponseNotReady",
           "BadStatusLine", "error", "responses"]

HTTP_PORT = 80
HTTPS_PORT = 443

_UNKNOWN = 'UNKNOWN'
Antworten