Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in face_detector.py #4

Open
upretiii00 opened this issue Sep 26, 2020 · 0 comments
Open

error in face_detector.py #4

upretiii00 opened this issue Sep 26, 2020 · 0 comments

Comments

@upretiii00
Copy link

upretiii00 commented Sep 26, 2020

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant