Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176061 - catalyst raises AttributeError during livecd_stage2 target with multiple livecd/iso values
Summary: catalyst raises AttributeError during livecd_stage2 target with multiple live...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Catalyst (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Catalyst Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-26 03:15 UTC by Mike Partin
Modified: 2007-05-03 03:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Partin 2007-04-26 03:15:07 UTC
The autoresume path is /var/tmp/catalyst/tmp/default/.autoresume-livecd-stage2-x86-routerOne-SoHo-Medium/
Catalyst aborting....
Traceback (most recent call last):
  File "/usr/bin/catalyst", line 384, in ?
    build_target(addlargs, targetmap)
  File "/usr/bin/catalyst", line 200, in build_target
    mytarget=targetmap[addlargs["target"]](conf_values, addlargs)
  File "/usr/lib/catalyst/modules/livecd_stage2_target.py", line 27, in __init__
    generic_stage_target.__init__(self,spec,addlargs)
  File "/usr/lib/catalyst/modules/generic_stage_target.py", line 146, in __init__
    self.set_iso()
  File "/usr/lib/catalyst/modules/generic_stage_target.py", line 307, in set_iso
    self.settings["iso"]=normpath(self.settings[self.settings["spec_prefix"]+"/iso"])
  File "/usr/lib/catalyst/modules/catalyst_support.py", line 727, in normpath
    newpath = os.path.normpath(mypath)
  File "/usr/lib/python2.4/posixpath.py", line 377, in normpath
    initial_slashes = path.startswith('/')
AttributeError: 'list' object has no attribute 'startswith'

Reproducible: Always

Steps to Reproduce:
1.edit spec file
2.run catalyst with -f /path/to/specfile
3.

Actual Results:  
Catalyst aborting....
Traceback (most recent call last):
  File "/usr/bin/catalyst", line 384, in ?
    build_target(addlargs, targetmap)
  File "/usr/bin/catalyst", line 200, in build_target
    mytarget=targetmap[addlargs["target"]](conf_values, addlargs)
  File "/usr/lib/catalyst/modules/livecd_stage2_target.py", line 27, in __init__
    generic_stage_target.__init__(self,spec,addlargs)
  File "/usr/lib/catalyst/modules/generic_stage_target.py", line 146, in __init__
    self.set_iso()
  File "/usr/lib/catalyst/modules/generic_stage_target.py", line 307, in set_iso
    self.settings["iso"]=normpath(self.settings[self.settings["spec_prefix"]+"/iso"])
  File "/usr/lib/catalyst/modules/catalyst_support.py", line 727, in normpath
    newpath = os.path.normpath(mypath)
  File "/usr/lib/python2.4/posixpath.py", line 377, in normpath
    initial_slashes = path.startswith('/')
AttributeError: 'list' object has no attribute 'startswith'

Expected Results:  
well, not that ;P

This is the spec file I've been using.

subarch: x86
version_stamp: routerOne-SoHo-Medium
target: livecd-stage2
rel_type: default
profile: default-linux/x86/2006.1
snapshot: 2006.1
source_subpath: default/stage3-x86-2006.1
boot/kernel: routerOne
boot/kernel/routerOne/sources: gentoo-sources
boot/kernel/routerOne/config: /etc/kernels/kernel-config-x86-2.6.19-suspend2-r3-fuzzyWombat
boot/kernel/routerOne/packages: iproute2 hostap-driver hostap-utils madwifi-ng madwifi-ng-tools pcmcia-ng syslog-ng vixie-cron squid squidguard thttpd dropbear udhcp ppp rp-pppoe sqlite openvpn shorewall gentoo-sources
boot/kernel/routerOne/use: pcmcia ipv6 ssl symlink
#boot/kenrel/routerOne/gk_kernargs: --evs2 --dmraid
livecd/fstype: squashfs
livecd/empty: /var/tmp /var/cache /usr/portage
livecd/rm: /lib/*.a /var/log/emerge.log
livecd/unmerge: acl attr autoconf automake bin86 binutils libtool m4 bison ld.so make perl patch linux-headers man-pages sash bison flex gettext texinfo ccache distcc addpatches man groff lib-compat miscfiles rsync sysklogd bc lcms libmng genkernel diffutils libperl gnuconfig gcc-config gcc bin86 cpio cronbase ed expat grub lilo help2man libtool gentoo-sources
livecd/iso: /tmp/routerOne-SoHo-Medium.iso
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2007-04-26 03:22:17 UTC
Uhh, that spec file is for a livecd-stage2 target, not stage4. Stage4 isn't even mentioned anywhere in the bug description or pasted spec file. What are you talking about?
Comment 2 Andrew Gaffney (RETIRED) gentoo-dev 2007-04-26 14:46:53 UTC
Looking deeper into this, you'd only get that error if you were passing multiple values for livecd/iso (or catalyst thought you were). Please attach the spec you are using as an attachment to this bug (leave all comments and everything intact).
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2007-05-03 03:18:42 UTC
Please reopen when you decide to respond to my questions and actually provide some information that would be useful in reproducing this traceback.