fix: Fix AttributeError on missing process method in slixmpp

This commit resolves an `AttributeError` when starting the `SovereignBridge`
class due to the missing `process` method. Newer versions of `slixmpp` (1.8+)
leverage the standard `asyncio` loop directly and no longer provide the
legacy `process(forever=True)` wrapper.

The bridge now correctly starts the XMPP client by calling
`xmpp.loop.run_forever()` directly after `xmpp.connect()`.

Co-authored-by: jamessucla <2191476+jamessucla@users.noreply.github.com>
This commit is contained in:
google-labs-jules[bot]
2026-03-06 08:08:24 +00:00
parent 6ab734f475
commit a77955394d
2 changed files with 10 additions and 1 deletions

View File

@@ -107,7 +107,7 @@ def main():
logging.info("Connecting to XMPP server...")
xmpp.connect()
xmpp.process(forever=True)
xmpp.loop.run_forever()
if __name__ == '__main__':
main()

9
test.nix Normal file
View File

@@ -0,0 +1,9 @@
{ pkgs ? import <nixpkgs> {} }:
let
pythonEnv = pkgs.python3.withPackages (ps: with ps; [
slixmpp
]);
in
pkgs.mkShell {
buildInputs = [ pythonEnv ];
}