orario[3] is an integer. Try and make it a string with: str(orario[3]) Then you would have: cfr2=str("/usr/share/flipclock/")+str(orario[3])+".png"