Ditto same here on RHEL 5 with latest master branch and PyYAML from epel ... seems to happen when item.tmpl has nothing to render
Cheers, Simon --- [email protected] wrote: From: "Montgomery, Philip" <[email protected]> To: "cobbler mailing list" <[email protected]> Subject: RE: [CONFIRMED] the webapp and the zero length file problem isaYAMLbug... solution / testing welcome Date: Wed, 4 Mar 2009 18:48:29 -0600 Looks like I spoke a little soon. When I login to the web interface, it displays a traceback. Mod_python error: "PythonHandler index" Traceback (most recent call last): File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch result = object(req) File "/var/www/cobbler/web/index.py", line 130, in handler content = func( **form ) File "/usr/lib/python2.4/site-packages/cobbler/webui/CobblerWeb.py", line 125, in index vdata =self.remote.extended_version() File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__ return self.__send(self.__name, args) File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request verbose=self.__verbose File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request return self._parse_response(h.getfile(), sock) File "/usr/lib64/python2.4/xmlrpclib.py", line 1286, in _parse_response return u.close() File "/usr/lib64/python2.4/xmlrpclib.py", line 744, in close raise Fault(**self._stack[0]) Fault: /var/log/cobbler/cobbler.log shows: 2009-03-04 19:34:39,705 - api - Exception occured: exceptions.AttributeError 2009-03-04 19:34:39,706 - api - Exception value: 'dict' object has no attribute 'next' 2009-03-04 19:34:39,706 - api - Exception Info: File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 792, in _dispatch return method_handle(*params) File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 469, in extended_version return self.api.version(extended=True) File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 184, in version data = yaml.load(fd.read()).next() If I type in the URL such as 'http://192.168.1.1/cobbler/web/?mode=ksfile_list', I can gain access to the cobbler webUI and all seems to work ok. -Phil -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Montgomery, Philip Sent: Monday, March 02, 2009 3:00 PM To: cobbler mailing list Subject: RE: [CONFIRMED] the webapp and the zero length file problem isaYAMLbug... solution / testing welcome Looking good for me so far. Thanks. -Phil -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Michael DeHaan Sent: Monday, March 02, 2009 9:16 AM To: cobbler mailing list Subject: Re: [CONFIRMED] the webapp and the zero length file problem is aYAMLbug... solution / testing welcome >> File "/var/www/cobbler/web/index.py", line 24, in ? >> import cobbler.yaml as yaml >> >> ImportError: No module named yaml >> >> >> > > Sorry about that, chief. > > Looks like I'm not done removing all the old references -- will get > this done Monday and post up when I have it. We have some more time > before we get PyYAML into EPEL4 (I'd imagine at least a few days for the > review stuff to get sorted out). > > I presumably had a last vestige of that module installed that allowed > that to continue through. > > --Michael > > Last references to the old parser are now scrubbed. Good to go. _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler This e-mail, and any documents or data attached hereto, is intended for the intended recipients only. It may contain confidential and/or privileged information and no rights have been waived by the sender. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby NOTIFIED that any dissemination, distribution, retention, archiving or copying of this communication is strictly prohibited. If you have received this e-mail in error, please notify me at the telephone number shown above or by return mail and delete this communication and any copy immediately. MEC provides no assurances that this e-mail and its attachments are virus free; you are responsible for scanning all e-mails and attachments for viruses. MEC disclaims all liability for damages caused by any virus which may be transmitted by this email. Thank you. _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
