wajig.py crashed with AttributeError in do_describe(): 'str' object has no attribute 'installed'

Bug #1033069 reported by Andrei
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
wajig (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I've just installed wajig 2.7.3. After that I've updated about 50 packages with Software Updater (it wanted a restart but I haven't restarted yet).

I've run the command 'wagjig new'.

The output:
Traceback (most recent call last):
  File "/usr/share/wajig/wajig.py", line 848, in <module>
    main()
  File "/usr/share/wajig/wajig.py", line 844, in main
    result.func(result)
  File "/usr/share/wajig/commands.py", line 594, in new
    util.newly_available(args.verbose)
  File "/usr/share/wajig/util.py", line 93, in newly_available
    do_describe([package.strip() for package in packages], die=False)
  File "/usr/share/wajig/util.py", line 310, in do_describe
    packageversion = package.installed
AttributeError: 'str' object has no attribute 'installed'

The error at line 296 (except KeyError as e) is: "The cache has no package named 'appmenu-qt-dbgsym'".
Also the die variable is False so it won't return from the function.

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: wajig 2.7.3
ProcVersionSignature: Ubuntu 3.5.0-7.7-generic 3.5.0
Uname: Linux 3.5.0-7-generic x86_64
ApportVersion: 2.4-0ubuntu6
Architecture: amd64
Date: Sat Aug 4 23:07:16 2012
ExecutablePath: /usr/share/wajig/wajig.py
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120728.1)
InterpreterPath: /usr/bin/python3.2mu
PackageArchitecture: all
ProcCmdline: python3 /usr/share/wajig/wajig.py new
ProcEnviron:
 TERM=xterm
 PATH=(custom, no username)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/share/wajig/wajig.py', 'new']
SourcePackage: wajig
Title: wajig.py crashed with AttributeError in do_describe(): 'str' object has no attribute 'installed'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
Andrei (0p-andrei) wrote :
tags: removed: need-duplicate-check
Changed in wajig (Ubuntu):
importance: Undecided → Medium
Andrei (0p-andrei)
visibility: private → public
description: updated
Revision history for this message
Tshepang Lekhonkhobe (tshepang) wrote : Re: [Bug 1033069] Re: wajig.py crashed with AttributeError in do_describe(): 'str' object has no attribute 'installed'

I have seen this too. I will have a look later.

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in wajig (Ubuntu):
status: New → Confirmed
Revision history for this message
Graham Williams (gjwkayon) wrote :

Testing on current wajig (4.0.2) in the repos and latest wajig (4.0.12) about to be uploaded to the Debian repositories. Can not replicate this bug of 10 years ago. I suggest it has been resolved and can be closed.

Changed in wajig (Ubuntu):
status: Confirmed → 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.