core
core copied to clipboard
jsonrpc: python hooks example is broken (configuring)
python ./echo_bot_with_hooks.py --email $MAIL_ADDR --password $MAIL_PW
[2024-01-02T12:21:13Z INFO deltachat_rpc_server] Starting with accounts directory `accounts`.
[2024-01-02T12:21:13Z INFO deltachat_rpc_server] Creating JSON-RPC API.
[2024-01-02T12:21:13Z INFO deltachat_rpc_server] EOF reached on stdin
Traceback (most recent call last):
File "/Users/bb/Coding/echo-bot/python_jsonrpc/./echo_bot_with_hooks.py", line 24, in <module>
run_bot_cli(hooks)
File "/Users/bb/Coding/echo-bot/python_jsonrpc/.venv/lib/python3.11/site-packages/deltachat_rpc_client/_utils.py", line 71, in run_bot_cli
_run_cli(Bot, hooks, argv, **kwargs)
File "/Users/bb/Coding/echo-bot/python_jsonrpc/.venv/lib/python3.11/site-packages/deltachat_rpc_client/_utils.py", line 107, in _run_cli
configure_thread = Thread(run=client.configure, kwargs={"email": args.email, "password": args.password})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Thread.__init__() got an unexpected keyword argument 'run'
Python version: 3.11.6
only configuring is broken, the rest works fine.