python-nbxmpp issueshttps://dev.gajim.org/gajim/python-nbxmpp/-/issues2022-07-25T05:34:34Zhttps://dev.gajim.org/gajim/python-nbxmpp/-/issues/127AttributeError: 'NoneType' object has no attribute 'getTagData'2022-07-25T05:34:34ZSebastianAttributeError: 'NoneType' object has no attribute 'getTagData'## Versions
- OS: openSUSE Tumbleweed 20220619
- Gajim version: 11ff1e707f34e5c7a0f892569495c29479c2f9f1 (current master)
- GTK version: 2.36.3
- Python-nbxmpp version: 3.1.0
## Steps to reproduce the problem
1. Start gajim ...## Versions
- OS: openSUSE Tumbleweed 20220619
- Gajim version: 11ff1e707f34e5c7a0f892569495c29479c2f9f1 (current master)
- GTK version: 2.36.3
- Python-nbxmpp version: 3.1.0
## Steps to reproduce the problem
1. Start gajim in the terminal with one server configured
## Expected behavior
No error messages appearing
## Actual behavior
```
06/21/2022 09:53:44 (E) nbxmpp.m.discovery (chat.example.com) Fatal Exception
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/nbxmpp/task.py", line 204, in _next_step
res = self._gen.send(result)
File "/usr/lib/python3.10/site-packages/nbxmpp/modules/discovery.py", line 72, in disco_info
raise StanzaError(response)
File "/usr/lib/python3.10/site-packages/nbxmpp/errors.py", line 54, in __init__
self.condition_data = self._error_node.getTagData(self.condition)
AttributeError: 'NoneType' object has no attribute 'getTagData'
06/21/2022 09:53:44 (E) nbxmpp.dispatcher (chat.example.com) Error while handling stanza
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/nbxmpp/dispatcher.py", line 441, in dispatch
func(self._client, stanza, **user_data)
File "/usr/lib/python3.10/site-packages/nbxmpp/task.py", line 339, in _async_finished
self._next_step(result)
File "/usr/lib/python3.10/site-packages/nbxmpp/task.py", line 212, in _next_step
self._set_finished()
File "/usr/lib/python3.10/site-packages/nbxmpp/task.py", line 233, in _set_finished
self._invoke_callbacks()
File "/usr/lib/python3.10/site-packages/nbxmpp/task.py", line 255, in _invoke_callbacks
callback(self)
File "/usr/lib/python3.10/site-packages/gajim/common/modules/caps.py", line 150, in _on_disco_info
disco_info = nbxmpp_task.finish()
File "/usr/lib/python3.10/site-packages/nbxmpp/task.py", line 272, in finish
raise self._error # pylint: disable=raising-bad-type
File "/usr/lib/python3.10/site-packages/nbxmpp/task.py", line 204, in _next_step
res = self._gen.send(result)
File "/usr/lib/python3.10/site-packages/nbxmpp/modules/discovery.py", line 72, in disco_info
raise StanzaError(response)
File "/usr/lib/python3.10/site-packages/nbxmpp/errors.py", line 54, in __init__
self.condition_data = self._error_node.getTagData(self.condition)
AttributeError: 'NoneType' object has no attribute 'getTagData'
```https://dev.gajim.org/gajim/python-nbxmpp/-/issues/126Redundant `wheel` dependency in pyproject.toml2022-05-10T20:58:48ZMichał GórnyRedundant `wheel` dependency in pyproject.tomlThe explicit `wheel` dependency in pyproject.toml is redundant and could possibly be wrong in the future. Please remove it. See: https://github.com/pypa/setuptools/pull/3056The explicit `wheel` dependency in pyproject.toml is redundant and could possibly be wrong in the future. Please remove it. See: https://github.com/pypa/setuptools/pull/3056https://dev.gajim.org/gajim/python-nbxmpp/-/issues/125'NoneType' object has no attribute 'remove_iq_callback'2022-03-15T20:49:46ZSteffen Jaeckel'NoneType' object has no attribute 'remove_iq_callback'## Versions
- OS: Arch Linux
- GTK Version: 3.24.29
- PyGObject Version: 3.40.1
- GLib Version : 2.68.0
- python-nbxmpp Version: 2.0.2
- Gajim Version: 1.3.2
## Traceback
```
Traceback (most recent call last):
File "/usr/lib/python3.9...## Versions
- OS: Arch Linux
- GTK Version: 3.24.29
- PyGObject Version: 3.40.1
- GLib Version : 2.68.0
- python-nbxmpp Version: 2.0.2
- Gajim Version: 1.3.2
## Traceback
```
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/nbxmpp/dispatcher.py", line 498, in _timeout_check
func(self._client, None, **user_data)
File "/usr/lib/python3.9/site-packages/nbxmpp/task.py", line 313, in _async_finished
self._set_finished()
File "/usr/lib/python3.9/site-packages/nbxmpp/task.py", line 214, in _set_finished
self._finalize()
File "/usr/lib/python3.9/site-packages/nbxmpp/task.py", line 320, in _finalize
self._client._dispatcher.remove_iq_callback(self._iq_id)
AttributeError: 'NoneType' object has no attribute 'remove_iq_callback'
```
## Steps to reproduce the problem
I clicked on my "Messages" window and this error popped up...https://dev.gajim.org/gajim/python-nbxmpp/-/issues/124Add https method for getting websocket endpoint2022-03-30T17:53:01ZPhilipp Höristphilipp@hoerist.comAdd https method for getting websocket endpointDNS method is not secureDNS method is not securehttps://dev.gajim.org/gajim/python-nbxmpp/-/issues/122Add "Join" button to the jabber:iq:search dialog if the entity also advertise...2021-11-28T00:08:36ZMarco CirilloAdd "Join" button to the jabber:iq:search dialog if the entity also advertises MUC support.Currently there's just a "New Search" button and it does allow to copy the JID address, not very useful.Currently there's just a "New Search" button and it does allow to copy the JID address, not very useful.https://dev.gajim.org/gajim/python-nbxmpp/-/issues/121SHA-1 support for XEP-0234 and XEP-03002022-01-26T08:31:24ZdefanorSHA-1 support for XEP-0234 and XEP-0300Currently [nbxmpp's `Hashes2` doesn't support SHA-1 hashes](https://dev.gajim.org/gajim/python-nbxmpp/-/blob/7373fe86752471d8ed25b0d08b50815759d73981/nbxmpp/protocol.py#L1600), but [XEP-0234: Jingle File Transfer](https://xmpp.org/extens...Currently [nbxmpp's `Hashes2` doesn't support SHA-1 hashes](https://dev.gajim.org/gajim/python-nbxmpp/-/blob/7373fe86752471d8ed25b0d08b50815759d73981/nbxmpp/protocol.py#L1600), but [XEP-0234: Jingle File Transfer](https://xmpp.org/extensions/xep-0234.html#sect-idm45623584297328) relies on [XEP-0300: Use of Cryptographic Hash Functions in XMPP](https://xmpp.org/extensions/xep-0300.html), which allows functions from [IANA Hash Function Textual Names Registry](http://www.iana.org/assignments/hash-function-text-names), including SHA-1, so it would be nice to handle. Otherwise, when SHA-1 is used, Gajim rather confusingly says that a transferred file might have been damaged and proposes to reload it.https://dev.gajim.org/gajim/python-nbxmpp/-/issues/120History sync problem since 1.1.32021-07-24T20:06:37ZticktostickHistory sync problem since 1.1.3## Versions
- OS: Windows 10
- Gajim version: 1.3.2 nightly 6/29/2021
- GTK version: 3.24.29
- Python-nbxmpp version: 2.0.2
## Steps to reproduce the problem
1.Accounts---->Advance---->Synchronize History
2.Choose the dura...## Versions
- OS: Windows 10
- Gajim version: 1.3.2 nightly 6/29/2021
- GTK version: 3.24.29
- Python-nbxmpp version: 2.0.2
## Steps to reproduce the problem
1.Accounts---->Advance---->Synchronize History
2.Choose the duration
## Expected behavior
Start synchronizing history and show progress
## Actual behavior
The Synchronize window appears without progresshttps://dev.gajim.org/gajim/python-nbxmpp/-/issues/119Project documentation2023-04-05T19:41:26ZManuelProject documentationHi,
I'm looking for an XMPP library in python and this one interests me. But to be honest I have no experience with the XMPP universe and without documentation I don;t know how to use it.
I looked the provided example but it is succinc...Hi,
I'm looking for an XMPP library in python and this one interests me. But to be honest I have no experience with the XMPP universe and without documentation I don;t know how to use it.
I looked the provided example but it is succinct.
Is there any documentation somewhere ? A more complete exemple ?
What I want to do is:
- connect to a XMPP server witn an admin user
- create a room on a MUC component
- configure it
Thanks for your help.
PS: I'm in a django project, I think there is no issue using this lib in a web application but if you think I'm wrong feel free to tell me I'm.https://dev.gajim.org/gajim/python-nbxmpp/-/issues/118PEP Avatars: Metadata published with id "current" instead of sha1.2021-02-18T21:48:35ZZashPEP Avatars: Metadata published with id "current" instead of sha1.`_publish_avatar_metadata()` in `nbxmpp/modules/user_avatar.py` sets the id to `"current"` where it [should be the same sha1 hash as the data node](https://xmpp.org/extensions/xep-0084.html#process-pubmeta).
> As with the data node, the...`_publish_avatar_metadata()` in `nbxmpp/modules/user_avatar.py` sets the id to `"current"` where it [should be the same sha1 hash as the data node](https://xmpp.org/extensions/xep-0084.html#process-pubmeta).
> As with the data node, the publisher MUST ensure that the value of the pubsub ItemID is a SHA-1 hash of the data for the "image/png" content-typehttps://dev.gajim.org/gajim/python-nbxmpp/-/issues/117Native Bookmarks shouldn't set max_items to 'max' without disco#info / server...2021-02-07T16:20:10ZPaul AurichNative Bookmarks shouldn't set max_items to 'max' without disco#info / server supportThe native bookmarks module currently (as of b1cb21dd8f127aa72929a0635de91ce07b7d9715) unconditionally tries to set [max_items to "max"](https://dev.gajim.org/gajim/python-nbxmpp/-/blob/master/nbxmpp/modules/bookmarks/native_bookmarks.py...The native bookmarks module currently (as of b1cb21dd8f127aa72929a0635de91ce07b7d9715) unconditionally tries to set [max_items to "max"](https://dev.gajim.org/gajim/python-nbxmpp/-/blob/master/nbxmpp/modules/bookmarks/native_bookmarks.py#L34), even when the account doesn't advertise support for this (from [XEP-0060](https://xmpp.org/extensions/xep-0060.html)):
```xml
<var>
<name>http://jabber.org/protocol/pubsub#config-node-max</name>
<desc>Server supports `max` being set as a value for node configuration options: pubsub#max_items, pubsub#item_expire and pubsub#children_max</desc>
<doc>XEP-0060</doc>
</var>
```
This causes bookmark publishing to fail w/ Prosody, which rejects the bookmarks:
```xml
<iq xmlns="jabber:client" type="set" id="4eb48ffa-0cf5-4d30-b323-8346d4b5e643">
<pubsub xmlns="http://jabber.org/protocol/pubsub">
<publish node="urn:xmpp:bookmarks:1">
<item id="foo@conference.localhost">
<conference xmlns="urn:xmpp:bookmarks:1" name="d">
<nick>f</nick>
</conference>
</item>
</publish>
<publish-options>
<x xmlns="jabber:x:data" type="submit">
<field var="FORM_TYPE" type="hidden">
<value>http://jabber.org/protocol/pubsub#publish-options</value>
</field>
<field var="pubsub#notify_delete">
<value>true</value>
</field>
<field var="pubsub#notify_retract">
<value>true</value>
</field>
<field var="pubsub#persist_items">
<value>true</value>
</field>
<field var="pubsub#max_items">
<value>max</value>
</field>
<field var="pubsub#access_model">
<value>whitelist</value>
</field>
<field var="pubsub#send_last_published_item">
<value>never</value>
</field>
</x>
</publish-options>
</pubsub>
</iq>
<iq xmlns="jabber:client" type="error" id="4eb48ffa-0cf5-4d30-b323-8346d4b5e643" to="admin@localhost/gajim.D0PK8FUZ">
<error type="modify">
<bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
<text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">max_items: not a number</text>
</error>
</iq>
```
(I found this while testing an updated bookmarks plugin for Prosody to support all the various storage methods)https://dev.gajim.org/gajim/python-nbxmpp/-/issues/116Gajim will not connect if websocket URI is incorrect nbxmpp.addresses: Inval...2021-02-05T13:59:49ZMichael FeldenGajim will not connect if websocket URI is incorrect nbxmpp.addresses: Invalid websocket uri:**Edit: I just found [this](https://dev.gajim.org/gajim/python-nbxmpp/-/commit/cf2b471a6d002f3fa93f4699b560b61624fc027e). May be related / already resolved ?**
Client: Gajim Version: 1.3.0-beta2
Server: ejabberd 21.01
Preface: Not sure...**Edit: I just found [this](https://dev.gajim.org/gajim/python-nbxmpp/-/commit/cf2b471a6d002f3fa93f4699b560b61624fc027e). May be related / already resolved ?**
Client: Gajim Version: 1.3.0-beta2
Server: ejabberd 21.01
Preface: Not sure if this is a bug or a feature.
Issue: It seems if an XMPP domain has a TXT record for _xmppconnect to some websocket URI and this URI somehow does not work we abandon all connection attempts even if SRV records for _xmpp-client._tcp _xmpps-client._tcp exist and are valid.
Steps to reproduce:
1) Set up ejabberd 21.01, pass 100% in [XMPP Compliance Tester](https://compliance.conversations.im/) EXCEPT for XEP-0156.
2) Create TXT record for the domain pointing to server's websocket URI. Do not do anything further about XEP-1056.
3) Test that websocket URI works OK in browser (valid SSL cert, no firewall issues etc).
4) Ask Gajim to connect to the account with auto-discovery. No manual connection parameters given.
Expected behavior:
_This is where I hesitated to file this as a bug. Maybe there is an RFC that dictates that if a websocket connection is available it should trump everything else and be used ?! Decided to file anyway because other clients like dino and conversations are not effected._
It should use _xmpp-client._tcp and _xmpps-client._tcp SRV records to discover the best way to connect and successfully connect.
Actual behavior:
After "nbxmpp.addresses" reports "Invalid websocket uri" all connection attempts cease. User can manually specify hostname and TLS/SSL ports to connect but auto discovery no longer works.
```
05-Feb-21 11:02:45 (I) gajim.client | Connect
05-Feb-21 11:02:45 (I) gajim.client | State: ClientState.CONNECTING
05-Feb-21 11:02:45 (I) nbxmpp.stream | (zoup.pw) Connect
05-Feb-21 11:02:45 (I) nbxmpp.stream | (zoup.pw) Set state: StreamState.RESOLVE
05-Feb-21 11:02:45 (I) gajim.c.settings | Commit
**05-Feb-21 11:02:45 (W) nbxmpp.addresses | Invalid websocket uri: https://xmpp.example.com:9443/ws**
05-Feb-21 11:02:56 (I) gajim.p.installer | Checking for Updates...
05-Feb-21 11:03:00 (I) gajim.p.installer | No updates available
05-Feb-21 11:03:01 (I) gajim.c.settings | Set settings: app
```https://dev.gajim.org/gajim/python-nbxmpp/-/issues/115IBB sequence overflow2020-12-18T13:01:23ZZashIBB sequence overflowAccording to [XEP-0047](https://xmpp.org/extensions/xep-0047.html#send) the `seq` number must overflow after 65535 but I don't see `nbxmpp/modules/ibb.py` doing anything about this. Maybe it doesn't need to, seems Gajim does.
It may be ...According to [XEP-0047](https://xmpp.org/extensions/xep-0047.html#send) the `seq` number must overflow after 65535 but I don't see `nbxmpp/modules/ibb.py` doing anything about this. Maybe it doesn't need to, seems Gajim does.
It may be appropriate to reject `seq > 65535`.https://dev.gajim.org/gajim/python-nbxmpp/-/issues/114Error after loss of internet connectivity2020-11-07T13:02:53ZEugene CrosserError after loss of internet connectivity## Versions
- OS: Ubuntu 20.10
- GTK Version: 3.24.23
- PyGObject Version: 3.38.0
- GLib Version : 2.66.0
- python-nbxmpp Version: 1.91.0
- Gajim Version: 1.2.91+gajim@784829645c4262306cdaf09b0bae9e4748af5bb5
## Traceback
```
Traceback ...## Versions
- OS: Ubuntu 20.10
- GTK Version: 3.24.23
- PyGObject Version: 3.38.0
- GLib Version : 2.66.0
- python-nbxmpp Version: 1.91.0
- Gajim Version: 1.2.91+gajim@784829645c4262306cdaf09b0bae9e4748af5bb5
## Traceback
```
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nbxmpp/dispatcher.py", line 498, in _timeout_check
func(self._client, None, **user_data)
File "/usr/lib/python3/dist-packages/nbxmpp/task.py", line 313, in _async_finished
self._set_finished()
File "/usr/lib/python3/dist-packages/nbxmpp/task.py", line 214, in _set_finished
self._finalize()
File "/usr/lib/python3/dist-packages/nbxmpp/task.py", line 320, in _finalize
self._client._dispatcher.remove_iq_callback(self._iq_id)
AttributeError: 'NoneType' object has no attribute '_dispatcher'
```
## Steps to reproduce the problem
- Have gajim running
- Get the host disconnected from the Internet
- Wait
After a few minutes after loss of uplink connectivity, automated "send error report" window appears, and here is this report. After connectivity was restored, gajim continued to function normally, the incident did not break anything.https://dev.gajim.org/gajim/python-nbxmpp/-/issues/113KeyError: 'Delimiter'2020-11-07T08:49:33ZgenofireKeyError: 'Delimiter'Unable to join and find MUCs ... get a Delimiter Exception
```
No translations found
Dirs searched: [PosixPath('/usr/local/share'), PosixPath('/usr/share')]
** (org.gajim.Gajim:283462): WARNING **: 22:56:31.873: Error loading plugin: l...Unable to join and find MUCs ... get a Delimiter Exception
```
No translations found
Dirs searched: [PosixPath('/usr/local/share'), PosixPath('/usr/share')]
** (org.gajim.Gajim:283462): WARNING **: 22:56:31.873: Error loading plugin: libaspell.so.15: cannot open shared object file: No such file or directory
** (org.gajim.Gajim:283462): WARNING **: 22:56:31.874: Error loading plugin: libvoikko.so.1: cannot open shared object file: No such file or directory
** (org.gajim.Gajim:283462): WARNING **: 22:56:31.874: Error loading plugin: libhspell.so.0: cannot open shared object file: No such file or directory
** (org.gajim.Gajim:283462): WARNING **: 22:56:31.874: Error loading plugin: libnuspell.so.4: cannot open shared object file: No such file or directory
06/11/20 22:56:31 (W) gajim.c.storage.cache Execution time for _load_caps_data: 76 ms
06/11/20 22:56:32 (W) gajim.plugin_system Not a plugin path: /home/genofire/.local/share/gajim/plugins/.git
06/11/20 22:56:32 (W) gajim.plugin_system Not a plugin path: /home/genofire/.local/share/gajim/plugins/.gitlab
06/11/20 22:56:32 (W) gajim.plugin_system Not a plugin path: /home/genofire/.local/share/gajim/plugins/README.md
06/11/20 22:56:32 (W) gajim.plugin_system Not a plugin path: /home/genofire/.local/share/gajim/plugins/scripts
06/11/20 22:56:32 (W) gajim.plugin_system Not a plugin path: /home/genofire/.local/share/gajim/plugins/.gitlab-ci.yml
06/11/20 22:56:32 (W) gajim.plugin_system Not a plugin path: /home/genofire/.local/share/gajim/plugins/flatpak
06/11/20 22:56:32 (W) gajim.plugin_system Not a plugin path: /home/genofire/.local/share/gajim/plugins/pylintrc
06/11/20 22:56:32 (W) gajim.plugin_system Not a plugin path: /home/genofire/.local/share/gajim/plugins/.gitignore
06/11/20 22:56:32 (W) gajim.plugin_system Not a plugin path: /home/genofire/.local/share/gajim/plugins/CONTRIBUTING.md
06/11/20 22:56:33 (E) nbxmpp.task Fatal Exception
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/nbxmpp/task.py", line 178, in _next_step
res = self._gen.send(result)
File "/usr/lib/python3.8/site-packages/gajim/common/modules/delimiter.py", line 42, in get_roster_delimiter
delimiter = yield self.request_delimiter()
File "/usr/lib/python3.8/site-packages/gajim/common/modules/base.py", line 64, in __getattr__
module = self._con.connection.get_module(self._nbxmpp_extends)
File "/usr/lib/python3.8/site-packages/nbxmpp/client.py", line 519, in get_module
return self._dispatcher.get_module(name)
File "/usr/lib/python3.8/site-packages/nbxmpp/dispatcher.py", line 145, in get_module
return self._modules[name]
KeyError: 'Delimiter'
06/11/20 22:56:33 (E) nbxmpp.task Fatal Exception
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/nbxmpp/task.py", line 178, in _next_step
res = self._gen.send(result)
File "/usr/lib/python3.8/site-packages/gajim/common/modules/delimiter.py", line 42, in get_roster_delimiter
delimiter = yield self.request_delimiter()
File "/usr/lib/python3.8/site-packages/gajim/common/modules/base.py", line 64, in __getattr__
module = self._con.connection.get_module(self._nbxmpp_extends)
File "/usr/lib/python3.8/site-packages/nbxmpp/client.py", line 519, in get_module
return self._dispatcher.get_module(name)
File "/usr/lib/python3.8/site-packages/nbxmpp/dispatcher.py", line 145, in get_module
return self._modules[name]
KeyError: 'Delimiter'
```https://dev.gajim.org/gajim/python-nbxmpp/-/issues/112Please add new SCRAM-SHA-512(-PLUS) / SCRAM-SHA3-512(-PLUS)2022-04-02T15:49:11ZNeustradamusPlease add new SCRAM-SHA-512(-PLUS) / SCRAM-SHA3-512(-PLUS)After SCRAM-SHA-1(-PLUS) and SCRAM-SHA-256(-PLUS), by same author, there are:
- SCRAM-SHA-512(-PLUS): https://tools.ietf.org/html/draft-melnikov-scram-sha-512
- SCRAM-SHA3-512(-PLUS): https://tools.ietf.org/html/draft-melnikov-scram-sha3...After SCRAM-SHA-1(-PLUS) and SCRAM-SHA-256(-PLUS), by same author, there are:
- SCRAM-SHA-512(-PLUS): https://tools.ietf.org/html/draft-melnikov-scram-sha-512
- SCRAM-SHA3-512(-PLUS): https://tools.ietf.org/html/draft-melnikov-scram-sha3-512
Can you add?
Thanks in advance.https://dev.gajim.org/gajim/python-nbxmpp/-/issues/111MUC: GroupchatRoster error when right-clicking participant2020-10-05T15:38:21ZDaniel BrötzmannMUC: GroupchatRoster error when right-clicking participant## Versions
- OS: Linux Mint 20
- GTK Version: 3.24.20
- PyGObject Version: 3.36.0
- GLib Version : 2.64.2
- python-nbxmpp Version: 1.0.2
- Gajim Version: 1.2.91+gajim@b4c10c7111a76cca76baac02a51b5c16a5afc635
## Traceback
```
Traceback ...## Versions
- OS: Linux Mint 20
- GTK Version: 3.24.20
- PyGObject Version: 3.36.0
- GLib Version : 2.64.2
- python-nbxmpp Version: 1.0.2
- Gajim Version: 1.2.91+gajim@b4c10c7111a76cca76baac02a51b5c16a5afc635
## Traceback
```
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gajim/gtk/groupchat_roster.py", line 294, in _on_roster_button_press_event
self._show_contact_menu(nick)
File "/usr/lib/python3/dist-packages/gajim/gtk/groupchat_roster.py", line 304, in _show_contact_menu
menu = get_groupchat_roster_menu(self._account,
File "/usr/lib/python3/dist-packages/gajim/gui_menu_builder.py", line 859, in get_groupchat_roster_menu
build_invite_submenu(item,
File "/usr/lib/python3/dist-packages/gajim/gui_menu_builder.py", line 149, in build_invite_submenu
menuitem = Gtk.MenuItem.new_with_label(room_jid.localpart)
TypeError: Argument 0 does not allow None as a value
```
I report this for somebody else.
## Steps to reproduce
Right-click on any nickname of a group chat I’m the owner of.https://dev.gajim.org/gajim/python-nbxmpp/-/issues/110Xubuntu 18.04 install error2020-08-25T11:23:13ZfrederickXubuntu 18.04 install errorHi,
upon entering sudo apt install gajim I encounter the following error:
```
Setting up python3-nbxmpp (1.0.0-1) ...
File "/usr/lib/python3/dist-packages/nbxmpp/simplexml.py", line 21
from __future__ import annotations
...Hi,
upon entering sudo apt install gajim I encounter the following error:
```
Setting up python3-nbxmpp (1.0.0-1) ...
File "/usr/lib/python3/dist-packages/nbxmpp/simplexml.py", line 21
from __future__ import annotations
^
SyntaxError: future feature annotations is not defined
dpkg: error processing package python3-nbxmpp (--configure):
installed python3-nbxmpp package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of gajim:
gajim depends on python3-nbxmpp (>= 0.6.4); however:
Package python3-nbxmpp is not configured yet.
dpkg: error processing package gajim (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gajim-pgp:
gajim-pgp depends on gajim (>= 1.0.0~beta2); however:
Package gajim is not configured yet.
dpkg: error processing package gajim-pgp (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gajim-omemo:
gajim-omemo depends on gajim (>= 1.0.0~alpha1); however:
Package gajim is not configured yet.
dpkg: error processing package gajim-omemo (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Errors were encountered while processing:
python3-nbxmpp
gajim
gajim-pgp
gajim-omemo
E: Sub-process /usr/bin/dpkg returned an error code (1)
```
I already upgraded python to version 3.85:
$ python -V
Python 3.8.5
The package still does not install properly.https://dev.gajim.org/gajim/python-nbxmpp/-/issues/109OMEMO messages from ChatSecure cannot be decrypted anymore after some time2020-07-07T20:42:12ZAndrey GurskyOMEMO messages from ChatSecure cannot be decrypted anymore after some time## Versions
- OS: Debian GNU/Linux Bullseye
- Gajim version: 1.2.91+efe24013899e (git master)
- Plugin version: 2.7.5 (git master)
- GTK version: 3.24.20
- Python-nbxmpp version: 1.0.0 dd74e6c576073db (git master)
## Steps to...## Versions
- OS: Debian GNU/Linux Bullseye
- Gajim version: 1.2.91+efe24013899e (git master)
- Plugin version: 2.7.5 (git master)
- GTK version: 3.24.20
- Python-nbxmpp version: 1.0.0 dd74e6c576073db (git master)
## Steps to reproduce the problem
```
<message to='MY_JID@MY_SERVER/gajim.76PS7VQV2T09VTT2' from='OTHER_JID@OTHER_SERVER/chatsecure31249' type='chat' id='0808F7D0-5B82-4752-936E-A1F1941C1441'><archived by='MY_JID@MY_SERVER' id='1122334455667788' xmlns='urn:xmpp:mam:tmp'/><stanza-id by='MY_JID@MY_SERVER' id='1122334455667788' xmlns='urn:xmpp:sid:0'/><store xmlns='urn:xmpp:hints'/><encrypted xmlns='eu.siacs.conversations.axolotl'><header sid='1234567890'><key prekey='1' rid='9876543210'></key><iv>........................</iv></header><payload>[...cut...]</payload></encrypted><request xmlns='urn:xmpp:receipts'/><origin-id xmlns='urn:xmpp:sid:0' id='0808F7D0-5B82-4752-936E-A1F1941C1441'/></message>
```
Starting with such stanza decryption fails.
On 20.02.2020 this issue appeared for the first time. I've posted this anonymized stanza previously 2 times in the MUC (April 2020).
## Expected behavior
Since the stanza should be OK, decryption should succeed as before.
## Actual behavior
It looks like messages get lost. So I've supposed a server failure and switched to a backup account. After some time the same happened to my backup account. After grepping through the logs, I've find out that messages are actually not lost. Decryption fails silently and they are silently dropped. So something must be wrong either with ChatSecure or Gajim.
A workaround: OMEMO session reset. For now Gajim cannot just reset the session but allows to delete the corresponding OMEMO fingerprint, which forces the implicit session reset. In this case you must validate the fingerprint manually every time.https://dev.gajim.org/gajim/python-nbxmpp/-/issues/108'NoneType' object has no attribute 'get_input_stream'2020-10-10T19:15:11Zpipantal'NoneType' object has no attribute 'get_input_stream'## Versions
- OS: Ubuntu 20.04 LTS
- GTK Version: 3.24.18
- PyGObject Version: 3.36.0
- GLib Version : 2.64.1
- python-nbxmpp Version: 0.9.95
- Gajim Version: 1.1.99.1+gajim@534a29479bf8501da1ef59ffd1b818c06eac3ccf
## Traceback
```
Trac...## Versions
- OS: Ubuntu 20.04 LTS
- GTK Version: 3.24.18
- PyGObject Version: 3.36.0
- GLib Version : 2.64.1
- python-nbxmpp Version: 0.9.95
- Gajim Version: 1.1.99.1+gajim@534a29479bf8501da1ef59ffd1b818c06eac3ccf
## Traceback
```
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nbxmpp/tcp.py", line 252, in _on_read_async_finish
self._read_async()
File "/usr/lib/python3/dist-packages/nbxmpp/tcp.py", line 187, in _read_async
self._con.get_input_stream().read_bytes_async(
AttributeError: 'NoneType' object has no attribute 'get_input_stream'
```
## Steps to reproduce the problem
...https://dev.gajim.org/gajim/python-nbxmpp/-/issues/107Auto-reconnect is missing exponential backoff timeout2020-04-16T16:11:42ZAndrey GurskyAuto-reconnect is missing exponential backoff timeout* Gajim 1.1.94+bc72da81fccf
* python-nbxmpp 0.9.94+d792d6c0e19286c
Trashserver was down for more than 10 minutes and looking in the logs I've noticed Gajim keeping reconnecting without exponential backoff delays inbetween. Seems a regre...* Gajim 1.1.94+bc72da81fccf
* python-nbxmpp 0.9.94+d792d6c0e19286c
Trashserver was down for more than 10 minutes and looking in the logs I've noticed Gajim keeping reconnecting without exponential backoff delays inbetween. Seems a regression since the network refactoring.