You are not logged in.

#1 2014-10-22 14:25:31

mif
Member
Registered: 2013-11-30
Posts: 5

[GAJIM] python error

Hi all,

I have an python error with gajim :

"
Traceback (most recent call last):
  File "gajim.py", line 74, in <module>
    import nbxmpp
  File "/usr/lib/python2.7/site-packages/nbxmpp/__init__.py", line 14, in <module>
    from . import simplexml, protocol, auth_nb, transports_nb, roster_nb
  File "/usr/lib/python2.7/site-packages/nbxmpp/transports_nb.py", line 31, in <module>
    from .idlequeue import IdleObject
  File "/usr/lib/python2.7/site-packages/nbxmpp/idlequeue.py", line 32, in <module>
    import gobject
  File "/usr/lib/python2.7/site-packages/gobject/__init__.py", line 47, in <module>
    from gobject.constants import *
ValueError: bad marshal data (unknown type code)
"

To solve it, i try :
  - uninstall/purge gajim and all his depends.
  - Some forum say, try this to fix it : sudo find / -iname \*.pyc -exec rm {} \;

But without success.

Any idea ?

Offline

#2 2015-06-13 09:55:19

symen
Member
Registered: 2014-10-13
Posts: 10

Re: [GAJIM] python error

Hi,

I upgraded yesterday before going to bed and this morning I have had the same error as you.
I figured that gajim breaks with the last version of the package python2-pyopenssl. As a workaround, downgrading this package to version 0.14-3 seems to work fine on my system. You can download it on the Arch Rollback Machine.
Maybe check first with pacman -Qi python2-pyopenssl if another installed application depends on this library, and watch for any breakage if it is the case.

I'll try the workaround you found to see if it works on my system or not.

EDIT: Removing all .pyc files didn't work. Also someone submitted a ticket on Gajim's bugtracker this morning:
https://trac.gajim.org/ticket/8087

Last edited by symen (2015-06-13 10:24:17)

Offline

#3 2015-06-17 10:41:31

bjo
Member
Registered: 2011-09-10
Posts: 94

Re: [GAJIM] python error

It works with python2-nbxmpp-git from AUR.

Offline

#4 2015-06-17 16:07:06

symen
Member
Registered: 2014-10-13
Posts: 10

Re: [GAJIM] python error

Oh you're right, the bug was in nbxmpp in the end and they have fixed the issue. Using the AUR package for the lib is a better workaround now.
By the way I think you gave the wrong package's name, it is python2-nbxmpp-hg and not git.

Offline

#5 2015-06-17 21:32:40

bjo
Member
Registered: 2011-09-10
Posts: 94

Re: [GAJIM] python error

Erm, yes, you're right, it's hg, not git.

Offline

Board footer

Powered by FluxBB