[Bug 612082] Re: optparser attribute missing in cli.py

Daniel Holbert dholbert+launchpad at gmail.com
Fri Dec 3 09:28:11 GMT 2010


I had this exact problem, and I just figured out what was going wrong.

It turned out to be that I'd passed a nonexistent file to "--part" in my
vmbuilder command. (In the bug-reporter's case -- I'm not sure whether
--part accepts relative paths or not, but if you're sure that
vmbuilder.partition exists, you might try specifying the *full path* to
that file.)

So as I understand it, this problem arises from user error in specifying
the "--part" argument.  HOWEVER -- there is still a bug here -- the
vmbuilder script tries to be helpful with a warning message, but it ends
up falling over and dying because it tries to print the message via a
nonexistent attribute.  So instead of a warning message, the user gets a
cryptic exception backtrace.

** Summary changed:

- optparser attribute missing in cli.py
+ optparser attribute missing in cli.py (warning-message-printing fail when --part is given a nonexistent file)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in ubuntu.
https://bugs.launchpad.net/bugs/612082

Title:
  optparser attribute missing in cli.py (warning-message-printing fail when --part is given a nonexistent file)



More information about the Ubuntu-server-bugs mailing list