Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#5474 closed defect (fixed)

'SystemBus' object has no attribute 'list_names'

Reported by: Nigel Owned by:
Priority: normal Milestone: 0.13.2
Component: None Version: 0.13.1
Severity: normal Keywords:
Cc: Blocked By:
Blocking: OS: All

Description

Bug description

Steps to reproduce

Software versions

OS version: LFS type distro

GTK version: 2.18

PyGTK version: 2.16

Any idea what could cause this? If I comment out the entire NetworkManager? section it seems to work.

$ gajim creating /home/xxxx/.gajim directory creating /home/xxxx/.gajim/vcards directory creating /home/xxxx/.gajim/avatars directory creating logs database Traceback (most recent call last):

File "gajim.py", line 3698, in <module>

interface = Interface()

File "gajim.py", line 3552, in init

import network_manager_listener

File "/usr/share/gajim/src/network_manager_listener.py", line 68, in <module>

if 'org.freedesktop.NetworkManager?' in bus.list_names():

AttributeError?: 'SystemBus?' object has no attribute 'list_names' Error in atexit._run_exitfuncs: Traceback (most recent call last):

File "/usr/lib/python2.6/atexit.py", line 24, in _run_exitfuncs

func(*targs, kargs)

File "gajim.py", line 392, in on_exit

gajim.interface.roster.prepare_quit()

AttributeError?: Interface instance has no attribute 'roster' Error in sys.exitfunc: Traceback (most recent call last):

File "/usr/lib/python2.6/atexit.py", line 24, in _run_exitfuncs

func(*targs, kargs)

File "gajim.py", line 392, in on_exit

gajim.interface.roster.prepare_quit()

AttributeError?: Interface instance has no attribute 'roster'

Change History (5)

comment:1 Changed 6 years ago by asterix

  • Status changed from new to needinfo

which python-dbus do you have? Gajim require >=0.80

comment:2 Changed 6 years ago by Nigel

python-dbus version 0.80.2 is installed

comment:3 Changed 6 years ago by asterix

list_names was indeed introduced in 0.81: http://dbus.freedesktop.org/doc/dbus-python/api/index.html. 0.81.0 has been released in May 2007. So we can reasonably depend on it. I'll upgrade README to require this version. Thanks for the report.

comment:4 Changed 6 years ago by Yann Leboulanger <asterix@…>

  • Milestone set to 0.14
  • Resolution set to fixed
  • Status changed from needinfo to closed

(In [4d5f1bf8fbec]) update README file to depend on python-dbus >=0.81, which is needed for bus.list_names() function. Fixes #5474

comment:5 Changed 6 years ago by Yann Leboulanger <asterix@…>

  • Milestone changed from 0.14 to 0.13.2

(In [3985e2814885]) update README file to depend on python-dbus >=0.81, which is needed for bus.list_names() function. Fixes #5474

Note: See TracTickets for help on using tickets.