SSL not available in watson-developer-cloud example microphone-speech-to-text.pyImportError: libOpenNI.so: cannot open shared object file: No such file or directoryDownloading Qiime to CentOS6.4. Having problems with python versionWatson speech-to-text numericalsIBM Watson text-to-speech curl example not workingWatson text to speech latencyDeleting multiple intents with watson-developer-cloud nodejs sdkWatson 'Speech to text' not recognizing microphone input properlySSL Error executing IBM Watson Python SDKversion `GLIBCXX_3.4.21' not found on Gentoojavax.net.ssl.SSLHandshakeException from IBM's Watson assistant API

Help, I cannot decide when to start the story

Possible to ground-fault protect both legs of a MWBC with two single-pole breakers?

How much can I judge a company based on a phone screening?

crippling fear of hellfire &, damnation, please help?

Why command hierarchy, if the chain of command is standing next to each other?

Does EU compensation apply to flights where the departure airport closes check-in counters during protests?

Swap on SSD in 2019?

How do I call a 6-digit Australian phone number with a US-based mobile phone?

How can God warn people of the upcoming rapture without disrupting society?

How would timezones work on a planet 100 times the size of our Earth

Are there any other rule mechanics that could grant Thieves' Cant?

Why did IBM make public the PC BIOS source code?

What is the difference between 王 and 皇?

Boss wants me to ignore a software API license prohibiting mass download

What are those bumps on top of the Antonov-225?

How can I see if the data in a SQL Server table is page-compressed?

Boss asked a co-worker to assault me

Why aren’t there water shutoff valves for each room?

Case Condition for two lines

Do beef farmed pastures net remove carbon emissions?

Installing Windows to flash BIOS, then reinstalling Ubuntu

Scam? Phone call from "Department of Social Security" asking me to call back

If "more guns less crime", how do gun advocates explain that the EU has less crime than the US?

What can Amex do if I cancel their card after using the sign up bonus miles?



SSL not available in watson-developer-cloud example microphone-speech-to-text.py


ImportError: libOpenNI.so: cannot open shared object file: No such file or directoryDownloading Qiime to CentOS6.4. Having problems with python versionWatson speech-to-text numericalsIBM Watson text-to-speech curl example not workingWatson text to speech latencyDeleting multiple intents with watson-developer-cloud nodejs sdkWatson 'Speech to text' not recognizing microphone input properlySSL Error executing IBM Watson Python SDKversion `GLIBCXX_3.4.21' not found on Gentoojavax.net.ssl.SSLHandshakeException from IBM's Watson assistant API






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















Hello i try to get the following example running:



microphone-speech-to-text



I run this python script on Gentoo Linux device with a Python 2.7.6.
The device is connected to the internet via a mobile Hotspot from my mobile phone.



Unfortunately it does not work and get the following output:




Enter CTRL+C to end recording...

Error received: SSL not available.

Connection closed




I ran the script on my windows and it worked fine.



SSL libs are installed:



ldconfig -p | grep ssl
vocon_ssl.so (libc6) => /opt/aldebaran/lib/vocon_ssl.so
libssl.so.1.0.0 (libc6) => /usr/lib/libssl.so.1.0.0
libssl.so (libc6) => /usr/lib/libssl.so
libgnutls-openssl.so.27 (libc6) => /usr/lib/libgnutls-openssl.so.27
libgnutls-openssl.so (libc6) => /usr/lib/libgnutls-openssl.so
libevent_openssl-2.0.so.5 (libc6) => /usr/lib/libevent_openssl-2.0.so.5


If i run another example (speech_to_text_v1)
I get the correct result from watson followed by:




Error received: SSL not available.




Does anybody have an idea what could be the issue here?



Thanks










