PDA

View Full Version : [LIVE] Issue with installXBMC.py


grajea
2009-06-21, 14:07
I've a problem while using the script to install 9.04.1 iso live image into a bootable usb.

Running the command
sudo ./installXBMCFromISO.sh

fails with the following message:

...
File "./installXBMC.py", line 43, in diskSizeKB
nBytes = int(diskusage)
ValueError: invalid literal for int() with base 10: ''


I've seen that the scripts only works with english version of fdisk, so i've to change line 42 of installXBMC.py from

diskusage, retCode = runSilent('fdisk -l ' + aVolume + ' | grep "Disk ' + aVolume + '" | cut -f 5 -d " "')
to
diskusage, retCode = runSilent('fdisk -l ' + aVolume + ' | grep "Disco ' + aVolume + '" | cut -f 5 -d " "')

in order to detect the available partitions.

After this all worked fine.

Hope this helps somebody with the same issue

Hannes The Hun
2009-06-21, 14:16
DISCO!

http://www.abload.de/img/avatar1711_05ak7.gif (http://www.abload.de/image.php?img=avatar1711_05ak7.gif)

... sorry, just had to do this ;)

mess82
2009-07-03, 01:24
hi,
try editing the file "instalXBMC.py".

Make the row 42 like this:
diskusage, retCode = runSilent('fdisk -l ' + aVolume + ' | grep "' + aVolume + '" | cut -f 5 -d " "')

I'm on a kubuntu 9.10.

Bye

jasvazquez
2009-10-18, 12:08
I've a problem while using the script to install 9.04.1 iso live image into a bootable usb.

Running the command
sudo ./installXBMCFromISO.sh

fails with the following message:

...
File "./installXBMC.py", line 43, in diskSizeKB
nBytes = int(diskusage)
ValueError: invalid literal for int() with base 10: ''


I've seen that the scripts only works with english version of fdisk, so i've to change line 42 of installXBMC.py from

diskusage, retCode = runSilent('fdisk -l ' + aVolume + ' | grep "Disk ' + aVolume + '" | cut -f 5 -d " "')
to
diskusage, retCode = runSilent('fdisk -l ' + aVolume + ' | grep "Disco ' + aVolume + '" | cut -f 5 -d " "')

in order to detect the available partitions.

After this all worked fine.

Hope this helps somebody with the same issue

As you can read in this blog (http://andalinux.wordpress.com/2009/10/03/cambiar-el-idioma-de-las-aplicaciones-en-la-terminal/) another option is to execute a
export LANG=C
before calling the
sudo ./installXBMCFromISO.sh

This way you get the same result without modifying the script :nod: