Red Hat Bugzilla – Bug 364061
'Nonetype' object has no attribute 'parse_args'
Last modified: 2007-11-30 17:12:21 EST
Description of problem:
pykickstart doesn't load kickstart files
Version-Release number of selected component (if applicable):
ksvalidator any kickstart file
Steps to Reproduce:
1. Run ksvalidator:
[kanarip@elwood ~]$ ksvalidator fedora-7-gold.cfg
'NoneType' object has no attribute 'parse_args'
$? == 0
This also occurs when loading a kickstart file in pykickstart, or
system-config-kickstart for that matter.
Full traceback of a Revisor run:
Kickstart file not good.
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/revisor/load_kickstart.py", line 199,
File "/usr/lib/python2.5/site-packages/revisor/load_kickstart.py", line 166,
File "/usr/lib/python2.5/site-packages/revisor/cfg.py", line 493, in
File "/usr/lib/python2.5/site-packages/revisor/kickstart.py", line 59, in
File "/usr/lib/python2.5/site-packages/pykickstart/parser.py", line 675, in
self._stateMachine (lambda: fh.readline())
File "/usr/lib/python2.5/site-packages/pykickstart/parser.py", line 553, in
File "/usr/lib/python2.5/site-packages/pykickstart/parser.py", line 407, in
File "/usr/lib/python2.5/site-packages/pykickstart/base.py", line 321, in
File "/usr/lib/python2.5/site-packages/pykickstart/commands/method.py", line
81, in parse
(opts, extra) = op.parse_args(args=args)
AttributeError: 'NoneType' object has no attribute 'parse_args'
KickStart files that I used are attached for your convenience.
Created attachment 246831 [details]
Simple KS file created using Kickstart
Created attachment 246841 [details]
default revisor ks file
This is fixed in pykickstart-1.19-1, which should be in the F8 trees.
1.18 is still in the F8 trees
http://koji.fedoraproject.org/koji/buildinfo?buildID=22039 has not been pushed
to updates or updates/testing yet.
My update seems to have disappeared. I will get the errata re-made and
hopefully this time it will get pushed. I blame doing it right around the
release time. As to why 1.19-1 is not in F8, I have no explanation for this. I
requested it to be done but it just didn't happen.
pykickstart-1.19-1.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.