5-a-day-applet crashed with AttributeError in do_tags_show()

Bug #222829 reported by Caroline Ford
6
Affects Status Importance Assigned to Milestone
five-a-day
Won't Fix
Undecided
Unassigned

Bug Description

I'm having great problems getting the applet to work. I dragged a bug over it, and got an error some time later (103?). A couple of minutes later apport was triggered, which obviously didn't work as it's not an Ubuntu package.

I've attached the .crash file anyway. Anything else needed?

Revision history for this message
Caroline Ford (secretlondon) wrote :
Revision history for this message
Caroline Ford (secretlondon) wrote :

From the crash file:

5-a-day-applet crashed with AttributeError in do_tags_show()

PythonArgs: ['/usr/lib/5-a-day-applet/5-a-day-applet', '--oaf-activate-iid=OAFIID:GNOME_PyFiveADayApplet_Factory', '--oaf-ior-fd=28']
Traceback:
 Traceback (most recent call last):
   File "/usr/lib/python2.5/site-packages/fiveadayapplet/controller.py", line 125, in on_menuitem_tags_activate
     x = self.view.do_tags_show()
   File "/usr/lib/python2.5/site-packages/fiveadayapplet/view.py", line 98, in do_tags_show
     save = self.controller.tags_model.values
 AttributeError: 'Controller' object has no attribute 'tags_model'

Revision history for this message
Caroline Ford (secretlondon) wrote :

I think this is caused by right clicking on the applet and selecting manage tags.

Revision history for this message
Markus Korn (thekorn) wrote :

I can reproduce this bug with version 0.31 of the applet. As far as I can see, the issue seems to be outdated .pyc files in /usr/lib/python2.5/site-packages/fiveadayapplet/view.py . I have no clue what the reason for this is and how to fix it.

Possible workarounds:
 * remove and reinstall the package
 * run sudo python -c "import compileall; compileall.compile_dir('/usr/lib/python2.5/site-packages/fiveadayapplet/', force=True)

Markus

Changed in five-a-day:
status: New → Confirmed
Revision history for this message
Daniel Holbach (dholbach) wrote :

Markus: how do you reproduce it?

Revision history for this message
Markus Korn (thekorn) wrote :

just by upgrading from an older version of the package to 0.31, then running the applet

Revision history for this message
Daniel Holbach (dholbach) wrote :

I wonder if this might be a python-central problem - can you attach /var/lib/dpkg/info/five-a-day-applet.{pre,post}?

Revision history for this message
Markus Korn (thekorn) wrote :
Revision history for this message
Markus Korn (thekorn) wrote :
Revision history for this message
Markus Korn (thekorn) wrote :
Revision history for this message
Markus Korn (thekorn) wrote :
Revision history for this message
Daniel Holbach (dholbach) wrote :

Matthias: could this be pycentral related?

Revision history for this message
Daniel Holbach (dholbach) wrote :

The 5-a-day tool and the 5-a-day-applet are mostly obsolete now. The only thing that still works is "5-a-day --update" for those who want it.

Just join https://launchpad.net/~5-a-day-participants and the rest will happen automatically. Some statistics on http://daniel.holba.ch/five-a-day-stats are not there yet, but will come soon. Bug data is now retrieved "automatically" from Launchpad.

Changed in five-a-day:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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