graphics_driver crashed with NameError in hybrid_graphics_check(): global name 'hybrid' is not defined
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
checkbox (Ubuntu) |
Fix Released
|
Medium
|
Jeff Lane |
Bug Description
Hewlett-Packard HP Envy 14 1095la
https:/
Checkbox raised this error on its own.
ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: checkbox 0.14.4
ProcVersionSign
Uname: Linux 3.5.0-13-generic i686
ApportVersion: 2.5.1-0ubuntu4
Architecture: i386
CasperVersion: 1.321
Date: Sat Sep 8 23:41:49 2012
ExecutablePath: /usr/lib/
InterpreterPath: /usr/bin/
LiveMediaBuild: Ubuntu 12.10 "Quantal Quetzal" - Alpha i386 (20120905.2)
ProcCmdline: /usr/bin/python3 /usr/share/
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, no user)
LANG=en_US.UTF-8
PythonArgs: ['/usr/
SourcePackage: checkbox
Title: graphics_driver crashed with NameError in hybrid_
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
Related branches
- Daniel Manrique (community): Approve
-
Diff: 38 lines (+6/-4)2 files modifieddebian/changelog (+3/-1)
scripts/graphics_driver (+3/-3)
- Ubuntu branches: Pending requested
-
Diff: 114866 lines (+22292/-18992)125 files modifiedcheckbox_qt/qt_interface.py (+7/-2)
debian/changelog (+51/-0)
debian/po/ast.po (+2/-2)
debian/po/cs.po (+2/-2)
debian/po/de.po (+2/-2)
debian/po/en_AU.po (+2/-2)
debian/po/en_GB.po (+2/-2)
debian/po/es.po (+2/-2)
debian/po/fr.po (+2/-2)
debian/po/he.po (+2/-2)
debian/po/hu.po (+2/-2)
debian/po/id.po (+2/-2)
debian/po/it.po (+2/-2)
debian/po/ja.po (+2/-2)
debian/po/nl.po (+2/-2)
debian/po/oc.po (+2/-2)
debian/po/pl.po (+2/-2)
debian/po/pt_BR.po (+2/-2)
debian/po/ro.po (+2/-2)
debian/po/ru.po (+2/-2)
debian/po/tr.po (+2/-2)
debian/po/uk.po (+2/-2)
debian/po/zh_CN.po (+2/-2)
debian/po/zh_TW.po (+2/-2)
jobs/audio.txt.in (+6/-6)
jobs/networking.txt.in (+4/-1)
jobs/suspend.txt.in (+5/-4)
patches/0.14.2 (+2/-1)
po/ace.po (+199/-198)
po/af.po (+199/-198)
po/am.po (+199/-198)
po/ar.po (+219/-203)
po/ast.po (+199/-198)
po/az.po (+199/-198)
po/be.po (+199/-198)
po/bg.po (+199/-198)
po/bn.po (+199/-198)
po/bo.po (+199/-198)
po/br.po (+199/-198)
po/bs.po (+199/-198)
po/ca.po (+199/-198)
po/ca@valencia.po (+199/-198)
po/ckb.po (+199/-198)
po/cs.po (+199/-198)
po/cy.po (+199/-198)
po/da.po (+199/-198)
po/de.po (+179/-178)
po/dv.po (+199/-198)
po/el.po (+199/-198)
po/en_AU.po (+415/-414)
po/en_CA.po (+199/-198)
po/en_GB.po (+891/-504)
po/eo.po (+202/-201)
po/es.po (+462/-216)
po/et.po (+199/-198)
po/eu.po (+199/-198)
po/fa.po (+199/-198)
po/fi.po (+202/-201)
po/fr.po (+1576/-489)
po/ga.po (+199/-198)
po/gd.po (+199/-198)
po/gl.po (+261/-208)
po/he.po (+199/-198)
po/hi.po (+199/-198)
po/hr.po (+199/-198)
po/hu.po (+199/-198)
po/hy.po (+199/-198)
po/id.po (+199/-198)
po/is.po (+199/-198)
po/it.po (+199/-198)
po/ja.po (+199/-198)
po/jbo.po (+199/-198)
po/ka.po (+199/-198)
po/kk.po (+199/-198)
po/km.po (+199/-198)
po/kn.po (+199/-198)
po/ko.po (+199/-198)
po/ku.po (+199/-198)
po/ky.po (+199/-198)
po/lt.po (+199/-198)
po/lv.po (+199/-198)
po/mk.po (+199/-198)
po/ml.po (+199/-198)
po/mr.po (+199/-198)
po/ms.po (+666/-251)
po/my.po (+199/-198)
po/nb.po (+199/-198)
po/nds.po (+199/-198)
po/ne.po (+199/-198)
po/nl.po (+199/-198)
po/nn.po (+199/-198)
po/oc.po (+204/-199)
po/pl.po (+199/-198)
po/ps.po (+199/-198)
po/pt.po (+266/-257)
po/pt_BR.po (+626/-236)
po/ro.po (+199/-198)
po/ru.po (+629/-222)
po/sd.po (+199/-198)
po/shn.po (+199/-198)
po/si.po (+199/-198)
po/sk.po (+199/-198)
po/sl.po (+288/-225)
po/sq.po (+217/-198)
po/sr.po (+199/-198)
po/sv.po (+199/-198)
po/ta.po (+199/-198)
po/te.po (+199/-198)
po/th.po (+199/-198)
po/tr.po (+204/-203)
po/ug.po (+199/-198)
po/uk.po (+218/-217)
po/ur.po (+199/-198)
po/uz.po (+199/-198)
po/vi.po (+199/-198)
po/zh_CN.po (+199/-198)
po/zh_HK.po (+199/-198)
po/zh_TW.po (+199/-198)
qt/frontend/qtfront.ui (+2/-2)
scripts/audio_settings (+12/-2)
scripts/color_depth_info (+1/-1)
scripts/frequency_governors_test (+5/-2)
scripts/graphics_driver (+4/-4)
scripts/graphics_modes_info (+1/-1)
scripts/network_device_info (+95/-44)
tags: | removed: need-duplicate-check |
Changed in checkbox (Ubuntu): | |
importance: | Undecided → Medium |
visibility: | private → public |
Changed in checkbox (Ubuntu): | |
assignee: | nobody → Jeff Lane (bladernr) |
status: | Triaged → In Progress |
This will happen on systems that report more than 1 graphics card (i.e. Hybrid systems with both drivers installed).
To reproduce:
- Copy /usr/share/ checkbox/ scripts/ graphics_ driver to /tmp
- Modify the copy on /tmp so that line 304 reads:
has_ hybrid_ graphics = (len(cards) >= 1 and hybrid.is_laptop()
(the change is changing > for >= so that this condition is met on any system).
- Run the script from /tmp
Expected result:
- Graphics driver information
Actual result:
------------- VIDEO DRIVER INFORMATION -------------
Video Driver: intel
Driver Version: 2.17.0
------------- HYBRID GRAPHICS CHECK ---------------- checkboxes/ checkbox/ trunk/scripts/ graphics_ driver" , line 323, in <module> exit(main( )) checkboxes/ checkbox/ trunk/scripts/ graphics_ driver" , line 318, in main append( hybrid_ graphics_ check(xlog) ) checkboxes/ checkbox/ trunk/scripts/ graphics_ driver" , line 304, in hybrid_ graphics_ check hybrid_ graphics = (len(cards) >= 1 and hybrid.is_laptop()
Graphics Chipset: Intel (8086:0046)
Loaded DDX Drivers: intel, vesa, fbdev, fbdevhw
Traceback (most recent call last):
File "Documents/
sys.
File "Documents/
results.
File "Documents/
has_
NameError: global name 'hybrid' is not defined
The problem is that the "hybrid" object on which is_laptop and cards_dict are being called does not exist. is_laptop() is just a method so it probably doesn't need to be scoped to hybrid, and cards_dict is a local variable in the hybrid_ graphics_ check method so it also probably needs no scoping.
Setting to Triaged with importance: Medium, as people running this on hybrid graphics systems (which are becoming more popular) will very likely run into this.