omemo / gajim-omemo

Gajim plugin for OMEMO Multi-End Message and Object Encryption
87 stars 7 forks source link

plugin fails to load on ubuntu 16.10 #132

Closed cromulentbanana closed 7 years ago

cromulentbanana commented 8 years ago

General information

plugin fails to load with Warning: Error: Descriptors should not be created directly, but only retrieved from their parent.

Before opening an issue, please read our Wiki

What is the expected output? What do you see instead?

Debug output

Please start Gajim with -l gajim.plugin-system.omemo=DEBUG and post the log file 10/17/2016 18:34:56 (E) gajim.plugin_system.omemo Descriptors should not be created directly, but only retrieved from their parent.

lovetox commented 8 years ago

please downgrade to protobuf 2.6.1

lovetox commented 8 years ago

did that solve your problem?

dennisguse commented 7 years ago

Ubuntu 16.10 Omemo version 0.9.7 Gajim 0.16.5 Protobuf 3.0.0

Still not working. Here is the requested output.

PS: Downgrading to protobuf 2.6.1 is not an option for me (too much manual maintenance effort. Sorry.).

dennis@noname:~$ gajim -l gajim.plugin-system.omemo=DEBUG

Logger gajim.plugin-system.omemo level set to 10 28.11.2016 11:16:40 (E) gajim.plugin_system.omemo Descriptors should not be created directly, but only retrieved from their parent. /home/dennis/.local/share/gajim/plugins/gotr/ui.py:40: GtkWarning: Unknown property: GtkMenu.ubuntu-local self.B.add_from_file(self.GTK_BUILDER_FILE_PATH) /usr/lib/python2.7/dist-packages/nbxmpp/tls_nb.py:436: DeprecationWarning: unicode for cipher_list is no longer accepted, use bytes tcpsock._sslContext.set_cipher_list(self.cipher_list)

lovetox commented 7 years ago

you have to install something manually, because with the packages ubuntu supplys its not going to work

either you downgrade protobuf or you install axolotl manually from here

https://launchpad.net/ubuntu/+source/python-axolotl/0.1.35-1

dennisguse commented 7 years ago

That would work, but I am not taking the risk ;)

PS: Would you mind keeping this issue open until it is fixed by Ubuntu 16.10. This allows other people stumbling over the same issue to find it easier.

alexandrestein commented 7 years ago

This worked for me by simply downgrading protobuf with: sudo pip install protobuf==2.6.1 No manual operation needed.

And OMEMO woks great for me.

lofidevops commented 7 years ago

This worked for me:

Downloaded and installed python-axolotl_0.1.35-3_all.deb from https://packages.debian.org/stretch/all/python-axolotl/download

(did not install protobuf)

lovetox commented 7 years ago

please use Gajim 0.16.7

lovetox commented 7 years ago

and provide a log file, when starting with gajim -l gajim.plugin_system=DEBUG

maltris commented 7 years ago

Did work after installing the older photobuf 2.6.1.

lovetox commented 7 years ago

you should not have to do this, please use the gajim-omemo debian package.

if it does not work report the bug to the debian bug tracker

lofidevops commented 7 years ago

@lovetox Thanks for the info. Are you saying that the correct versions of just gajim.deb gajim-omemo.deb and python-axolotl.deb should do the trick? (Assuming no packaging issues on Ubuntu.)

lovetox commented 7 years ago

ubuntu has only gajim 0.16.6 in theire repos

so i would add deb ftp://ftp.gajim.org/debian unstable main and install 0.16.7

afterwards you can install gajim-omemo from the ubuntu repos https://launchpad.net/ubuntu/+source/gajim-omemo it installs all dependencys necessary.

afterwards you can update omemo from inside gajims plugin-manager, actually you should get a popup to update 30 seconds after start.

lovetox commented 7 years ago

theoretically the gajim-omemo package should also work with 0.16.6, just for your information, but i would better use 0.16.7, not because of omemo, because of many bugfixes in gajim itself.

kyu-sz commented 7 years ago

Renaming any file creating descriptors to have suffix "_pb2.py" will solve this problem.

lovetox commented 7 years ago

the python_axolotl package should already have this fix included, because its long fixed in the debian repos.

its also fixed on git in python_axolotl

so from this point on i consider this a package error, as gajim cant do anything to fix that.