Comments (8)
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.
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.
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.
@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.
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.
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, 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.
@tdryer Thanks, updated via pip and all works well!
from matrix-puppet-hangouts.
Related Issues (20)
- Support multiple users HOT 1
- Add support for matrix-puppet-server HOT 3
- Messages from bridge not going out to hangouts HOT 1
- Bridge update HOT 3
- Asyncio line gives SyntaxError: invalid syntax HOT 1
- Random crashes
- "please implement sendReadReceiptAsPuppetToThirdPartyRoomWithId" HOT 3
- Authorization code cookie not found (javascript needed error in lynx) HOT 1
- crash after changing room name HOT 1
- crash with rapid message send / respond HOT 3
- Unexpected token HOT 6
- Req: `-c` and `--config` to provide path to config.json HOT 1
- Req: Interpret mentions from Hangouts users
- SyntaxError: Unexpected token { HOT 1
- Token creation fail is the cache folder does not exist
- lock base to 1.9.1 HOT 1
- Unknown verification code input HOT 1
- No ability to start new chats with Hangouts users
- Long-polling request failed: Request connection error: Response payload is not completed HOT 5
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 matrix-puppet-hangouts.