CaliDog / certstream-python

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

FIX for: _on_message() takes 2 positional arguments but 3 were given #46

Closed mr-n30 closed 3 years ago

mr-n30 commented 3 years ago

Hello,

pip install certstream generates the following error: image

To fix it I did the following steps (You may have to use pip and pip3 just in case):

pip uninstall certstream
pip uninstall websocket-client
git clone https://github.com/CaliDog/certstream-python.git && cd certstream-python

Now edit the requirements.txt file and change websocket-client>=0.56.0 to websocket-client==0.56.0

Now run: pip install -r requirements.txt

Everything should work now. If not try the following as well: pip3 install -r requirements.txt python3 setup.py install

Now you can just run the Python script with:

python3 certstream-python/certstream/cli.py

Note I'm using Python 3.8.5

HelloXiaoTai commented 3 years ago

This method solved my problem, thank you!

christophercutajar commented 3 years ago

Seeing the same error with python 3.9.1.

[ERROR:websocket] 2021-04-28 11:57:39,876 - error from callback <bound method CertStreamClient._on_message of <certstream.core.CertStreamClient object at 0x7fc84b42c640>>: _on_message() takes 2 positional arguments but 3 were given
Fitblip commented 3 years ago

Hi folks, this should be fixed with #42

christophercutajar commented 3 years ago

Confirmed that it's working now