CaliDog / certstream-python

Python library for connecting to CertStream
MIT License
426 stars 72 forks source link

module 'certstream' has no attribute 'listen_for_events' #15

Closed bedford1234 closed 6 years ago

bedford1234 commented 6 years ago

Hello,

I'm trying to use CertStream with a proxy, however I get this error message.

Traceback (most recent call last): File "certstream.py", line 1, in import certstream File "/home/.../certstream.py", line 6, in AttributeError: module 'certstream' has no attribute 'listen_for_events'

Does anyone know a solution to this problem?

ghost commented 6 years ago

You have a file called certstream.py in your local directory, which masks the actual certstream library. Simply rename the file.

bedford1234 commented 6 years ago

@wagner-certat Thanks for your help. I was able to fix that error but now I have a different error.

[ERROR:root] 2018-06-22 14:49:11,224 - Error connecting to CertStream - [Errno -2] Name or service not known - Sleeping for a few seconds and trying again...

Any idea of what the problem is?

swedishmike commented 6 years ago

@bedford1234 Not sure if you've fixed this second issue yet, but [Errno -2] Name or service not known is basically a name resolution problem in most cases. Is name resolution working properly on the host you're testing this on?

Fitblip commented 6 years ago

Hey all, I think this is addressed with the recently released downgrade to websocket-client==0.48.0.

Please let me know if you have further issues!

ghost commented 6 years ago

So it is not planned to support websocket-client >= 0.48.0?

Fitblip commented 6 years ago

@wagner-certat - not unless there's a compelling reason like a security issue or some other critical bug.