Public bug reported:
Hi,
I formatted a device directly with mkfs.vfat (mkfs.vfat -I /dev/sdc) and
usb-creator was happy to try to write to that, but it then failed with:
[17:15:51] Source CD:
/home/lool/isos/ubuntu/cdimage/daily-live/current/jaunty-desktop-i386.iso
[17:15:51] Destination disk: /dev/sdc
[17:15:51] Persistence size: 1432109056 MB
[17:15:52] Traceback (most recent call last):
[17:15:52] File
"/usr/lib/python2.5/site-packages/usbcreator/gtk_frontend.py", line 476, in
install
[17:15:52] self.backend.install_bootloader()
[17:15:52] File "/usr/lib/python2.5/site-packages/usbcreator/backend.py",
line 457, in install_bootloader
[17:15:52] num = re.match('.*([0-9]+)$', tmp).groups()[0]
[17:15:52] AttributeError: 'NoneType' object has no attribute 'groups'
The fix to avoid the exception and usb-creator hanging seems simple enough,
changing:
num = re.match('.*([0-9]+)$', tmp).groups()[0]
to:
match = re.match('.*([0-9]+)$', tmp)
num = None
if match:
num = match.groups()[0]
is enough to properly get a popup that partition number detection
failed; of course it would be better to be able to proceed, but there's
probably a reason why it's not allowed.
Cheers
** Affects: usb-creator (Ubuntu)
Importance: Undecided
Status: New
--
Python exception when attempting to write to full device
https://bugs.launchpad.net/bugs/325375
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs