You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The line audio_writer = wave.open(os.path.join(cropped_audio_path,audio.replace(".wav", "frame" + str(idx)+ ".wav")), 'w') is not creating a wav file ,instead its giving a FileNotFoundError: [Errno 2] No such file or directory error. Other sprevious statements which created new directories are working fine.
This is the whole error stack
Traceback (most recent call last):
File "scripts/data_generator/face_detector.py", line 128, in
audio_writer = wave.open(audio_writer_path, 'w')
File "C:\Users\91992\AppData\Local\Programs\Python\Python37\lib\wave.py", line 512, in open
return Wave_write(f)
File "C:\Users\91992\AppData\Local\Programs\Python\Python37\lib\wave.py", line 305, in init
f = builtins.open(f, 'wb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\91992\PycharmProjects\wav2pix-master\dataset\Harry\audio\ScopeGlobalVariablesandGlobalKeyword_PythonTutorialsForA
bsoluteBeginnersInHindi33-im7Z1jKMGao_frames\ScopeGlobalVariablesandGlobalKeyword_PythonTutorialsForAbsoluteBeginnersInHindi33-im7Z1jKMGao_preprocessed_frame_0.wav'
Exception ignored in: <function Wave_write.del at 0x000001D7A4EC2E58>
Traceback (most recent call last):
File "C:\Users\91992\AppData\Local\Programs\Python\Python37\lib\wave.py", line 327, in del
self.close()
File "C:\Users\91992\AppData\Local\Programs\Python\Python37\lib\wave.py", line 444, in close
if self._file:
AttributeError: 'Wave_write' object has no attribute '_file'
The text was updated successfully, but these errors were encountered:
The line audio_writer = wave.open(os.path.join(cropped_audio_path,audio.replace(".wav", "frame" + str(idx)+ ".wav")), 'w') is not creating a wav file ,instead its giving a FileNotFoundError: [Errno 2] No such file or directory error. Other sprevious statements which created new directories are working fine.
This is the whole error stack
The text was updated successfully, but these errors were encountered: