Comments (16)
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.
@chrisdoman any update on this.
from otx-python-sdk.
@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.
Thanks npormambi. No update yet but I am looking into it and will update soon.
from otx-python-sdk.
@chrisdoman working with python 2.7 and ubuntu 14.04, but still getting the same error.
from otx-python-sdk.
What is the output of python --version
and python -c "import ssl; print ssl.OPENSSL_VERSION"
?
from otx-python-sdk.
@alaaalii please check the required output belo
from otx-python-sdk.
@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.
@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
ithubusercontent.com/assets/16058609/24035483/bea39ada-0b1b-11e7-8a32-5adf6a8abd59.png)
from otx-python-sdk.
@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.
@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.
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.
@wagner-certat
Please find the below outputs
from otx-python-sdk.
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.
from otx-python-sdk.
Then both are the same and the assumption by @alaaalii can't be proven.
from otx-python-sdk.
Related Issues (20)
- AttributeError: 'NoneType' object has no attribute 'read' HOT 15
- Pulse Search Limitation HOT 2
- Timeout Issue with get_indicator_details_full HOT 2
- Throttling During High Volume Ingestion
- Allow requests library to take verify and cert parameters HOT 7
- 504 error when using otx.getall() method
- Python API is not returning whitelisted validation for IPv4 HOT 1
- otx.getall() having error "Exceeded maximum number of retries" HOT 9
- Gameplay HOT 1
- Pulling Private Pulses HOT 2
- Add version method to API and call in OTXv2 init method HOT 1
- No results retruned in get_indicator_details_full for IndicatorTypes.EMAIL
- Error 504 triying to get indicators HOT 2
- get_my_pulses() function forms invalid API call URL, returns empty list. HOT 1
- Sorting of response HOT 3
- getall API not working ! HOT 1
- Export API not supported anymore as per docs HOT 5
- is_malicious.py "ResourceWarning"
- Otx
- Provide a documentation of functions for the OTXv2.py file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from otx-python-sdk.