Bug 959552 - ImportError: cannot import name SIZE_POLICY_AUTO
Summary: ImportError: cannot import name SIZE_POLICY_AUTO
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-blivet
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Lehman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a353af9c78597f02ead8042ba6a...
Depends On:
Blocks: F19Beta, F19BetaBlocker
TreeView+ depends on / blocked
 
Reported: 2013-05-03 18:51 UTC by Chris Murphy
Modified: 2013-05-13 17:16 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-05-13 17:16:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (257.08 KB, text/plain)
2013-05-03 18:51 UTC, Chris Murphy
no flags Details
File: anaconda.log (2.51 KB, text/plain)
2013-05-03 18:51 UTC, Chris Murphy
no flags Details
File: backtrace (890 bytes, text/plain)
2013-05-03 18:51 UTC, Chris Murphy
no flags Details
File: environ (837 bytes, text/plain)
2013-05-03 18:51 UTC, Chris Murphy
no flags Details
File: ifcfg.log (490 bytes, text/plain)
2013-05-03 18:51 UTC, Chris Murphy
no flags Details
File: lsblk_output (2.56 KB, text/plain)
2013-05-03 18:51 UTC, Chris Murphy
no flags Details
File: messages (124.85 KB, text/plain)
2013-05-03 18:51 UTC, Chris Murphy
no flags Details
File: nmcli_dev_list (3.38 KB, text/plain)
2013-05-03 18:51 UTC, Chris Murphy
no flags Details
File: program.log (25.25 KB, text/plain)
2013-05-03 18:51 UTC, Chris Murphy
no flags Details
File: storage.log (90.60 KB, text/plain)
2013-05-03 18:51 UTC, Chris Murphy
no flags Details

