watson-developer-cloud / speech-to-text-websockets-python

Python client that interacts with the IBM Watson Speech To Text service through its WebSockets interface
http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/speech-to-text.html
86 stars 63 forks source link

Cannot Run Example #20

Closed imnotanoob closed 5 years ago

imnotanoob commented 7 years ago

Hi - I keep getting this error:

Hi, I keep getting this error:

'module' object has no attribute 'OP_NO_TLSv1_1'

Full Error is here: /usr/bin/python "/Users/vikrambaid/Desktop/projects/IBM Watson/speech-to-text-continuous-websockets/stt-watson/test.py" Traceback (most recent call last): File "/Users/vikrambaid/Desktop/projects/IBM Watson/speech-to-text-continuous-websockets/stt-watson/test.py", line 1, in from stt_watson.SttWatson import SttWatson File "/Users/vikrambaid/Desktop/projects/IBM Watson/speech-to-text-continuous-websockets/stt-watson/stt_watson/SttWatson.py", line 9, in from watson_client.Client import Client File "/Users/vikrambaid/Desktop/projects/IBM Watson/speech-to-text-continuous-websockets/stt-watson/watson_client/Client.py", line 24, in from watson_client.websocket.WSInterfaceProtocol import WSInterfaceProtocol File "/Users/vikrambaid/Desktop/projects/IBM Watson/speech-to-text-continuous-websockets/stt-watson/watson_client/websocket/WSInterfaceProtocol.py", line 6, in from twisted.internet import ssl File "/Library/Python/2.7/site-packages/twisted/internet/ssl.py", line 65, in from twisted.internet import tcp, interfaces File "/Library/Python/2.7/site-packages/twisted/internet/tcp.py", line 28, in from twisted.internet._newtls import ( File "/Library/Python/2.7/site-packages/twisted/internet/_newtls.py", line 21, in from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtocol File "/Library/Python/2.7/site-packages/twisted/protocols/tls.py", line 63, in from twisted.internet._sslverify import _setAcceptableProtocols File "/Library/Python/2.7/site-packages/twisted/internet/_sslverify.py", line 38, in TLSVersion.TLSv1_1: SSL.OP_NO_TLSv1_1, AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1'

Process finished with exit code 1