On 2009-06-19, Arlie <arlie.c at gmail.com> wrote: > print 'Duree du fichier : ',buf,' millisecondes' You can obviously make sure that 'buf' can be accessed as a string. > time.sleep(int(buf)/1000) The error seems to be having issues converting buf to an int. Could you possibly convert it to a string before converting it to an int? time.sleep(int(str(buf))/1000)