Coder Social home page Coder Social logo

unexpected keyword argument 'max_retries' on matrix-puppet-hangouts status message after starting about matrix-puppet-hangouts HOT 8 CLOSED

matrix-hacks avatar matrix-hacks commented on June 12, 2024
unexpected keyword argument 'max_retries' on matrix-puppet-hangouts status message after starting

from matrix-puppet-hangouts.

Comments (8)

tfreedman avatar tfreedman commented on June 12, 2024

I get the exact same thing in the Hangouts Protocol room whenever I attempt to run this:

Starting hangouts bridge! 
Attempting main loop...

Traceback (most recent call last):
File "hangups_client.py", line 252, in
 run_example(listen_events)
File "hangups_client.py", line 71, in run_example
client = hangups.Client(cookies, max_retries=float('inf'), retry_backoff_base=1.2)
TypeError: init() got an unexpected keyword argument 'max_retries'


from matrix-puppet-hangouts.

MurzNN avatar MurzNN commented on June 12, 2024

Also I see another keyword argument in logs:

    run_example(listen_events)
  File "hangups_client.py", line 71, in run_example
    client = hangups.Client(cookies, max_retries=float('inf'), retry_backoff_base=1.2)
TypeError: __init__() got an unexpected keyword argument 'retry_backoff_base'

from matrix-puppet-hangouts.

AndrewJDR avatar AndrewJDR commented on June 12, 2024

Sorry for not getting back to you guys earlier on this. The problem is a simple one: You need a newer version of hangups. I don't think @tdryer has gotten around to making a new release yet, so you'll need to grab the git version of hangups and run the bridge using that. To do so, you need to clone https://github.com/tdryer/hangups and run that in a venv, then launch the bridge as usual.

If you're not up for all that, you can just run an older commit of matrix-puppet-hangouts, such as 75bf56e. The downside of this approach is that it's not going to be as reliable when it comes to reconnecting to the hangouts server when you get disconnected.

@tdryer, any chance a new hangups release can happen at some point to make this process easier for folks?

from matrix-puppet-hangouts.

MurzNN avatar MurzNN commented on June 12, 2024

@AndrewJDR thanks for reply, can you describe more details about how to run hangups in venv? As I understand, hangups_client.py must use hangups from pip that have older version.

from matrix-puppet-hangouts.

MurzNN avatar MurzNN commented on June 12, 2024

Also after revert back to commit 75bf56e - I got the errors too:

Traceback (most recent call last):
  File "hangups_client.py", line 252, in 
    run_example(listen_events)
  File "hangups_client.py", line 71, in run_example
    client = hangups.Client(cookies, max_retries=float('inf'), retry_backoff_base=1.2)
TypeError: __init__() got an unexpected keyword argument 'retry_backoff_base'

from matrix-puppet-hangouts.

AndrewJDR avatar AndrewJDR commented on June 12, 2024

@MurzNN

Also after revert back to commit 75bf56e - I got the errors too:

If you look at hangups_client.py at that 75bf56e, you'll see it doesn't contain any reference to max_retries, so you must've executed your git commands incorrectly:
https://github.com/matrix-hacks/matrix-puppet-hangouts/blob/75bf56e5776ec5af7719aa9d589502571644cf9c/hangups_client.py
You'll want to double check that you ran your git commands correctly (e.g. you could use something like git reset --hard 75bf56e).

My script to build a venv looks like this (should be run from inside your hangups git checkout):

#!/bin/bash                                                                                                                                           
python3 -m venv venv
venv/bin/pip install --upgrade pip 
venv/bin/python3 setup.py install

then I activate the venv like this from bash:

source <your hangups dir>/venv/bin/activate

Then immediately after that, I run matrix-puppet-hangouts as usual.

from matrix-puppet-hangouts.

tdryer avatar tdryer commented on June 12, 2024

@tdryer, any chance a new hangups release can happen at some point to make this process easier for folks?

Sure. Released hangups 0.4.3.

from matrix-puppet-hangouts.

MurzNN avatar MurzNN commented on June 12, 2024

@tdryer Thanks, updated via pip and all works well!

from matrix-puppet-hangouts.

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.