ttb: TypeError: 'tuple' object does not support item assignment

Bug #440764 reported by happyhamster
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ttb (Ubuntu)
Fix Released
Medium
Alessio Treglia

Bug Description

Binary package hint: ttb

Ubuntu version: Ubuntu karmic (development branch) Release: 9.10
Package: ttb 1.01-0ubuntu2

Expected behaviour: when right-clicking the forward button on a page that has no more subpages, the first subpage is displayed. The same event happens when using keyboard shortcuts (Shift+PageDown).

Bug: instead, when right-clicking the forward button, ttb freezes for a few seconds, and the forward and backward buttons remain greyed-out. After clicking the page-refresh button, things go back to normal.

How to reproduce: select a page with 2 or more subpages. Select the last subpage. Right-click the forward button or press Shift+PageDown.

Terminal output:
user@karmic-test:~$ ttb
Traceback (most recent call last):
  File "/usr/bin/ttb", line 388, in on_button_press_event
    self.goto_neighbour_page (prev,sub)
  File "/usr/bin/ttb", line 298, in goto_neighbour_page
    self.page = self.model.goto_neighbour_page(prev,sub)
  File "/usr/bin/ttb", line 142, in goto_neighbour_page
    return self.goto_page (neighbour_page)
  File "/usr/bin/ttb", line 161, in goto_page
    page[1] = 1
TypeError: 'tuple' object does not support item assignment
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/apport_python_hook.py", line 100, in apport_excepthook
    os.O_WRONLY|os.O_CREAT|os.O_EXCL), 'w')
OSError: [Errno 13] Permission denied: '/var/crash/_usr_bin_ttb.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/ttb", line 388, in on_button_press_event
    self.goto_neighbour_page (prev,sub)
  File "/usr/bin/ttb", line 298, in goto_neighbour_page
    self.page = self.model.goto_neighbour_page(prev,sub)
  File "/usr/bin/ttb", line 142, in goto_neighbour_page
    return self.goto_page (neighbour_page)
  File "/usr/bin/ttb", line 161, in goto_page
    page[1] = 1
TypeError: 'tuple' object does not support item assignment

ProblemType: Bug
Architecture: amd64
Date: Fri Oct 2 19:53:33 2009
DistroRelease: Ubuntu 9.10
Package: ttb 1.0.1-0ubuntu2
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-11.38-generic
SourcePackage: ttb
Uname: Linux 2.6.31-11-generic x86_64

Revision history for this message
happyhamster (morrgiah) wrote :
Revision history for this message
Alessio Treglia (quadrispro) wrote :

Forwarded to upstream.

Changed in ttb (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Djcb (djcb) wrote :
Changed in ttb (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Alessio Treglia (quadrispro)
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ttb - 1.0.1-0ubuntu3

---------------
ttb (1.0.1-0ubuntu3) karmic; urgency=low

  * Add debian/patches/01-fix_subpages.patch to fix LP: #440764;
    patch taken from upstream's git repository.
  * Bump Standards.

 -- Alessio Treglia <email address hidden> Fri, 09 Oct 2009 08:56:38 +0200

Changed in ttb (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
happyhamster (morrgiah) wrote :

Thanks guys, much appreciated.

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.