Bug 962685

Summary: AttributeError: 'NoneType' object has no attribute 'split'
Product: [Fedora] Fedora Reporter: Petr Schindler <pschindl>
Component: yumAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: admiller, aj.werkman, anaconda-maint-list, awilliam, dshea, ffesti, firas.alkafri, g.kaviyarasu, jonathan, jsedlak, mkolman, nonamedotc, packaging-team-maint, petersen, sbueno, tim.lauridsen, vanmeeuwen+fedora, zpavlas
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:e589c402a8288468842f5ff695f7213f61615d89e9ae9c879212bee7511edec3
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-21 00:21:01 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: backtrace
none
File: environ
none
File: ifcfg.log
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: packaging.log
none
File: program.log
none
File: storage.log
none
File: syslog none

Description Petr Schindler 2013-05-14 09:13:57 UTC
Description of problem:
Right after I selected a language to use, anaconda showed window with network setting. 

I have turned on network (wired). 

On the main window of anaconda there was something like 'unset installation source' (I used netinst.iso). 

I clicked on Installation source and on 'done'. 

Installation source was set up now but no 'software collection' was chosen. 

When I clicked on 'Software selection' the anaconda froze and traceback was shown.
The following was filed automatically by anaconda:
anaconda 19.25-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/yum/comps.py", line 669, in return_environments
    for item in env_pattern.split(','):
  File "/usr/lib/python2.7/site-packages/yum/comps.py", line 650, in has_environment
    exists = self.return_environments(environmentid)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/packaging/yumpayload.py", line 1084, in environmentGroups
    if not groups.has_environment(environmentid):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/software.py", line 337, in on_environment_toggled
    for groupid in self.payload.environmentGroups(self.environment):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/software.py", line 353, in on_environment_selection_changed
    self.on_environment_toggled(None, model.get_path(itr))
AttributeError: 'NoneType' object has no attribute 'split'

Version-Release number of selected component:
anaconda-19.25-1

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Fedora\x2019-Beta-TC4\x20x86_64 quiet
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.0-301.fc19.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        19-Beta-TC4

Truncated backtrace:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/software.py", line 353, in on_environment_selection_changed
    self.on_environment_toggled(None, model.get_path(itr))
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/software.py", line 337, in on_environment_toggled
    for groupid in self.payload.environmentGroups(self.environment):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/packaging/yumpayload.py", line 1084, in environmentGroups
    if not groups.has_environment(environmentid):
  File "/usr/lib/python2.7/site-packages/yum/comps.py", line 650, in has_environment
    exists = self.return_environments(environmentid)
  File "/usr/lib/python2.7/site-packages/yum/comps.py", line 669, in return_environments
    for item in env_pattern.split(','):
AttributeError: 'NoneType' object has no attribute 'split'

Comment 1 Petr Schindler 2013-05-14 09:14:03 UTC
Created attachment 747570 [details]
File: anaconda-tb

Comment 2 Petr Schindler 2013-05-14 09:14:08 UTC
Created attachment 747571 [details]
File: anaconda.log

Comment 3 Petr Schindler 2013-05-14 09:14:11 UTC
Created attachment 747572 [details]
File: backtrace

Comment 4 Petr Schindler 2013-05-14 09:14:13 UTC
Created attachment 747573 [details]
File: environ

Comment 5 Petr Schindler 2013-05-14 09:14:15 UTC
Created attachment 747574 [details]
File: ifcfg.log

Comment 6 Petr Schindler 2013-05-14 09:14:17 UTC
Created attachment 747575 [details]
File: lsblk_output

Comment 7 Petr Schindler 2013-05-14 09:14:19 UTC
Created attachment 747576 [details]
File: nmcli_dev_list

Comment 8 Petr Schindler 2013-05-14 09:14:22 UTC
Created attachment 747577 [details]
File: packaging.log

Comment 9 Petr Schindler 2013-05-14 09:14:28 UTC
Created attachment 747578 [details]
File: program.log

Comment 10 Petr Schindler 2013-05-14 09:14:37 UTC
Created attachment 747579 [details]
File: storage.log

Comment 11 Petr Schindler 2013-05-14 09:14:42 UTC
Created attachment 747580 [details]
File: syslog

Comment 12 Petr Schindler 2013-05-14 11:47:53 UTC
After I boot there is 'Error setting up software source'

Comment 13 Jens Petersen 2013-05-17 07:11:16 UTC
Happened again with Beta RC2 when I went to the env spoke.

Comment 14 Jan Sedlák 2013-05-17 11:31:38 UTC
Confirming, this bug is still present in Beta RC2.

Comment 15 Mukundan Ragavan 2013-05-19 20:02:45 UTC
Description of problem:
Anaconda crashes when trying to select a package group.

Version-Release number of selected component:
anaconda-19.28-1

Additional info:
reporter:       libreport-2.1.4
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x2019-Beta\x20x86_64 quiet BOOT_IMAGE=vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.2-301.fc19.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        19-Beta

Truncated backtrace:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/software.py", line 353, in on_environment_selection_changed
    self.on_environment_toggled(None, model.get_path(itr))
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/software.py", line 337, in on_environment_toggled
    for groupid in self.payload.environmentGroups(self.environment):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/packaging/yumpayload.py", line 1084, in environmentGroups
    if not groups.has_environment(environmentid):
  File "/usr/lib/python2.7/site-packages/yum/comps.py", line 650, in has_environment
    exists = self.return_environments(environmentid)
  File "/usr/lib/python2.7/site-packages/yum/comps.py", line 669, in return_environments
    for item in env_pattern.split(','):
AttributeError: 'NoneType' object has no attribute 'split'

Comment 16 Adam Williamson 2013-05-20 23:55:56 UTC
Does someone have a reliable reproducer for this? Brian thinks it looks like it only happens when there is a network or repo problem of some kind.

Comment 17 Adam Williamson 2013-05-21 00:21:01 UTC

*** This bug has been marked as a duplicate of bug 959710 ***