Skip to main content


A new tool for server operators and developers has arrived: nbxmpp-client lets you check and test various XMPP connection methods (and proxy configurations) while having an eye on the protocol's XML stream. Version 2.0.0 has just been released and comes with a fresh design (Gtk4+libadwaita).

#xmpp

Check out nbxmpp-client at pypi.org/project/nbxmpp-client…

#xmpp
in reply to Gajim

Ohhh, that might come in handy. I will probably test it soon. Thanks!
in reply to Gajim

I’m having some troubles getting it up and running. It’s been a while since I messed with python, so please bear in mind if I might be doing something silly :)

The error I’m getting is this:

Projects/Sandbox/nbxmpp-client nbxmpp-client-xYpYLqyi took 10s 
➜ nbc
Traceback (most recent call last):
  File "/home/marcosdevera/.local/bin/nbc", line 5, in <module>
    from nbxmpp_client.main import run
  File "/home/marcosdevera/.local/lib/python3.10/site-packages/nbxmpp_client/__init__.py", line 5, in <module>
    gi.require_version("GtkSource", "5")
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available for version %s' %
ValueError: Namespace GtkSource not available for version 5

What I did to get there?
Projects/Sandbox/nbxmpp-client 
➜ pipenv --python 3.10
...
Projects/Sandbox/nbxmpp-client 
➜ pipenv shell
...
Projects/Sandbox/nbxmpp-client nbxmpp-client-xYpYLqyi 
➜ pip install nbxmpp-client

I have the following (I think) relevant system packages installed:
Projects/Sandbox/nbxmpp-client nbxmpp-client-xYpYLqyi 
➜ dpkg -l | grep adwaita
ii  adwaita-icon-theme                            41.0-1ubuntu1                            all          default icon theme of GNOME (small subset)
ii  gir1.2-adw-1:amd64                            1.1.0-1ubuntu2                           amd64        GObject introspection files for libadwaita
ii  libadwaita-1-0:amd64                          1.1.0-1ubuntu2                           amd64        Library with GTK widgets for mobile phones
...
Projects/Sandbox/nbxmpp-client nbxmpp-client-xYpYLqyi 
➜ dpkg -l | grep gtksource
ii  gir1.2-gtksource-4:amd64                      4.8.3-1                                  amd64        gir files for the GTK+ syntax highlighting widget
ii  libgtksourceview-4-0:amd64                    4.8.3-1                                  amd64        shared libraries for the GTK+ syntax highlighting widget
ii  libgtksourceview-4-common                     4.8.3-1                                  all          common files for the GTK+ syntax highlighting widget
ii  libgtksourceview-5-0:amd64                    5.4.1-0ubuntu1                           amd64        shared libraries for the GTK 4 syntax highlighting widget
ii  libgtksourceview-5-common                     5.4.1-0ubuntu1                           all          common files for the GTK 4 syntax highlighting widget

Thanks in advance!
in reply to Gajim

Thanks a lot! That led me a step further, but now I get this:
➜ nbc
GSSAPI not available: No module named 'gssapi'
Traceback (most recent call last):
  File "/home/marcosdevera/.local/share/virtualenvs/nbxmpp-client-xYpYLqyi/lib/python3.10/site-packages/nbxmpp_client/application.py", line 16, in _on_activate
    self.window = TestClient(application=app)
  File "/home/marcosdevera/.local/share/virtualenvs/nbxmpp-client-xYpYLqyi/lib/python3.10/site-packages/nbxmpp_client/client.py", line 47, in __init__
    self._build_gui()
  File "/home/marcosdevera/.local/share/virtualenvs/nbxmpp-client-xYpYLqyi/lib/python3.10/site-packages/nbxmpp_client/client.py", line 59, in _build_gui
    self._xmpp_address = Adw.EntryRow(title="XMPP Address")
  File "/home/marcosdevera/.local/share/virtualenvs/nbxmpp-client-xYpYLqyi/lib/python3.10/site-packages/gi/module.py", line 123, in __getattr__
    raise AttributeError("%r object has no attribute %r" % (
AttributeError: 'gi.repository.Adw' object has no attribute 'EntryRow'

My related packages:
➜ dpkg -l | grep adwaita
ii  adwaita-icon-theme                            41.0-1ubuntu1                            all          default icon theme of GNOME (small subset)
ii  gir1.2-adw-1:amd64                            1.1.0-1ubuntu2                           amd64        GObject introspection files for libadwaita
ii  libadwaita-1-0:amd64                          1.1.0-1ubuntu2                           amd64        Library with GTK widgets for mobile phones
ii  libadwaita-1-dev:amd64                        1.1.0-1ubuntu2                           amd64        Development files for libadwaita
in reply to marc0s

you need libadwaita 1.2 (but your system offers 1.1). You're welcome to join xmpp:gajim@conference.gajim.or… for help!
in reply to Gajim

@marcos An appimage would be handy, I'm having all the same problems and this is a tool most people will not use on a regular basis.