Closed JSai23 closed 6 years ago
This often means "File not found". Are you sure that the path is correct?
Yes the path is correct for sure Im on windows
I dont know if that could be causing the problem
Traceback (most recent call last):
File "main.py", line 169, in
That is the full error traceback
Really Sorry, I wasn't reading the error correctly, when I extracted it created an extract folder with the files so in the end the path was wrong. THANK YOU SOOOO MUCH.
No problem ;-)
Don't create the output_timit by yourself
For example in PyCharm check your working directory in configuration of interpreter
I would like to know what the exact error is because I need to except the error as it is not an issue for me but excepting RuntimeError
or SystemError
excepts the error.
You can see the error message in the traceback above. Otherwise, just try to open a nonexistent file.
The errors mentioned my message previously are the only two errors presented! excepting both of them didn't work. Please let me know if you need more information.
As far as Python is concerned, these are RuntimeError
instances. The error messages are provided by libsndfile. This includes the "System Error" string. You can look up the exact error behavior in the libsndfile documentation.
Also note that this is not a commercial support line. If anyone here is helping you it is because you asked nicely, not because you "need" anything. Please refrain from acting entitled, and be as helpful as possible if you want our help.
Please refrain from acting entitled, and be as helpful as possible if you want our help.
Did I come out rude? I'm sorry if that's the case, I absolutely didn't mean it! and also, yes, I'll look into the libsndfile documentation.
Error opening 'LibriSpeech/LibriSpeech/train-other-500/1353/122456/1353-122456-0002.wav': System error.
I have this error while I have the file inside the folder also this is the whole error trace
RuntimeError Traceback (most recent call last)
8 frames /usr/local/lib/python3.7/dist-packages/soundfile.py in _error_check(err, prefix) 1355 if err != 0: 1356 err_str = _snd.sf_error_number(err) -> 1357 raise RuntimeError(prefix + _ffi.string(err_str).decode('utf-8', 'replace')) 1358 1359
RuntimeError: Error opening 'LibriSpeech/LibriSpeech/train-other-500/1353/122456/1353-122456-0002.wav': System error.
The file probably does not exist. Try opening the file with open()
to make sure.
For what it's worth, I was getting this error because I created a directory using WORKDIR in my Dockerfile, which was created without write permissions.
Problem:
WORKDIR /app
python soundfile_app.py
Solution:
WORKDIR /app
RUN chmod 777 /app
python soundfile_app.py
Another thing to try that worked for me is to check if your path is relative. I had a path like this, "~/filename.wav" which threw an error but when explicitly defining the full path, it worked.
I keep getting this error message. Any help would be great! raise RuntimeError(prefix + _ffi.string(err_str).decode('utf-8', 'replace')) RuntimeError: Error opening 'data/NSDTSEA/clean_testset_wav/p232_001.wav': System error.
maybe you can try an absolute pathname, I replace the relative pathname with the absolute pathname, then I solve the ploblem!
I keep getting this error message. Any help would be great! raise RuntimeError(prefix + _ffi.string(err_str).decode('utf-8', 'replace')) RuntimeError: Error opening 'data/NSDTSEA/clean_testset_wav/p232_001.wav': System error.