Can't get dbus proxy object: get_dbus_method

Bug #448325 reported by amabry1
This bug affects 215 people
Affects Status Importance Assigned to Milestone
Ubuntu Tweak
Fix Released
High
Ding Zhou

Bug Description

Traceback (most recent call last):
  File "/usr/share/ubuntu-tweak/mainwindow.py", line 567, in setup_notebook
    page = page()
  File "/usr/share/ubuntu-tweak/lockdown.py", line 63, in __init__
    if self.get_proxy.is_exists(ROOT_THEMES) and self.get_proxy.is_exists(ROOT_ICONS):
  File "/usr/share/ubuntu-tweak/common/policykit/dbusproxy.py", line 40, in __getattr__
    return self.__object.get_dbus_method(name, dbus_interface=self.INTERFACE)
AttributeError: 'NoneType' object has no attribute 'get_dbus_method'

Ding Zhou (tualatrix)
summary: - Traceback (most recent call last): File "/usr/share/ubuntu-
- tweak/mainwindow.py", line 567, in setup_notebook page = page()
- File "/usr/share/ubuntu-tweak/lockdown.py", line 63, in __init__ if
- self.get_proxy.is_exists(ROOT_THEMES) and
- self.get_proxy.is_exists(ROOT_ICONS): File "/usr/share/ubuntu-
- tweak/common/policykit/dbusproxy.py", line 40, in __getattr__ return
- self.__object.get_dbus_method(name, dbus_interface=self.INTERFACE)
- AttributeError: 'NoneType' object has no attribute 'get_dbus_method'
+ Can't get dbus proxy object
Revision history for this message
Ding Zhou (tualatrix) wrote : Re: Can't get dbus proxy object

Tell me your distrobution, and have you updated to the latest version?

Ding Zhou (tualatrix)
tags: added: dbus-proxy-object
Ding Zhou (tualatrix)
summary: - Can't get dbus proxy object
+ Can't get dbus proxy object: get_dbus_method
Revision history for this message
Tyler Rick (tyler.rick) wrote :

I get the same error when I try to start up ubuntu-tweak, but a slightly different backtrace:

Traceback (most recent call last):
  File "/usr/bin/ubuntu-tweak", line 110, in <module>
    launcher = TweakLauncher(session_bus, MainWindow())
  File "/usr/lib/python2.6/dist-packages/ubuntutweak/mainwindow.py", line 234, in __init__
    proxy.enable_stable_source()
  File "/usr/lib/python2.6/dist-packages/ubuntutweak/policykit/dbusproxy.py", line 33, in __getattr__
    return self.__proxy.get_dbus_method(name, dbus_interface = self.INTERFACE)
AttributeError: 'NoneType' object has no attribute 'get_dbus_method'

This is on Ubuntu 10.04 with the latest ubuntu-tweak from your website:

> sudo apt-cache policy ubuntu-tweak
ubuntu-tweak:
  Installed: 0.5.4.1-1~lucid1
  Candidate: 0.5.4.1-1~lucid1
  Version table:
 *** 0.5.4.1-1~lucid1 0
        100 /var/lib/dpkg/status

Revision history for this message
Ding Zhou (tualatrix) wrote :

Is this your first time to install Ubuntu Tweak?

If so, try to reboot your system and launch Ubuntu Tweak again.

Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
importance: Undecided → High
status: New → Confirmed
assignee: nobody → TualatriX (tualatrix)
milestone: none → 0.5.5
Revision history for this message
Tyler Rick (tyler.rick) wrote :

Yes, it might have been. Or rather, I had an old version installed (ubuntu-tweak_0.4.4-1~intrepid1_all.deb), uninstalled it, and installed 0.5.4.1. I will try to remember to try again next time I reboot.

Revision history for this message
conantin (corentinrehault) wrote :

I got the same error log as Tyler Rick. But after a reboot, Ubuntu Tweak is running fine.
(I added the sources for Ubuntu Tweak stable, launched the update and got the crash when I launched Ubuntu Tweak again)
On Ubuntu 10.4

Revision history for this message
Ding Zhou (tualatrix) wrote :

So I think reboot will fix most of the case, if anybody meet this problem, just try to reboot.

Revision history for this message
Johannes (cat-cat) wrote :

Ubuntu tweak works just fine after a reboot!

Revision history for this message
James Tait (jamestait) wrote :

Running 0.5.4.1-1~lucid1 on Ubuntu Lucid and a reboot does not solve this problem for me. What information do you need?

Revision history for this message
Ding Zhou (tualatrix) wrote :

@James Tait

Try to run this command in terminal:

sudo /usr/share/ubuntu-tweak/ubuntu-tweak-daemon

Then open Ubuntu Tweak in another terminal window, see the result, thanks!

Revision history for this message
Veet Moha (veet-moha) wrote :

@TualatriX

Thanks for the immediate response.

In my case as reported in the duplication bug (583598) the problem has been solved by editing the source list i added with gedit.
I have no idea why that solitary "n" character appeared in the source file, That could be another bug, but is not Ubuntu tweak related.

In case of UT it would have been great if it would have not crash because of a "bad" source list. My initial idea was to correct the source list with it, as it is extremely friendly at such tasks. But here i repeated myself.

Thanks for maintaining UT, one of the greatest tools i used.

Revision history for this message
Ding Zhou (tualatrix) wrote :

@Veet Moha

Yes, I will soon fix this issue to make it won't crash because of bad sources.list.

And the same crash which reboot can fix it will be fixed too, :D

Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
status: Confirmed → Fix Committed
Revision history for this message
Richard .B (darkaya974) wrote : RE: [Bug 448325] Re: Can't get dbus proxy object: get_dbus_method

Thank you. I solved the problem thanks to a reboot.

_________________________________________________________________
La boîte mail NOW Génération vous permet de réunir toutes vos boîtes mail dans Hotmail !
http://www.windowslive.fr/hotmail/nowgeneration/

Revision history for this message
Nhut Thai Le (lnthai2002) wrote :

thanks, the problem resolved after reboot.

Revision history for this message
santo_pendorcho (santo-pendorcho) wrote :

My OS distribution is ubuntu 10.10

Revision history for this message
santo_pendorcho (santo-pendorcho) wrote :

and version of ubuntu-tweak is 0.5.4.1

Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
status: Fix Committed → Fix Released
Revision history for this message
wyzhyd (xiyuanheshang) wrote :

thanks

Revision history for this message
Patryk Nastały (dlugi331) wrote :

I have already fixed this problem. only did

sudo mv /etc/apt/sources.list.d/ubuntu-tweak-stable.list /etc/apt/sources.list.d/ubuntu-tweak-stable.list.bak
sudo apt-get update

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.