davilla / atvusb-creator

Automatically exported from code.google.com/p/atvusb-creator
26 stars 53 forks source link

Fails silently with Apple logo in filename #522

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download the Apple TV firmware to a local disk.
2. Rename it to a name including the Apple logo, for example "tv firmware"
3. Start atvusb-creator and select the firmware file
4. Select a USB device and click Create 

What is the expected output? What do you see instead?
Expected: either creation works regardless of the presence of the Apple logo in 
the name (preferred!) or an error message appears informing 
the user of what has gone wrong.

Actual: atvusb-creator appears to be taking a very long time to extract the EFI 
file when in fact it has terminated. The only clue to this is in the 
console log:

17–05–2010 19:53:52 [0x0-0x2c22c2].com.atvusb.creator[81118]    Traceback 
(most recent call last):
17–05–2010 19:53:52 [0x0-0x2c22c2].com.atvusb.creator[81118]      File 
"/Users/Amet/Desktop/atvusb-creator-1.0.b13/atvusb-
creator.app/Contents/Resources/lib/python2.5/site-packages/liveusb/gui.py", 
line 186, in run
17–05–2010 19:53:52 [0x0-0x2c22c2].com.atvusb.creator[81118]      File 
"/Users/Amet/Desktop/atvusb-creator-1.0.b13/atvusb-
creator.app/Contents/Resources/lib/python2.5/site-packages/liveusb/creator.py", 
line 673, in extract_bootefi
17–05–2010 19:53:52 [0x0-0x2c22c2].com.atvusb.creator[81118]      File 
"/Users/tinyclanger/Downloads/atvusb-creator-1.0.b13/atvusb-
creator.app/Contents/Resources/lib/python2.5/site-packages/commands.pyc", line 
53, in getstatusoutput
17–05–2010 19:53:52 [0x0-0x2c22c2].com.atvusb.creator[81118]        
17–05–2010 
19:53:52    [0x0-0x2c22c2].com.atvusb.creator[81118]    UnicodeEncodeError: 'ascii' 
codec can't encode character u'\uf8ff' in 
position 57: ordinal not in range(128)
17–05–2010 19:59:22 [0x0-0x2c22c2].com.atvusb.creator[81118]    Traceback 
(most recent call last):
17–05–2010 19:59:22 [0x0-0x2c22c2].com.atvusb.creator[81118]      File 
"/Users/Amet/Desktop/atvusb-creator-1.0.b13/atvusb-
creator.app/Contents/Resources/lib/python2.5/site-packages/liveusb/gui.py", 
line 186, in run
17–05–2010 19:59:22 [0x0-0x2c22c2].com.atvusb.creator[81118]      File 
"/Users/Amet/Desktop/atvusb-creator-1.0.b13/atvusb-
creator.app/Contents/Resources/lib/python2.5/site-packages/liveusb/creator.py", 
line 673, in extract_bootefi
17–05–2010 19:59:22 [0x0-0x2c22c2].com.atvusb.creator[81118]      File 
"/Users/tinyclanger/Downloads/atvusb-creator-1.0.b13/atvusb-
creator.app/Contents/Resources/lib/python2.5/site-packages/commands.pyc", line 
53, in getstatusoutput
17–05–2010 19:59:22 [0x0-0x2c22c2].com.atvusb.creator[81118]        
17–05–2010 
19:59:22    [0x0-0x2c22c2].com.atvusb.creator[81118]    UnicodeEncodeError: 'ascii' 
codec can't encode character u'\uf8ff' in 
position 57: ordinal not in range(128)
17–05–2010 20:00:32 [0x0-0x2c22c2].com.atvusb.creator[81118]    [creator:867] 
Cleaning up...

What version of the product are you using? On what operating system?
1.0-b13 on Mac OS 10.6.3.

Please provide any additional information below.

Original issue reported on code.google.com by wotnosp...@gmail.com on 18 May 2010 at 5:12

GoogleCodeExporter commented 9 years ago
sorry, unicode filenames not permitted. in other words, get rid of the "".

Original comment by sdavi...@gmail.com on 18 May 2010 at 5:41

GoogleCodeExporter commented 9 years ago
Sure, I realised that — but the issue is that the app fails silently rather 
than telling the user what he's done 
wrong…

Original comment by wotnosp...@gmail.com on 29 May 2010 at 9:23

GoogleCodeExporter commented 9 years ago
UnicodeEncodeError: 'ascii' codec can't encode character u'\uf8ff' in 

Sounds like it told you what you had done wrong. 

Original comment by Sam.Nazarko on 29 May 2010 at 4:08