Parentheses or spaces or special chars in filenames block image writing

Bug #317320 reported by Jamu Kakar on 2009-01-15
102
This bug affects 17 people
Affects Status Importance Assigned to Milestone
USB ImageWriter
High
Unassigned

Bug Description

I cancelled a download of a USB image, part way through. When I
redownloaded it, Firefox renamed it to image(2).img, instead of
image.img. I selected this file in ImageWriter, along with the USB
key I wanted to write to, but ImageWriter would hang (not freeze,
just not do anything), with no activity or message shown in the
progress bar, after clicking the 'OK' button on the 'Don't pull out
you're USB key if you click OK' dialog.

if the files ren and thy use it then can the image be use

Saxius (demo-teamnord) on 2009-04-02
description: updated
Oliver Grawert (ogra) on 2009-04-17
Changed in usb-imagewriter:
importance: Undecided → High
status: New → Triaged
CreativeThings (niels-het) wrote :

I can confirm this bug.
Writing filename ubuntu-9.04-netbook-remix-i386(2).img fails with the followinf traceback:
0
Traceback (most recent call last):
  File "/usr/lib/imagewriter/imagewriter.py", line 112, in do_write
    self.raw_write(source, target)
  File "/usr/lib/imagewriter/imagewriter.py", line 150, in raw_write
    src_size = float(data.stdout.readline().split()[4])*1.0
IndexError: list index out of range
Image: /srv/users/niels/Desktop/ubuntu-9.04-netbook-remix-i386(2).img
Target Device: Verbatim STORE N GO (/dev/sdc)

Renaming the file to ubuntu-9.04-netbook-remix-i386.img makes the problem go away

Oliver Grawert (ogra) wrote :

the same seems to happen with spaces in the imagepath

Oliver Grawert (ogra) on 2009-09-08
summary: - Parentheses in filenames block image writing
+ Parentheses or spaces in filenames block image writing
Oliver Grawert (ogra) on 2009-09-16
summary: - Parentheses or spaces in filenames block image writing
+ Parentheses or spaces or special chars in filenames block image writing
BuM (bumaw) wrote :

Linux bum-laptop 2.6.32-24-generic #42-Ubuntu SMP Fri Aug 20 14:24:04 UTC 2010 i686 GNU/Linux

Ubuntu 10.04.1 LTS

Traceback (most recent call last):
  File "/usr/lib/imagewriter/imagewriter.py", line 112, in do_write
    self.raw_write(source, target)
  File "/usr/lib/imagewriter/imagewriter.py", line 166, in raw_write
    size = float(target_size)*100/float(src_size)
ValueError: invalid literal for float(): skopiowane

Matthew Prawl (matthewprawl) wrote :

Same bug for me too:

Traceback (most recent call last):
  File "/usr/lib/imagewriter/imagewriter.py", line 112, in do_write
    self.raw_write(source, target)
  File "/usr/lib/imagewriter/imagewriter.py", line 150, in raw_write
    src_size = float(data.stdout.readline().split()[4])*1.0
IndexError: list index out of range
Image: /media/Expansion Drive/Software Sources/install-amd64-minimal-20110317.iso
Target Device: Verbatim Store n Go Drive (/dev/sdc)

The5thHorseman (rickccna-d) wrote :

I experienced the same bug, no error msg, just hangs. However, no Parentheses or spaces in path. There were hyphens in directory names. Moved .img file to home folder, ran ImageWriter again and it began writing to the memory card normally.
Could length of the path be an issue as well?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers