jockey-gtk crashed with NameError in install_package()

Bug #186883 reported by Ryan Prior
546
Affects Status Importance Assigned to Milestone
jockey (Ubuntu)
Fix Released
Critical
Unassigned

Bug Description

The restricted-manager popped up asking if I wanted to use more restricted drivers. I thought I'd try it out, so I popped it up and clicked the checkbox by the ATI driver option. I hit Apply, and Apport pops up to tell me that things aren't going so hot.

ProblemType: Crash
Architecture: i386
Date: Mon Jan 28 18:42:18 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/jockey-gtk
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: ath_hal
Package: jockey-gtk 0.1~r139
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/jockey-gtk
ProcCwd: /home/ryan
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/jockey-gtk']
SourcePackage: jockey
Title: jockey-gtk crashed with NameError in install_package()
Uname: Linux ryan-laptop 2.6.24-5-generic #1 SMP Thu Jan 24 19:45:21 UTC 2008 i686 GNU/Linux
UserGroups:

Tags: apport-crash

Related branches

Revision history for this message
Ryan Prior (ryanprior) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

Duplicates of bug 186584. Fixed in bzr head.

Changed in jockey:
importance: Undecided → Critical
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package jockey - 0.2-0ubuntu1

---------------
jockey (0.2-0ubuntu1) hardy; urgency=low

  * New upstream bug fix release:
    - Do not create default handlers for nonexisting kernel modules.
      (LP: #187148)
    - Suppress exceptions (like SIGPIPE) in logging. (LP: #188658)
    - Enable UseEdidFreqs for legacy NVidia driver. (LP: #151141)
    - Set proper window icon. (LP: #187073)
    - Clean up strings in .desktop files (LP: #150205)
    - Fix test suite exit code on success.
    - Do not set AddARGB{,GLX}Visuals options in standard and new nVidia
      handler any more (obsolete).
    - Support hiding of help button if help is not available.
  * tests/oslib.py: Add simple tests for Ubuntu implementation of package
    system query functions.
  * jockey/oslib.py, package_description(): Do not crash when apt-cache show
    succeeds, but prints nothing. This works around apt bug #18306.
    (LP: #186943)
  * tests/oslib.py: Add shallow test cases for {install,remove}_packge() to
    ensure that they won't crash for the simplest reasons. This reproduces
    #186584.
  * jockey/oslib.py: Add missing import of time. (LP: #186584, #186883)
  * jockey/oslib.py, ui_help_available(): Only show help if yelp is present.
    (LP: #186179)
  * debian/rules: Run test suite during build (failure causes FTBFS).

 -- Martin Pitt <email address hidden> Mon, 04 Feb 2008 18:53:26 +0100

Changed in jockey:
status: Fix Committed → Fix Released
Revision history for this message
Linard Verstraete (linardv) wrote :

The new 0.2-0ubuntu2 release doesn't solve the reported bug here! See Christian Hille's [url=https://bugs.launchpad.net/bugs/189267]bug 189267[/url].
Status back to confirmed?

Revision history for this message
Kivech (kivech-deactivatedaccount) wrote :

I just ran into this bug after I completely updated a clean install.

Since the fix should be about a month old, I recon it should have been in Hardy now, but obviously this bug is still present.

At this point I cannot install proprietary drivers through the Hardware Driver manager.

This was while trying to install the ATI driver which worked perfectly before the last updates on my system.

Revision history for this message
Kivech (kivech-deactivatedaccount) wrote :

Changed status to incomplete since fix didn't work or bug resurfaced in last updates.

Changed in jockey:
status: Fix Released → Incomplete
Revision history for this message
Brad Needham (needham-brad) wrote :

affects nvidia now as well :-)

Revision history for this message
sonnyg95 (sonnyg95) wrote :

I can confirm that it affects nvidia now as well. It crashed on me when I tried to install restricted driver for mines.

Revision history for this message
sonnyg95 (sonnyg95) wrote :

Its worth noting that last night, I was able to successfully install my nvidia card's restricted driver without this problem. After the restart, I also used envy to update the driver. Unfortunately performance was laggy so I uinstalled the driver this morning with envy and found I had to reinstall the restricted driver. And now here I am.

Revision history for this message
SethWoodworth (seth-woodworth) wrote :

I can confirm the jockey-gtk error with nvidia cards: here is my trackback

seth@seth-desktop:/usr/share/jockey$ /usr/bin/jockey-gtk

Traceback (most recent call last):
  File "/usr/bin/jockey-gtk", line 279, in on_handler_changed
    if self.toggle_handler(self.model[path][0]):
  File "/usr/lib/python2.5/site-packages/jockey/ui.py", line 483, in toggle_handler
    handler.enable()
  File "/usr/lib/python2.5/site-packages/jockey/xorg_driver.py", line 99, in enable
    ModulePackageHandler.enable(self)
  File "/usr/lib/python2.5/site-packages/jockey/handlers.py", line 679, in enable
    DriverPackageHandler.enable(self)
  File "/usr/lib/python2.5/site-packages/jockey/handlers.py", line 596, in enable
    self.ui.install_package(self.package)
  File "/usr/lib/python2.5/site-packages/jockey/ui.py", line 493, in install_package
    oslib.OSLib.inst.install_package(package, self)
  File "/usr/lib/python2.5/site-packages/jockey/oslib.py", line 186, in install_package
    env.update(os.environ)
NameError: global name 'env' is not defined

I will attempt to install the latest in bzr.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Agreed, crashing for me on amd64 when enabling Nvidia restricted drivers

Revision history for this message
randalotto (randalotto) wrote :

I got identical output to SethWoodworth

Revision history for this message
chrisolof (chrisolof) wrote :

Just got this crash trying to install the nVidia proprietary driver- really wanted to get desktop effects working here. . . Using Ubuntu 8.04 beta and fully updated.

Revision history for this message
sonnyg95 (sonnyg95) wrote : Re: [Bug 186883] Re: jockey-gtk crashed with NameError in install_package()
  • unnamed Edit (1.0 KiB, text/html; charset=ISO-8859-1)

If you really want the desktop effects, one alternative is to use EnvyNG to
install the latest Nvidia drivers for you. It worked for me, although I
have to say on my notebook, the visual effects is kind of jumpy.

On Thu, Apr 3, 2008 at 5:41 PM, chrisolof <email address hidden> wrote:

> Just got this crash trying to install the nVidia proprietary driver-
> really wanted to get desktop effects working here. . . Using Ubuntu
> 8.04 beta and fully updated.
>
> --
> jockey-gtk crashed with NameError in install_package()
> https://bugs.launchpad.net/bugs/186883
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
sonnyg95 (sonnyg95) wrote :

Chrisolof, you can use envy to install the nvidia driver. It worked for mines, although on my notebook, the desktop effects are laggy.

Revision history for this message
Anders (andersja+launchpad-net) wrote :

Running a fully updated Hardy 8.04 I encountered this just now, while trying to install nvidia driver using restricted modules manager. (In fact, I'm quite sure I had it installed in the past while on 7.04 and 7.10 - not sure why it wasn't installed or recognized any more).

Revision history for this message
sami (sami-partanen) wrote :

The same story 3 hours ago, but trying to install Broadcom B43 driver

Revision history for this message
Fox (foxmaulder-1974) wrote :

Same thing here. I think it may be caused by the latest kernel update. I had installed Hardy 3 days ago, fully updated it and the Nvidia driver installed fine. The next day, I tried Kubuntu Hardy, same results but Kubuntu was using over 50% of my 1.5 gigs of memory idle so I switched back to Ubuntu Hardy yesterday, updated it and now it crashes when trying to activate the driver. Envy works fine but it never did work with my ATI card.

Revision history for this message
Nelly (nst-freeuk) wrote : Re: [Bug 186883] Re: jockey-gtk crashed with NameError in install_package()

I had this problem on an IBM thinkpad R31 when I tried to install b43
wireless drivers using the proprietary hardware driver alert on toolbar
after install.

I solved the driver problem by using synaptic to install b43-fwcutter -
perhaps it was something in the 260mb download of updates waiting after
install!

On Fri, 2008-04-04 at 08:03 +0000, sami wrote:
> The same story 3 hours ago, but trying to install Broadcom B43 driver
>

Revision history for this message
Cristian (cristianrosa) wrote :

I have the same issue with my broadcom wireless card, when activating jockey-gtk crash with the "env is not defined"

Revision history for this message
Martin Pitt (pitti) wrote :

This got fixed this morning. Sorry for the trouble!

jockey (0.3.3-0ubuntu5) hardy; urgency=low

  * jockey/oslib.py: Fix undeclared 'env' variable, residue from fix in
    0.3.3-0ubuntu3. (LP: #189611)

 -- Martin Pitt <email address hidden> Fri, 04 Apr 2008 09:16:08 +0200

Changed in jockey:
status: Incomplete → Fix Released
Revision history for this message
Pres-Gas (presgas) wrote :

Trying to implement nvidia drivers and getting this error. Just updated jockey last night (now version 0.3.3-oubuntu4).

Revision history for this message
Pres-Gas (presgas) wrote :

Of course, I spoke too soon. 0.3.3-oubuntu5 fixed.

Revision history for this message
Brad Needham (needham-brad) wrote :

thanks

Martin Pitt wrote:
> This got fixed this morning. Sorry for the trouble!
>
> jockey (0.3.3-0ubuntu5) hardy; urgency=low
>
> * jockey/oslib.py: Fix undeclared 'env' variable, residue from fix in
> 0.3.3-0ubuntu3. (LP: #189611)
>
> -- Martin Pitt <email address hidden> Fri, 04 Apr 2008 09:16:08
> +0200
>
>
> ** Changed in: jockey (Ubuntu)
> Status: Incomplete => Fix Released
>
>

Revision history for this message
regsileshi (sileshikassa) wrote :

Title: jockey-gtk crashed with AttributeError in enabled()
jockey-gtk repeatedly crashes when I simply select System->Administration->Hardware Drivers
Ubuntu: 8.04 Hardy upgraded from 6.06 Dapper LTS
Platform: i386
Linux: 2.6.24-15-386 i686
Graphics Card: NVIDIA with restrict driver installed

Revision history for this message
jim (emile-maeyens) wrote :

Trying to implement ati drivers

To post a comment you must log in.