Re: [et-mgmt-tools] cobbler list -> NameError: global name 'sorted' is not defined

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael DeHaan wrote:
Tru Huynh wrote:
hi,

[tru@casewell RPMS]$ cobbler list
defaults
kernel options : append devfs=nomount ramdisk_size=16438 lang= vga=788 ksdevice=eth0

Traceback (most recent call last):
  File "/usr/bin/cobbler", line 19, in ?
    sys.exit(app.main())
File "/usr/lib/python2.3/site-packages/cobbler/cobbler.py", line 310, in main
    BootCLI(sys.argv).run()
File "/usr/lib/python2.3/site-packages/cobbler/cobbler.py", line 71, in run
    self.curry_args(self.args[1:], self.commands['toplevel'])
File "/usr/lib/python2.3/site-packages/cobbler/cobbler.py", line 255, in curry_args
    commands[args[0]](args[1:])
File "/usr/lib/python2.3/site-packages/cobbler/cobbler.py", line 83, in list
    print item.printable()
File "/usr/lib/python2.3/site-packages/cobbler/collection.py", line 92, in printable
    values = sorted(self.listing.values())
NameError: global name 'sorted' is not defined

:(

Tru

Ok, this is now fixed (as is koan's dependency on subprocess) in the hg repo.

http://hg.et.redhat.com/hg/emd/applications/cobbler
http://hg.et.redhat.com/hg/emd/applications/koan

I'm in the process of setting up a RHEL4 box to verify everything in "make test" (cobbler) still passes.

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

From current testing, at least two things are problematic in terms of koan on python2.3/RHEL4.

(A) koan doesn't look in /usr/lib[64]/python2.3 for modules and needs to. This is an easy fix, if a bit hackish -- it will still work well.

(B) koan probably shouldn't use urlgrabber for RHEL4. If it's in Centos, I'll add it as an RPM dependency. Let me know. Eventually koan may move to use something else.

FC-5 and FC-6 work great :)





[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux