Giter Site home page Giter Site logo

Comments (16)

chrisdoman avatar chrisdoman commented on June 17, 2024 1

Hi,

I've ran the SDK on Ubuntu 14.04 with python 2.7 and I'm not getting this error.
Looking into it, this may be an issue with the OpenSSL library on your machine.

There are a couple of work arounds you might want to try, though I can't test these to confirm they will work here-

import ssl
ssl.PROTOCOL_SSLv23 = ssl.PROTOCOL_TLSv1

Thanks,

from otx-python-sdk.

npormambi avatar npormambi commented on June 17, 2024

@chrisdoman any update on this.

from otx-python-sdk.

npormambi avatar npormambi commented on June 17, 2024

@chrisdoman this is something helpful to fix the issue
http://stackoverflow.com/questions/32115607/python-3-4-ssl-error-urlopen-error-eof-occurred-in-violation-of-protocol-ssl-c

from otx-python-sdk.

chrisdoman avatar chrisdoman commented on June 17, 2024

Thanks npormambi. No update yet but I am looking into it and will update soon.

from otx-python-sdk.

npormambi avatar npormambi commented on June 17, 2024

@chrisdoman working with python 2.7 and ubuntu 14.04, but still getting the same error.
screenshot from 2017-03-06 09 13 59

from otx-python-sdk.

alaaalii avatar alaaalii commented on June 17, 2024

What is the output of python --version and python -c "import ssl; print ssl.OPENSSL_VERSION"?

from otx-python-sdk.

npormambi avatar npormambi commented on June 17, 2024

@alaaalii please check the required output belo
screenshot from 2017-03-06 15 35 06

from otx-python-sdk.

alaaalii avatar alaaalii commented on June 17, 2024

@npormambi I've also tried on Ubuntu 14.04 with the same python version and openssl. Can you try running your Python script using python otx.py not python2.7 otx.py? I'm hoping python is pointing to something else in your path.

from otx-python-sdk.

npormambi avatar npormambi commented on June 17, 2024

@alaaalii thanks a lot it worked :)
do you know whats the exact issue is in this case?
Because I want to work with python 3, how can i avoid this issue?
Just one more thing I wanna add here, some times I get the below error, but some times it works perfectly fine (at the moment its working :))
![image](https://cloud.g
otx error
ithubusercontent.com/assets/16058609/24035483/bea39ada-0b1b-11e7-8a32-5adf6a8abd59.png)

from otx-python-sdk.

alaaalii avatar alaaalii commented on June 17, 2024

@npormambi I don't understand, so you still sometimes get the error when using python otx.py? But you always get the error when you run python2.7 otx.py? What I suspected was: you might somehow have two versions of Python2.7 installed. Try rerunning the commands I mentioned earlier but using python2.7, so python2.7 --version and python2.7 -c "import ssl; print ssl.OPENSSL_VERSION" and see if it's different than what you pasted before.

If this is a machine owned by you, and it is safe to do so, I advise you to also make sure packages in your Ubuntu are up to date by running sudo apt-get update && sudo apt-get upgrade. You could also simply just remove all versions of Python and reinstall from scratch. This is obviously not the best way of troubleshooting this, but if it's working with python and not python2.7 then it's something in your setup.

from otx-python-sdk.

npormambi avatar npormambi commented on June 17, 2024

@alaaalii Thanks for the update.
Its been week now, i am not facing any issues.
If i do in future will definitely try solution suggested by you.
Thanks a lot :)

from otx-python-sdk.

 avatar commented on June 17, 2024

Also the output of alias python2.7 and which python2.7 would be interesting in comparison with the smae outputs with python instead of python2.7.

from otx-python-sdk.

npormambi avatar npormambi commented on June 17, 2024

@wagner-certat
Please find the below outputs
otx error

from otx-python-sdk.

 avatar commented on June 17, 2024

To get the target of symbolic links you can use ls -l $(which python) and ls -l $(which python2.7)

You can copy and paste the in/output from the terminal to your comment, use the code-markup.

from otx-python-sdk.

npormambi avatar npormambi commented on June 17, 2024

@wagner-certat
image

from otx-python-sdk.

 avatar commented on June 17, 2024

Then both are the same and the assumption by @alaaalii can't be proven.

from otx-python-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.