AttributeError in Weather: WeatherApplet instance has no attribute 'map_dialog'

Bug #581414 reported by leigh123linux
34
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Awn Extras
Fix Released
Medium
onox
awn-extras-applets (Ubuntu)
Fix Released
Medium
Julien Lavergne

Bug Description

abrt 1.0.9 detected a crash.

architecture: i686
cmdline: python /usr/share/avant-window-navigator/applets/weather/weather.py
--uid=1273330667 --window=73400368 --panel-id=1
component: awn-extras-applets
executable: /usr/share/avant-window-navigator/applets/weather/weather.py
kernel: 2.6.32.11-99.fc12.i686.PAE
package: awn-extras-applets-0.4.0-5.fc12
reason: weather.py:394:activate_map_cb:AttributeError: WeatherApplet instance
has no attribute 'map_dialog'
release: Fedora release 12 (Constantine)

backtrace
-----
weather.py:394:activate_map_cb:AttributeError: WeatherApplet instance has no
attribute 'map_dialog'

Traceback (most recent call last):
  File "/usr/share/avant-window-navigator/applets/weather/weather.py", line
394, in activate_map_cb
    self.map_dialog.show_all()
AttributeError: WeatherApplet instance has no attribute 'map_dialog'

Local variables in innermost frame:
widget: <gtk.MenuItem object at 0x97d0d9c (GtkMenuItem at 0x9829a18)>
self: <__main__.WeatherApplet instance at 0x97b1e0c>

Bug forwarded from https://bugzilla.redhat.com/show_bug.cgi?id=592753

onox (onox)
Changed in awn-extras:
assignee: nobody → onox (onox)
importance: Undecided → Medium
milestone: none → 0.4.2
status: New → Confirmed
tags: added: applet traceback weather
onox (onox)
summary: - WeatherApplet - weather.py:394:activate_map_cb:AttributeError:
- WeatherApplet instance has no attribute 'map_dialog'
+ AttributeError in Weather: WeatherApplet instance has no attribute
+ 'map_dialog'
Revision history for this message
onox (onox) wrote :

Fixed in revision 1311.

Changed in awn-extras:
status: Confirmed → Fix Committed
Revision history for this message
leigh123linux (leigh123linux-deactivatedaccount) wrote :

Adding commit 1311 to patch 0.4.0 has introduced this error.

awnlib.py:209:unregister:RuntimeError: Dialog 'secondary' not registered

Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/awn/extras/threadqueue.py", line 79, in _callback
    callback(*args)
  File "/usr/share/avant-window-navigator/applets/weather/weather.py", line 519, in error_cb
    self.network_error_cb(e, tb)
  File "/usr/share/avant-window-navigator/applets/weather/weather.py", line 246, in network_error_cb
    self.applet.dialog.unregister("secondary")
  File "/usr/lib64/python2.6/site-packages/awn/extras/awnlib.py", line 209, in unregister
    raise RuntimeError("Dialog '%s' not registered" % dialog)
RuntimeError: Dialog 'secondary' not registered

Local variables in innermost frame:
self: <awn.extras.awnlib.Dialogs instance at 0x2710560>
dialog: 'secondary'

https://bugzilla.redhat.com/show_bug.cgi?id=597791

https://bugzilla.redhat.com/attachment.cgi?id=418035

onox (onox)
Changed in awn-extras:
status: Fix Committed → Triaged
Revision history for this message
leigh123linux (leigh123linux-deactivatedaccount) wrote :

Steps to reproduce https://bugzilla.redhat.com/show_bug.cgi?id=597791#c3

Package: awn-extras-applets-0.4.0-11.fc13
Architecture: i686
OS Release: Fedora release 13 (Goddard)

How to reproduce
-----
1.this is happen when network connected to office corp line that prevent some
udp/tcp transport
2office lan is using proxy and use some port filtering to prevent user to
access connection via certain udp/tcp port
3.

Revision history for this message
onox (onox) wrote :

RuntimeError fixed in revision 1312.

Changed in awn-extras:
status: Triaged → Fix Committed
Revision history for this message
leigh123linux (leigh123linux-deactivatedaccount) wrote :

Your latest commit 1312 hasn't fixed it

abrt 1.1.0 detected a crash.

architecture: x86_64
cmdline: python /usr/share/avant-window-navigator/applets/weather/weather.py
--uid=1275482468 --window=46137387 --panel-id=1
component: awn-extras-applets
executable: /usr/share/avant-window-navigator/applets/weather/weather.py
kernel: 2.6.33.3-85.fc13.x86_64
package: awn-extras-applets-0.4.0-12.fc13
reason: awnlib.py:193:register:RuntimeError: Dialog 'secondary' already
registered
release: Fedora release 13 (Goddard)

backtrace
-----
awnlib.py:193:register:RuntimeError: Dialog 'secondary' already registered

Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/awn/extras/threadqueue.py", line 79,
in _callback
    callback(*args)
  File "/usr/share/avant-window-navigator/applets/weather/weather.py", line
511, in cb
    self.set_map_pixbuf(pixbuf)
  File "/usr/share/avant-window-navigator/applets/weather/weather.py", line
