checkbox fails to run

Bug #689140 reported by Randall Ross
44
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Checkbox
Fix Released
Undecided
Marc Tardif
checkbox (Ubuntu)
Fix Released
High
Marc Tardif
Natty
Fix Released
High
Marc Tardif

Bug Description

Binary package hint: checkbox

checkbox (System Testing) fails to run.

output from the command line:

randall@natty:~$ checkbox-gtk
Traceback (most recent call last):
  File "/usr/share/checkbox/run", line 40, in <module>
    main()
  File "/usr/share/checkbox/run", line 35, in main
    application = manager.create_application(sys.argv)
  File "/usr/lib/python2.7/dist-packages/checkbox/application.py", line 117, in create_application
    config.read_filename(config_filename)
  File "/usr/lib/python2.7/dist-packages/checkbox/lib/config.py", line 135, in read_filename
    return self.read_file(file, filename)
  File "/usr/lib/python2.7/dist-packages/checkbox/lib/config.py", line 128, in read_file
    self._parser.readfp(file, filename)
  File "/usr/lib/python2.7/ConfigParser.py", line 316, in readfp
    self._read(fp, filename)
  File "/usr/lib/python2.7/ConfigParser.py", line 524, in _read
    cursect[optname] = [optval]
  File "/usr/lib/python2.7/dist-packages/checkbox/lib/config.py", line 42, in __setitem__
    path = posixpath.expanduser(path)
  File "/usr/lib/python2.7/posixpath.py", line 252, in expanduser
    if not path.startswith('~'):
AttributeError: 'list' object has no attribute 'startswith'
randall@natty:~$

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: checkbox 0.10.3
ProcVersionSignature: Ubuntu 2.6.37-8.21-generic 2.6.37-rc4
Uname: Linux 2.6.37-8-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Sat Dec 11 19:05:35 2010
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20101202)
PackageArchitecture: all
ProcEnviron:
 LANG=en_CA.utf8
 SHELL=/bin/bash
SourcePackage: checkbox

Related branches

Revision history for this message
Randall Ross (randall) wrote :
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

I also experienced this today. Same versions. Marking Confirmed, setting Importance to Critical, as checkbox-cli is completely inoperable at the moment.

This appears to be a python 2.7 problem, so tagging python2.7

Changed in checkbox (Ubuntu):
status: New → Confirmed
importance: Undecided → Critical
tags: added: python27
Revision history for this message
Matthias Klose (doko) wrote :

checkbox's config.py accesses private attributes, not meant to be used in this way.

class Config(object):

    def __init__(self):
        self._parser = ConfigParser()
        self._parser._defaults = IncludeDict(self._parser)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package checkbox - 0.10.3ubuntu1

---------------
checkbox (0.10.3ubuntu1) natty; urgency=low

  * Hack to work around internals of ConfigParser in python2.7. LP: #689140.
 -- Matthias Klose <email address hidden> Wed, 15 Dec 2010 13:05:20 +0100

Changed in checkbox (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Matthias Klose (doko) wrote :

uploaded a workaround, needs a proper fix

Changed in checkbox (Ubuntu):
assignee: nobody → Marc Tardif (cr3)
importance: Critical → High
milestone: none → natty-alpha-2
status: Fix Released → Confirmed
Revision history for this message
GTriderXC (gtriderxc) wrote :

I confirm as well.
What's more it often jumps after opening the program from a page with test choice to the last report page or even if the test are shown, they do not work.

Revision history for this message
Tobin Davis (gruemaster) wrote :

I have seen this as well on armel (LP Bug 690442 - marked as duplicate now that I have seen this bug). The workaround makes checkbox work again here.

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

The HW certification team is also being impacted by this. I marked https://bugs.launchpad.net/checkbox/+bug/693213 as a duplicate of this one.

Revision history for this message
Barry Warsaw (barry) wrote :

Marc and Marc's patch in 0.10.4 is better. Matthias, please upload chinstrap:~barry/checkbox_0.10.4*

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package checkbox - 0.10.4

---------------
checkbox (0.10.4) natty; urgency=low

  * Added Marc Tardif's Fixed parsing of config parameters (LP: #689140)
 -- Marc Legris <email address hidden> Thu, 06 Jan 2011 09:51:37 -0500

Changed in checkbox (Ubuntu Natty):
status: Confirmed → Fix Released
Marc Tardif (cr3)
Changed in checkbox:
status: New → Fix Released
assignee: nobody → Marc Tardif (cr3)
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.