graphics_modes_info crashed with ImportError in /usr/share/checkbox/scripts/graphics_modes_info: No module named checkbox.contrib

Bug #1047515 reported by Samantha Jian-Pielak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
Fix Released
Medium
Daniel Manrique

Bug Description

ProblemType: Crash
Date: Fri Sep 7 12:32:52 2012
ExecutablePath: /usr/lib/checkbox/bin/graphics_modes_info
ExecutableTimestamp: 1346983087
InterpreterPath: /usr/bin/python2.7
ProcCmdline: /usr/bin/python2 /usr/share/checkbox/scripts/graphics_modes_info
PythonArgs: ['/usr/share/checkbox/scripts/graphics_modes_info']
Traceback:
 Traceback (most recent call last):
   File "/usr/share/checkbox/scripts/graphics_modes_info", line 29, in <module>
     from checkbox.contrib import xrandr
 ImportError: No module named checkbox.contrib

DistroRelease: Ubuntu 12.04
InstallationMedia: Ubuntu 12.04 "Precise" - Build amd64 LIVE Binary 20120703-15:08
Package: checkbox 0.14.6+bzr1644+201209070158~precise1 [origin: LP-PPA-checkbox-dev]
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 3.2.0-30.48-generic 3.2.27
SourcePackage: checkbox
Uname: Linux 3.2.0-30-generic x86_64

Related branches

Revision history for this message
Daniel Manrique (roadmr) wrote :

Steps to reproduce:

- Install checkbox 0.14.6 from the dev PPA on a Quantal box (should also happen on Precise as reported here)
- manually run /usr/share/checkbox/scripts/graphics_modes_info.

What happens here is that this script specifies using the python2 interpreter, however the checkbox modules (including checkbox.contrib and submodules) are installed to work with python3 only, so the python2 doesn't find them and results in this trace.

A quick workaround is to change the first line of the script to read:

#!/usr/bin/python3

This is also the correct fix for this bug. I'll propose a merge in a moment.

Changed in checkbox:
status: New → In Progress
assignee: nobody → Daniel Manrique (roadmr)
importance: Undecided → Medium
Zygmunt Krynicki (zyga)
Changed in checkbox:
status: In Progress → Fix Committed
Changed in checkbox:
status: Fix Committed → Fix Released
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.