Public bug reported: Hi
ubuntu-vm-builder --help 2010-02-24 18:43:03,359 DEBUG : Loading plugins Traceback (most recent call last): File "/usr/bin/ubuntu-vm-builder", line 24, in <module> uvb.main() File "/usr/lib/python2.6/dist-packages/VMBuilder/contrib/cli.py", line 35, in main self.set_usage(optparser) File "/usr/lib/python2.6/dist-packages/VMBuilder/contrib/cli.py", line 230, in set_usage optparser.set_usage('%prog hypervisor suite [options]') NameError: global name 'optparser' is not defined After changing set_usage to take an optparser argument instead of vm: def set_usage(self, optparser): optparser.set_usage('%prog hypervisor suite [options]') #optparser.arg_help = (('hypervisor', optparser.hypervisor_help), ('suite', self.suite_help)) (and disabling that second line which uses hypervisor_help), I get: 2010-02-24 18:46:40,430 DEBUG : Loading plugins Traceback (most recent call last): File "/usr/bin/ubuntu-vm-builder", line 24, in <module> uvb.main() File "/usr/lib/python2.6/dist-packages/VMBuilder/contrib/cli.py", line 54, in main distro_name = sys.argv[2] IndexError: list index out of range which seems worth fixing too Thanks ProblemType: Bug Architecture: amd64 Date: Wed Feb 24 18:43:54 2010 DistroRelease: Ubuntu 10.04 Package: ubuntu-vm-builder 0.12.0-0ubuntu1 PackageArchitecture: all ProcEnviron: LANGUAGE=fr_FR.UTF-8 PATH=(custom, user) LANG=fr_FR.UTF-8 SHELL=/bin/zsh ProcVersionSignature: Ubuntu 2.6.32-14.20-generic SourcePackage: vm-builder Uname: Linux 2.6.32-14-generic x86_64 ** Affects: vm-builder (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug lucid -- NameError: global name 'optparser' is not defined https://bugs.launchpad.net/bugs/527234 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs