I was running convert_dir_mp3_to_wav and I was having some problems. I came across the following errors:
line 50: os.system(command.decode('unicode_escape').encode('ascii', 'ignore').replace("\0", ""))
I get the following error: AttributeError: 'str' object has no attribute 'decode'.
When applying the encodefunction followed by decode, it worked:
os.system(command.encode('ascii', 'ignore').decode('unicode_escape').replace("\0", ""))
line 48:" -ac " + str(num_channels) + "" + filename + "\""
In the string of the avconv command, I believe that a space " " is missing between the number of channels and the filename.
Hello!
I was running
convert_dir_mp3_to_wav
and I was having some problems. I came across the following errors:os.system(command.decode('unicode_escape').encode('ascii', 'ignore').replace("\0", ""))
I get the following error:
AttributeError: 'str' object has no attribute 'decode'
. When applying theencode
function followed bydecode
, it worked:os.system(command.encode('ascii', 'ignore').decode('unicode_escape').replace("\0", ""))
" -ac " + str(num_channels) + "" + filename + "\""
In the string of the avconv command, I believe that a space" "
is missing between the number of channels and the filename.Aer these errors valid? Thank you!