Bug 1185588

Summary: AttributeError: 'NoneType' object has no attribute 'defaultPackageEnvironment'
Product: [Fedora] Fedora Reporter: Chris Murphy <bugzilla>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: anaconda-maint-list, awilliam, dshea, g.kaviyarasu, jonathan, satellitgo, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d3e354b68760dc4f55ab04dfbbb196f93e4ea7cd8d438b9fb4ca7d1e62f73b84
Fixed In Version: anaconda-22.17-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-03 12:20:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: dnf.log
none
File: dnf.rpm.log
none
File: environ
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: syslog
none
File: ifcfg.log
none
File: packaging.log none

Description Chris Murphy 2015-01-24 23:26:06 UTC
Version-Release number of selected component:
anaconda-22.16-1

The following was filed automatically by anaconda:
anaconda 22.16-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/software.py", line 284, in refresh
    self.environment = self.payload.instclass.defaultPackageEnvironment
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/software.py", line 253, in _first_refresh
    self.refresh()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/utils.py", line 63, in _idle_method
    ret = func(*args)
AttributeError: 'NoneType' object has no attribute 'defaultPackageEnvironment'

Additional info:
addons:         com_redhat_kdump
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Fedora-rawhide-x86_64 quiet elevator=deadline
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.19.0-0.rc5.git2.1.fc22.x86_64
product:        Fedora"
release:        Cannot get release name.
type:           anaconda
version:        Fedora

Comment 1 Chris Murphy 2015-01-24 23:26:08 UTC
Created attachment 983842 [details]
File: anaconda-tb

Comment 2 Chris Murphy 2015-01-24 23:26:09 UTC
Created attachment 983843 [details]
File: anaconda.log

Comment 3 Chris Murphy 2015-01-24 23:26:10 UTC
Created attachment 983844 [details]
File: dnf.log

Comment 4 Chris Murphy 2015-01-24 23:26:11 UTC
Created attachment 983845 [details]
File: dnf.rpm.log

Comment 5 Chris Murphy 2015-01-24 23:26:12 UTC
Created attachment 983846 [details]
File: environ

Comment 6 Chris Murphy 2015-01-24 23:26:13 UTC
Created attachment 983847 [details]
File: lsblk_output

Comment 7 Chris Murphy 2015-01-24 23:26:13 UTC
Created attachment 983848 [details]
File: nmcli_dev_list

Comment 8 Chris Murphy 2015-01-24 23:26:14 UTC
Created attachment 983849 [details]
File: os_info

Comment 9 Chris Murphy 2015-01-24 23:26:15 UTC
Created attachment 983850 [details]
File: program.log

Comment 10 Chris Murphy 2015-01-24 23:26:16 UTC
Created attachment 983851 [details]
File: storage.log

Comment 11 Chris Murphy 2015-01-24 23:26:17 UTC
Created attachment 983852 [details]
File: syslog

Comment 12 Chris Murphy 2015-01-24 23:26:18 UTC
Created attachment 983853 [details]
File: ifcfg.log

Comment 13 Chris Murphy 2015-01-24 23:26:19 UTC
Created attachment 983854 [details]
File: packaging.log

Comment 14 Adam Williamson 2015-01-25 04:19:03 UTC
Looks like this is caused by:

commit 4c4468cc8d6beeb90b0a68b3d305b19e16ecf56b
Author: David Shea <dshea>
Date:   Fri Jan 9 08:58:38 2015 -0500

    Add an installclass property for the default package environment (#1175826)

Obvious fix would be -

if not self.environment and self.payload.instclass.defaultPackageEnvironment:

but assigning to david to check it.