532, in set_map_pixbuf
    self.map_dialog = self.applet.dialog.new("secondary",
title=self.applet.settings['location'])
  File "/usr/lib64/python2.6/site-packages/awn/extras/awnlib.py", line 171, in
new
    self.register(dialog, dlog, focus)
  File "/usr/lib64/python2.6/site-packages/awn/extras/awnlib.py", line 193, in
register
    raise RuntimeError("Dialog '%s' already registered" % dialog)
RuntimeError: Dialog 'secondary' already registered

Local variables in innermost frame:
dialog: 'secondary'
self: <awn.extras.awnlib.Dialogs instance at 0x13bff80>
focus: True
dlog: <awn.Dialog object at 0x7f7b4002daf0 (AwnDialog at 0x12cb7d0)>

https://bugzilla.redhat.com/show_bug.cgi?id=600700

https://bugzilla.redhat.com/attachment.cgi?id=421456

onox (onox)
Changed in awn-extras:
status: Fix Committed → Triaged
Revision history for this message
onox (onox) wrote :

Fix committed in revision 1318.

Changed in awn-extras:
status: Triaged → Fix Committed
Julien Lavergne (gilir)
Changed in awn-extras-applets (Ubuntu):
importance: Undecided → Medium
status: New → In Progress
assignee: nobody → Julien Lavergne (gilir)
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (5.8 KiB)

This bug was fixed in the package awn-extras-applets - 0.4.0+bzr1372-0ubuntu1

---------------
awn-extras-applets (0.4.0+bzr1372-0ubuntu1) maverick; urgency=low

  * Sync with Debian
  * New upstream snapshot (LP: #626265)
   - YAMA: use lda instead of xdg for managing desktop files (LP: #497787)
   - Volume: fix crash on high volume value. (LP: #461123)
   - Weather: fix crash on activate_map_cb (LP: #581414)
   - File-browser-launcher: fix crash on mounting LUKS partition (LP: #532848)
   - Feeds: fix crash when getting favicon (LP: #561611)
   - Slickswitcher: Fix division by 0 (LP: #562548)
  * debian/control:
   - Build-depends on libindicator-dev (>= 0.3).
   - Build-depends on libzeitgeist-dev (>= 0.2.2).
   - Recommends python-gtop | python-gnome2-desktop for bandwidth-monitor.
   - Update description for new applets.
  * debian/rules:
   - Pass --with-indicator to enable indicator applet.
   - Remove schemas for desactivated applets.
   - Disable mount applet.
  * debian/awn-applets-c-core.install:
   - Install indicator applet.
   - Install related applet.
  * debian/awn-applets-python-core:
   - Disable mount applet.

awn-extras-applets (0.4.0-3) unstable; urgency=low

  * debian/control:
   - Add depends on python-awn-extras (>= 0.4.0) for all python applets.
     Closes: #589317
   - Fix wrong description for awn-applets-common. Closes: #587632
   - Recommend python-pyinotify for thinkhdaps applet.
   - Use Breaks instead of Replaces and Conflicts when moving files between
     packages to conform to Standards-Version 3.9.0.
   - Bump Standards-Version to 3.9.0.
   - Fix Conflicts for python-awn-extras.
   - Improve short descriptions.
  * debian/pyversions: Build only for python >= 2.5. Thanks Jakub Wilk for the
    patch. Closes: #587964
  * debian/copyright: Remove mention of BSD license in
    /usr/share/common-licenses to conform to Standards-Version 3.9.0.

awn-extras-applets (0.4.0-2) unstable; urgency=medium

  * Urgency set to medium to close RC bug.
  * debian/control:
   - Add Conflicts/Replaces between python-awn-extras and python-awnlib, all
     files from python-awnlib was moved into python-awn-extras.
     (Closes: #586744).

awn-extras-applets (0.4.0-1) unstable; urgency=low

  * New upstream release.
   - Catch error in weather applet (LP: #359668)
   - Stack applet close on click (LP: #261520)
   - Close cairo-menu after a click (LP: #511256)
   - Fix crash of awn-system-monitor (LP: #545164)
   - Fix crash when removing a volume >1 or adding volume >1 or using prefs
     while > 1 volumes is present (LP: #556175)
   - Fix crash of media-control when Rhythmbox quit (LP: #558463)
   - Fix crash of file-browser-launcher when there is no .gtk-bookmarks
     (LP: #551119)
  * Update applets location:
   - Plugger, Filebrowser, Trasher, DesktopManager, Lastfm, Meebo, Digg, Pynot,
     RTM applets removed.
   - Sysmon, Bandwidth-monitor, Dialect, Hardware sensors, YAMA, Slickswitcher
     applets added
   - Separator applet move to Awn package.
   - Trash applet replaced by Garbage applet.
   - Arss applet replaced by Feeds applet.
   - Showdesktop applet move from python-core to c-core.
   - Digital Clock applet mov...

Read more...

Changed in awn-extras-applets (Ubuntu):
status: In Progress → Fix Released
Povilas Kanapickas (p12)
Changed in awn-extras:
status: Fix Committed → Fix Released
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.