dbx_preference.py crashes on startup

Bug #587494 reported by Oleg "Nightwing" Lomakin
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
DockbarX
Fix Released
Undecided
Unassigned

Bug Description

Here we go:
$ dbx_preference.py
Traceback (most recent call last):
  File "/usr/bin/dbx_preference.py", line 965, in <module>
    PrefDialog()
  File "/usr/bin/dbx_preference.py", line 201, in __init__
    self.load_theme()
  File "/usr/bin/dbx_preference.py", line 599, in load_theme
    self.globals.theme_name = self.theme.get_name()
AttributeError: 'NoneType' object has no attribute 'get_name'
DockbarX Applet x.0.39, and i has thia bug is previous version. I use human dockbarx theme, also.

Matias Särs (msevens)
Changed in dockbar:
status: New → Fix Committed
Revision history for this message
Oleg "Nightwing" Lomakin (nightwing666) wrote :

OK, 0.39.1 is there, but i get another error on dbx_preference.py:
Traceback (most recent call last):
  File "/usr/bin/dbx_preference.py", line 959, in <module>
    PrefDialog()
  File "/usr/bin/dbx_preference.py", line 567, in __init__
    self.update()
  File "/usr/bin/dbx_preference.py", line 703, in update
    color = gtk.gdk.color_parse(self.globals.colors[c])
KeyError: 'color1'

Changed in dockbar:
status: Fix Committed → Incomplete
Revision history for this message
Matias Särs (msevens) wrote :

Yes, I got that from a few other people around. A fix was committed earlier today.

By the way Incomplete means that there isn't enough information given by the one reporting the bug (you) to start working on a bug. Confirmed or New would probably have been more correct.

Changed in dockbar:
status: Incomplete → Fix Committed
Revision history for this message
Jonathan Wiedemann (jonathan-wiedemann) wrote :

Hello
Sorry for my English.
I've just updated dockbarX but I still have the same error message as Oleg for some days now.
Before I had another error in the same type.
Here is the error that I have with dockbarx_factory.py run-in-window and clicking the Preferences button:

** (dockbarx_factory.py:28557): WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags'

** (dockbarx_factory.py:28557): WARNING **: Trying to register gtype 'WnckWindowActions' as enum when in fact it is of type 'GFlags'

** (dockbarx_factory.py:28557): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags'
Dockbarx init
Dockbarx reload
Traceback (most recent call last):
  File "/usr/bin/dbx_preference.py", line 959, in <module>
    PrefDialog()
  File "/usr/bin/dbx_preference.py", line 567, in __init__
    self.update()
  File "/usr/bin/dbx_preference.py", line 703, in update
    color = gtk.gdk.color_parse(self.globals.colors[c])
KeyError: 'color1'

Revision history for this message
Jonathan Wiedemann (jonathan-wiedemann) wrote :

Hello,
I changed my dockbarx files like revision 205 (seen on bazaar.launchpad.net) and now it works. I can access preferences.

Now I have a message as soon as I place for the first time the mouse on an icon :

/usr/lib/python2.6/dockbarx/iconfactory.py:241: DeprecationWarning: PyArray_FromDimsAndDataAndDescr: use PyArray_NewFromDescr.
  for row in pb.get_pixels_array():

Revision history for this message
Matias Särs (msevens) wrote :

Yes, there's not much to do about that message, and nothing to worry about. Pixbuf.get_pixels_array() uses some code that will be deprecated, it's up to the pygtk team to fix it.

Revision history for this message
Jonathan Wiedemann (jonathan-wiedemann) wrote :

Ok!
Very good job this dockbarx, sober and practical. I like :-)

Matias Särs (msevens)
Changed in dockbar:
status: Fix Committed → Fix Released
Revision history for this message
dasein (dasein-savage) wrote :

I have an error running dbx_preference.py from dockbarx 0.39.8-0 installed from ppa on Ubuntu 10.10

Traceback (most recent call last):
  File "/usr/bin/dbx_preference.py", line 1290, in <module>
    PrefDialog()
  File "/usr/bin/dbx_preference.py", line 725, in __init__
    self.update()
  File "/usr/bin/dbx_preference.py", line 822, in update
    self.globals.settings['second_popup_delay'])
KeyError: 'second_popup_delay'

Revision history for this message
Matias Särs (msevens) wrote :

I would guess there's some mixup between files from different versions of dockbarx. Could you check what the about dialog says you are using?

Revision history for this message
dasein (dasein-savage) wrote :

About dialog says that version is x.0.39.5-1. But actually, before installing new version 0.39.8-0 from ppa I uinstalled the old one. Does this mean that unistall was not correct? And how to fix my problem? Thank you.

Revision history for this message
Matias Särs (msevens) wrote :

No, apparently the uninstall didn't do what it should. You have some dockbarx folder somewhere where it shouldn't be. I would guess it's in /usr/lib/python2.6/dist-packages. Remove the dockbarx folder from there and the dockbarx and dockbarx.egg, if such a file exists.

Revision history for this message
dasein (dasein-savage) wrote :

Thanks, it helped.

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

Remote bug watches

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