ImportError: No module named rand when starting a conversation
Versions
- OS: Debian 9.1 (stretch)
- Gajim version: 0.16.6
- GTK version: 2.20.2
- Python-nbxmpp version: 0.5.4
Steps to reproduce the problem
- Start a conversation
Expected behavior
- Conversation to start as usual with no error message.
Actual behavior
- An error message is generated with the following stack trace:
Traceback (most recent call last):
File "/usr/share/gajim/src/chat_control.py", line 2981, in _on_message_tv_buffer_changedself.begin_e2e_negotiation()
File "/usr/share/gajim/src/chat_control.py", line 3245, in begin_e2e_negotiationself.session.negotiate_e2e(False)
File "/usr/share/gajim/src/common/stanza_session.py", line 698, in negotiate_e2eself.n_s = crypto.generate_nonce()
File "/usr/share/gajim/src/common/crypto.py", line 125, in generate_noncereturn random_bytes(8)
File "/usr/share/gajim/src/common/crypto.py", line 119, in random_bytesOpenSSL.rand.add(os.urandom(bytes_), bytes_)
File "/usr/share/gajim/src/common/demandimport.py", line 86, in __getattribute__self._load()
File "/usr/share/gajim/src/common/demandimport.py", line 58, in _loadmod = _origimport(head, globals, locals)
ImportError: No module named rand
- The conversation works as normal.