share|improve this question
































    1















    Hello i try to get the following example running:



    microphone-speech-to-text



    I run this python script on Gentoo Linux device with a Python 2.7.6.
    The device is connected to the internet via a mobile Hotspot from my mobile phone.



    Unfortunately it does not work and get the following output:




    Enter CTRL+C to end recording...

    Error received: SSL not available.

    Connection closed




    I ran the script on my windows and it worked fine.



    SSL libs are installed:



    ldconfig -p | grep ssl
    vocon_ssl.so (libc6) => /opt/aldebaran/lib/vocon_ssl.so
    libssl.so.1.0.0 (libc6) => /usr/lib/libssl.so.1.0.0
    libssl.so (libc6) => /usr/lib/libssl.so
    libgnutls-openssl.so.27 (libc6) => /usr/lib/libgnutls-openssl.so.27
    libgnutls-openssl.so (libc6) => /usr/lib/libgnutls-openssl.so
    libevent_openssl-2.0.so.5 (libc6) => /usr/lib/libevent_openssl-2.0.so.5


    If i run another example (speech_to_text_v1)
    I get the correct result from watson followed by:




    Error received: SSL not available.




    Does anybody have an idea what could be the issue here?



    Thanks










    share|improve this question




























      1












      1








      1








      Hello i try to get the following example running:



      microphone-speech-to-text



      I run this python script on Gentoo Linux device with a Python 2.7.6.
      The device is connected to the internet via a mobile Hotspot from my mobile phone.



      Unfortunately it does not work and get the following output:




      Enter CTRL+C to end recording...

      Error received: SSL not available.

      Connection closed




      I ran the script on my windows and it worked fine.



      SSL libs are installed:



      ldconfig -p | grep ssl
      vocon_ssl.so (libc6) => /opt/aldebaran/lib/vocon_ssl.so
      libssl.so.1.0.0 (libc6) => /usr/lib/libssl.so.1.0.0
      libssl.so (libc6) => /usr/lib/libssl.so
      libgnutls-openssl.so.27 (libc6) => /usr/lib/libgnutls-openssl.so.27
      libgnutls-openssl.so (libc6) => /usr/lib/libgnutls-openssl.so
      libevent_openssl-2.0.so.5 (libc6) => /usr/lib/libevent_openssl-2.0.so.5


      If i run another example (speech_to_text_v1)
      I get the correct result from watson followed by:




      Error received: SSL not available.




      Does anybody have an idea what could be the issue here?



      Thanks










      share|improve this question
















      Hello i try to get the following example running:



      microphone-speech-to-text



      I run this python script on Gentoo Linux device with a Python 2.7.6.
      The device is connected to the internet via a mobile Hotspot from my mobile phone.



      Unfortunately it does not work and get the following output:




      Enter CTRL+C to end recording...

      Error received: SSL not available.

      Connection closed




      I ran the script on my windows and it worked fine.



      SSL libs are installed:



      ldconfig -p | grep ssl
      vocon_ssl.so (libc6) => /opt/aldebaran/lib/vocon_ssl.so
      libssl.so.1.0.0 (libc6) => /usr/lib/libssl.so.1.0.0
      libssl.so (libc6) => /usr/lib/libssl.so
      libgnutls-openssl.so.27 (libc6) => /usr/lib/libgnutls-openssl.so.27
      libgnutls-openssl.so (libc6) => /usr/lib/libgnutls-openssl.so
      libevent_openssl-2.0.so.5 (libc6) => /usr/lib/libevent_openssl-2.0.so.5


      If i run another example (speech_to_text_v1)
      I get the correct result from watson followed by:




      Error received: SSL not available.




      Does anybody have an idea what could be the issue here?



      Thanks







      python-2.7 ibm-watson gentoo watson-assistant






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 27 at 16:07







      TVK

















      asked Mar 27 at 10:13









      TVKTVK

      6215 silver badges15 bronze badges




      6215 silver badges15 bronze badges

























          2 Answers
          2






          active

          oldest

          votes


















          2














          I could get rid of the "SSL not available" error by



          pip install backports.ssl-match-hostname


          I got this hint from here.



          Also here is mentioned that websocket_client depends on backports.ssl-match-hostname for Python 2.x



          After installing the package i got:



          Error received: _ssl.c:334: No root certificates specified for verification of o 
          ther-side certificates.


          This could be fixed temporarily by calling disable_SSL_verification() of SpeechToTextV1 before the processing.



          To fix it in the long term an approach could be downgrading the websocket-client library to 0.47.0 link1 link2






          share|improve this answer


































            0














            If I were to hazard a guess it would be that your Gentoo Linux device hasn't been setup with the appropriate TLS / SSL libraries. As a test run a list models request through cURL on your device, as per the API documentation - https://cloud.ibm.com/apidocs/speech-to-text#list-models



            curl -X GET -u "apikey:apikey" "https://stream.watsonplatform.net/speech-to-text/api/v1/models"


            That is going over TLS so, if you can get that to work, you may have better luck with the python application.






            share|improve this answer

























            • Hi Thanks for your answer. I tried the cURL command and it actually works fine. Do you have another harzard guess? :-) I have no idea where the "SSL not available" is actually coming from. ... Btw the Gentoo is in deed old and not updated But that shouldnt be the problem i guess

              – TVK
              Mar 27 at 15:37












            • In that case it might be down to a downstream python dependancy.

              – chughts
              Mar 27 at 16:00











            • I dont understand What do you mean by downstream dependency? Pip libs are all installed and same version as on working windows system. Any idea how to debug, find out whats wrong?

              – TVK
              Mar 27 at 16:08







            • 1





              The example you are running requires watson_developer_cloud, which in turn requires requests and web socket-client. requests requirements are complex but include pyOpenSS, cryptography and idna. Somewhere down the line your environment will be missing a pre-requisite. This may not be a pypi module, but something in the OS that a pypi module requires. In short I think you will not be able to run any python app that goes to a TLS address using requests.

              – chughts
              Mar 28 at 9:56













            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55374700%2fssl-not-available-in-watson-developer-cloud-example-microphone-speech-to-text-py%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            I could get rid of the "SSL not available" error by



            pip install backports.ssl-match-hostname


            I got this hint from here.



            Also here is mentioned that websocket_client depends on backports.ssl-match-hostname for Python 2.x



            After installing the package i got:



            Error received: _ssl.c:334: No root certificates specified for verification of o 
            ther-side certificates.


            This could be fixed temporarily by calling disable_SSL_verification() of SpeechToTextV1 before the processing.



            To fix it in the long term an approach could be downgrading the websocket-client library to 0.47.0 link1 link2






            share|improve this answer































              2














              I could get rid of the "SSL not available" error by



              pip install backports.ssl-match-hostname


              I got this hint from here.



              Also here is mentioned that websocket_client depends on backports.ssl-match-hostname for Python 2.x



              After installing the package i got:



              Error received: _ssl.c:334: No root certificates specified for verification of o 
              ther-side certificates.


              This could be fixed temporarily by calling disable_SSL_verification() of SpeechToTextV1 before the processing.



              To fix it in the long term an approach could be downgrading the websocket-client library to 0.47.0 link1 link2






              share|improve this answer





























                2












                2








                2







                I could get rid of the "SSL not available" error by



                pip install backports.ssl-match-hostname


                I got this hint from here.



                Also here is mentioned that websocket_client depends on backports.ssl-match-hostname for Python 2.x



                After installing the package i got:



                Error received: _ssl.c:334: No root certificates specified for verification of o 
                ther-side certificates.


                This could be fixed temporarily by calling disable_SSL_verification() of SpeechToTextV1 before the processing.



                To fix it in the long term an approach could be downgrading the websocket-client library to 0.47.0 link1 link2






                share|improve this answer















                I could get rid of the "SSL not available" error by



                pip install backports.ssl-match-hostname


                I got this hint from here.



                Also here is mentioned that websocket_client depends on backports.ssl-match-hostname for Python 2.x



                After installing the package i got:



                Error received: _ssl.c:334: No root certificates specified for verification of o 
                ther-side certificates.


                This could be fixed temporarily by calling disable_SSL_verification() of SpeechToTextV1 before the processing.



                To fix it in the long term an approach could be downgrading the websocket-client library to 0.47.0 link1 link2







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Mar 28 at 11:04

























                answered Mar 28 at 9:02









                TVKTVK

                6215 silver badges15 bronze badges




                6215 silver badges15 bronze badges


























                    0














                    If I were to hazard a guess it would be that your Gentoo Linux device hasn't been setup with the appropriate TLS / SSL libraries. As a test run a list models request through cURL on your device, as per the API documentation - https://cloud.ibm.com/apidocs/speech-to-text#list-models



                    curl -X GET -u "apikey:apikey" "https://stream.watsonplatform.net/speech-to-text/api/v1/models"


                    That is going over TLS so, if you can get that to work, you may have better luck with the python application.






                    share|improve this answer

























                    • Hi Thanks for your answer. I tried the cURL command and it actually works fine. Do you have another harzard guess? :-) I have no idea where the "SSL not available" is actually coming from. ... Btw the Gentoo is in deed old and not updated But that shouldnt be the problem i guess

                      – TVK
                      Mar 27 at 15:37












                    • In that case it might be down to a downstream python dependancy.

                      – chughts
                      Mar 27 at 16:00











                    • I dont understand What do you mean by downstream dependency? Pip libs are all installed and same version as on working windows system. Any idea how to debug, find out whats wrong?

                      – TVK
                      Mar 27 at 16:08







                    • 1





                      The example you are running requires watson_developer_cloud, which in turn requires requests and web socket-client. requests requirements are complex but include pyOpenSS, cryptography and idna. Somewhere down the line your environment will be missing a pre-requisite. This may not be a pypi module, but something in the OS that a pypi module requires. In short I think you will not be able to run any python app that goes to a TLS address using requests.

                      – chughts
                      Mar 28 at 9:56















                    0














                    If I were to hazard a guess it would be that your Gentoo Linux device hasn't been setup with the appropriate TLS / SSL libraries. As a test run a list models request through cURL on your device, as per the API documentation - https://cloud.ibm.com/apidocs/speech-to-text#list-models



                    curl -X GET -u "apikey:apikey" "https://stream.watsonplatform.net/speech-to-text/api/v1/models"


                    That is going over TLS so, if you can get that to work, you may have better luck with the python application.






                    share|improve this answer

























                    • Hi Thanks for your answer. I tried the cURL command and it actually works fine. Do you have another harzard guess? :-) I have no idea where the "SSL not available" is actually coming from. ... Btw the Gentoo is in deed old and not updated But that shouldnt be the problem i guess

                      – TVK
                      Mar 27 at 15:37












                    • In that case it might be down to a downstream python dependancy.

                      – chughts
                      Mar 27 at 16:00











                    • I dont understand What do you mean by downstream dependency? Pip libs are all installed and same version as on working windows system. Any idea how to debug, find out whats wrong?

                      – TVK
                      Mar 27 at 16:08







                    • 1





                      The example you are running requires watson_developer_cloud, which in turn requires requests and web socket-client. requests requirements are complex but include pyOpenSS, cryptography and idna. Somewhere down the line your environment will be missing a pre-requisite. This may not be a pypi module, but something in the OS that a pypi module requires. In short I think you will not be able to run any python app that goes to a TLS address using requests.

                      – chughts
                      Mar 28 at 9:56













                    0












                    0








                    0







                    If I were to hazard a guess it would be that your Gentoo Linux device hasn't been setup with the appropriate TLS / SSL libraries. As a test run a list models request through cURL on your device, as per the API documentation - https://cloud.ibm.com/apidocs/speech-to-text#list-models



                    curl -X GET -u "apikey:apikey" "https://stream.watsonplatform.net/speech-to-text/api/v1/models"


                    That is going over TLS so, if you can get that to work, you may have better luck with the python application.






                    share|improve this answer













                    If I were to hazard a guess it would be that your Gentoo Linux device hasn't been setup with the appropriate TLS / SSL libraries. As a test run a list models request through cURL on your device, as per the API documentation - https://cloud.ibm.com/apidocs/speech-to-text#list-models



                    curl -X GET -u "apikey:apikey" "https://stream.watsonplatform.net/speech-to-text/api/v1/models"


                    That is going over TLS so, if you can get that to work, you may have better luck with the python application.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Mar 27 at 15:06









                    chughtschughts

                    1,4581 gold badge5 silver badges18 bronze badges




                    1,4581 gold badge5 silver badges18 bronze badges















                    • Hi Thanks for your answer. I tried the cURL command and it actually works fine. Do you have another harzard guess? :-) I have no idea where the "SSL not available" is actually coming from. ... Btw the Gentoo is in deed old and not updated But that shouldnt be the problem i guess

                      – TVK
                      Mar 27 at 15:37












                    • In that case it might be down to a downstream python dependancy.

                      – chughts
                      Mar 27 at 16:00











                    • I dont understand What do you mean by downstream dependency? Pip libs are all installed and same version as on working windows system. Any idea how to debug, find out whats wrong?

                      – TVK
                      Mar 27 at 16:08







                    • 1





                      The example you are running requires watson_developer_cloud, which in turn requires requests and web socket-client. requests requirements are complex but include pyOpenSS, cryptography and idna. Somewhere down the line your environment will be missing a pre-requisite. This may not be a pypi module, but something in the OS that a pypi module requires. In short I think you will not be able to run any python app that goes to a TLS address using requests.

                      – chughts
                      Mar 28 at 9:56

















                    • Hi Thanks for your answer. I tried the cURL command and it actually works fine. Do you have another harzard guess? :-) I have no idea where the "SSL not available" is actually coming from. ... Btw the Gentoo is in deed old and not updated But that shouldnt be the problem i guess

                      – TVK
                      Mar 27 at 15:37












                    • In that case it might be down to a downstream python dependancy.

                      – chughts
                      Mar 27 at 16:00











                    • I dont understand What do you mean by downstream dependency? Pip libs are all installed and same version as on working windows system. Any idea how to debug, find out whats wrong?

                      – TVK
                      Mar 27 at 16:08







                    • 1





                      The example you are running requires watson_developer_cloud, which in turn requires requests and web socket-client. requests requirements are complex but include pyOpenSS, cryptography and idna. Somewhere down the line your environment will be missing a pre-requisite. This may not be a pypi module, but something in the OS that a pypi module requires. In short I think you will not be able to run any python app that goes to a TLS address using requests.

                      – chughts
                      Mar 28 at 9:56
















                    Hi Thanks for your answer. I tried the cURL command and it actually works fine. Do you have another harzard guess? :-) I have no idea where the "SSL not available" is actually coming from. ... Btw the Gentoo is in deed old and not updated But that shouldnt be the problem i guess

                    – TVK
                    Mar 27 at 15:37






                    Hi Thanks for your answer. I tried the cURL command and it actually works fine. Do you have another harzard guess? :-) I have no idea where the "SSL not available" is actually coming from. ... Btw the Gentoo is in deed old and not updated But that shouldnt be the problem i guess

                    – TVK
                    Mar 27 at 15:37














                    In that case it might be down to a downstream python dependancy.

                    – chughts
                    Mar 27 at 16:00





                    In that case it might be down to a downstream python dependancy.

                    – chughts
                    Mar 27 at 16:00













                    I dont understand What do you mean by downstream dependency? Pip libs are all installed and same version as on working windows system. Any idea how to debug, find out whats wrong?

                    – TVK
                    Mar 27 at 16:08






                    I dont understand What do you mean by downstream dependency? Pip libs are all installed and same version as on working windows system. Any idea how to debug, find out whats wrong?

                    – TVK
                    Mar 27 at 16:08





                    1




                    1





                    The example you are running requires watson_developer_cloud, which in turn requires requests and web socket-client. requests requirements are complex but include pyOpenSS, cryptography and idna. Somewhere down the line your environment will be missing a pre-requisite. This may not be a pypi module, but something in the OS that a pypi module requires. In short I think you will not be able to run any python app that goes to a TLS address using requests.

                    – chughts
                    Mar 28 at 9:56





                    The example you are running requires watson_developer_cloud, which in turn requires requests and web socket-client. requests requirements are complex but include pyOpenSS, cryptography and idna. Somewhere down the line your environment will be missing a pre-requisite. This may not be a pypi module, but something in the OS that a pypi module requires. In short I think you will not be able to run any python app that goes to a TLS address using requests.

                    – chughts
                    Mar 28 at 9:56

















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55374700%2fssl-not-available-in-watson-developer-cloud-example-microphone-speech-to-text-py%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현