Description Chris Murphy 2013-05-03 18:51:34 UTC
Description of problem:
Crash on launch.
The following was filed automatically by anaconda:
anaconda 19.23-1 exception report
Traceback (most recent call first):
  File "/tmp/updates/pyanaconda/ui/gui/spokes/custom.py", line 52, in <module>
    from blivet.devicefactory import SIZE_POLICY_AUTO
  File "/tmp/updates/pyanaconda/ui/common.py", line 541, in collect
    fo, module_path, module_flags)
  File "/tmp/updates/pyanaconda/ui/__init__.py", line 146, in _collectActionClasses
    standalones.extend(collect(module_pattern, path, lambda obj: issubclass(obj, standalone_class) and \
  File "/tmp/updates/pyanaconda/ui/gui/__init__.py", line 315, in getActionClasses
    standalones = self._collectActionClasses(self.paths["spokes"], StandaloneSpoke)
  File "/tmp/updates/pyanaconda/ui/gui/__init__.py", line 305, in setup
    self._actions = self.getActionClasses(self._list_hubs())
  File "/sbin/anaconda", line 1078, in <module>
    anaconda._intf.setup(ksdata)
ImportError: cannot import name SIZE_POLICY_AUTO

Version-Release number of selected component:
anaconda-19.23-1.fc19.x86_64

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-osimg-min --lang en_US.UTF-8
cmdline_file:   initrd=initrd0.img root=live:CDLABEL=Fedora-Live-Desktop-x86_64-19-Be rootfstype=auto ro rd.live.image rd.luks=0 rd.md=0 rd.dm=0 updates=https://www.happyassassin.net/extras/updates-958897.img BOOT_IMAGE=vmlinuz0 
core_backtrace: 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.0-0.rc8.git0.2.fc19.x86_64
packaging.log:  
product:        Fedora
release:        Fedora release 19 (Schrödinger’s Cat)
type:           anaconda
ureports_counter: 1
version:        19

Truncated backtrace:
Traceback (most recent call last):
  File "/sbin/anaconda", line 1078, in <module>
    anaconda._intf.setup(ksdata)
  File "/tmp/updates/pyanaconda/ui/gui/__init__.py", line 305, in setup
    self._actions = self.getActionClasses(self._list_hubs())
  File "/tmp/updates/pyanaconda/ui/gui/__init__.py", line 315, in getActionClasses
    standalones = self._collectActionClasses(self.paths["spokes"], StandaloneSpoke)
  File "/tmp/updates/pyanaconda/ui/__init__.py", line 146, in _collectActionClasses
    standalones.extend(collect(module_pattern, path, lambda obj: issubclass(obj, standalone_class) and \
  File "/tmp/updates/pyanaconda/ui/common.py", line 541, in collect
    fo, module_path, module_flags)
  File "/tmp/updates/pyanaconda/ui/gui/spokes/custom.py", line 52, in <module>
    from blivet.devicefactory import SIZE_POLICY_AUTO
ImportError: cannot import name SIZE_POLICY_AUTO

Comment 1 Chris Murphy 2013-05-03 18:51:36 UTC
Created attachment 743345 [details]
File: anaconda-tb

Comment 2 Chris Murphy 2013-05-03 18:51:39 UTC
Created attachment 743346 [details]
File: anaconda.log

Comment 3 Chris Murphy 2013-05-03 18:51:40 UTC
Created attachment 743347 [details]
File: backtrace

Comment 4 Chris Murphy 2013-05-03 18:51:42 UTC
Created attachment 743348 [details]
File: environ

Comment 5 Chris Murphy 2013-05-03 18:51:44 UTC
Created attachment 743349 [details]
File: ifcfg.log

Comment 6 Chris Murphy 2013-05-03 18:51:45 UTC
Created attachment 743350 [details]
File: lsblk_output

Comment 7 Chris Murphy 2013-05-03 18:51:49 UTC
Created attachment 743351 [details]
File: messages

Comment 8 Chris Murphy 2013-05-03 18:51:51 UTC
Created attachment 743352 [details]
File: nmcli_dev_list

Comment 9 Chris Murphy 2013-05-03 18:51:53 UTC
Created attachment 743353 [details]
File: program.log

Comment 10 Chris Murphy 2013-05-03 18:51:55 UTC
Created attachment 743354 [details]
File: storage.log

Comment 11 Chris Murphy 2013-05-03 18:54:51 UTC
Description of problem:
Crash on launch.

Version-Release number of selected component:
anaconda-19.23-1.fc19.x86_64

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-osimg-min --lang en_US.UTF-8
cmdline_file:   initrd=initrd0.img root=live:CDLABEL=Fedora-Live-Desktop-x86_64-19-Be rootfstype=auto ro rd.live.image rd.luks=0 rd.md=0 rd.dm=0 updates=https://www.happyassassin.net/extras/updates-958897.img BOOT_IMAGE=vmlinuz0 
core_backtrace: 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.0-0.rc8.git0.2.fc19.x86_64
packaging.log:  
product:        Fedora
release:        Fedora release 19 (Schrödinger’s Cat)
type:           anaconda
ureports_counter: 1
version:        19

Truncated backtrace:
Traceback (most recent call last):
  File "/sbin/anaconda", line 1078, in <module>
    anaconda._intf.setup(ksdata)
  File "/tmp/updates/pyanaconda/ui/gui/__init__.py", line 305, in setup
    self._actions = self.getActionClasses(self._list_hubs())
  File "/tmp/updates/pyanaconda/ui/gui/__init__.py", line 315, in getActionClasses
    standalones = self._collectActionClasses(self.paths["spokes"], StandaloneSpoke)
  File "/tmp/updates/pyanaconda/ui/__init__.py", line 146, in _collectActionClasses
    standalones.extend(collect(module_pattern, path, lambda obj: issubclass(obj, standalone_class) and \
  File "/tmp/updates/pyanaconda/ui/common.py", line 541, in collect
    fo, module_path, module_flags)
  File "/tmp/updates/pyanaconda/ui/gui/spokes/custom.py", line 52, in <module>
    from blivet.devicefactory import SIZE_POLICY_AUTO
ImportError: cannot import name SIZE_POLICY_AUTO

Comment 12 Brian Lane 2013-05-03 19:02:53 UTC
This will be fixed by the next blivet build, commit 08805cec0

Comment 13 Adam Williamson 2013-05-03 19:15:41 UTC
Try:

updates=https://www.happyassassin.net/extras/updates-958897-2.img

if that works we can probably close this, as it was me not including blivet in the updates.img that was the problem.

Comment 14 Chris Murphy 2013-05-03 19:24:04 UTC
(In reply to comment #13)
> Try:
> updates=https://www.happyassassin.net/extras/updates-958897-2.img

Crash on launch doesn't occur with this update.

Comment 15 Adam Williamson 2013-05-03 19:30:50 UTC
Cool. Let's keep this open though as it's a handy way to make sure I remember to include blivet in the next TC. For that purpose, marking as an automatic Beta blocker (it stops install running at all).

Comment 16 Fedora Update System 2013-05-03 23:03:56 UTC
anaconda-19.24-1.fc19, python-blivet-0.12-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/python-blivet-0.12-1.fc19,anaconda-19.24-1.fc19

Comment 17 Fedora Update System 2013-05-04 18:49:53 UTC
Package anaconda-19.24-1.fc19, python-blivet-0.12-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing anaconda-19.24-1.fc19 python-blivet-0.12-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-7403/python-blivet-0.12-1.fc19,anaconda-19.24-1.fc19
then log in and leave karma (feedback).

Comment 18 Adam Williamson 2013-05-06 23:35:48 UTC
Obviously, TC3 not being totally broken demonstrates that this fix works. Setting VERIFIED.

Comment 19 Adam Williamson 2013-05-13 17:16:20 UTC
19.25 went stable, closing.


Note You need to log in before you can comment on or make changes to this bug.