jiaaro / pydub

Manipulate audio with a simple and easy high level interface
http://pydub.com
MIT License
8.76k stars 1.03k forks source link

TypeError: argument of type 'NoneType' is not iterable #512

Open huyvl opened 4 years ago

huyvl commented 4 years ago

Steps to reproduce

  1. This is my code
    path = 'D:/VGGvox/VGGvoxtrainer/voxceleb_trainer/voxceleb/00110.m4a'
    test = AudioSegment.from_file(path, 'aac')
    ##play(test)
    test.export("test.wav", format="wav")
  2. I got this error when I ran it

Traceback (most recent call last): File "dataprep.py", line 156, in convert(args) File "dataprep.py", line 118, in convert test = AudioSegment.from_file(path, 'aac') File "G:\Anaconda\lib\site-packages\pydub\audio_segment.py", line 717, in from_file stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "G:\Anaconda\lib\subprocess.py", line 800, in init restore_signals, start_new_session) File "G:\Anaconda\lib\subprocess.py", line 1148, in _execute_child args = list2cmdline(args) File "G:\Anaconda\lib\subprocess.py", line 555, in list2cmdline needquote = (" " in arg) or ("\t" in arg) or not arg TypeError: argument of type 'NoneType' is not iterable

Expected behavior

File should converted to wav

Actual behavior

Errors show above

Your System configuration

Is there an audio file you can include to help us reproduce?

You can include the audio file in this issue - just put it in a zip file and drag/drop the zip file into the github issue. I dont think the problem is my file, I have this this code with multiple files

GreyAlien502 commented 4 years ago

Can you post the log output before it throws the error? There should be a line like subprocess.call(...).

huyvl commented 4 years ago

Can you post the log output before it throws the error? There should be a line like subprocess.call(...).

Sorry, thats all I got I think