FileNotFoundError
See original GitHub issueHi! I get the following error when trying to use unsilence. Thank you!
Rendering Intervals... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
Combining Intervals... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0% -:--:--
Traceback (most recent call last):
File "/usr/lib/python3.9/shutil.py", line 803, in move
os.rename(src, real_dst)
FileNotFoundError: [Errno 2] No such file or directory: '/home/dilson/Documentos/.tmp/6af8866c-3d1f-4139-abbc-839bba6da3a7/out_final.mp4' -> '/home/dilson/Documentos/teste.mp4'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/dilson/.local/bin/unsilence", line 11, in <module>
sys.exit(main())
File "/home/dilson/.local/lib/python3.9/site-packages/unsilence/command_line/EntryPoint.py", line 19, in main
run()
File "/home/dilson/.local/lib/python3.9/site-packages/unsilence/command_line/EntryPoint.py", line 101, in run
continual.render_media(
File "/home/dilson/.local/lib/python3.9/site-packages/unsilence/Unsilence.py", line 96, in render_media
renderer.render(self.__input_file, output_file, self.__intervals, **kwargs)
File "/home/dilson/.local/lib/python3.9/site-packages/unsilence/lib/render_media/MediaRenderer.py", line 125, in render
shutil.move(final_output, output_file)
File "/usr/lib/python3.9/shutil.py", line 817, in move
copy_function(src, real_dst)
File "/usr/lib/python3.9/shutil.py", line 432, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.9/shutil.py", line 261, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/home/dilson/Documentos/.tmp/6af8866c-3d1f-4139-abbc-839bba6da3a7/out_final.mp4'
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Built-in Exceptions — Python 3.11.1 documentation
exception FileNotFoundError¶. Raised when a file or directory is requested but doesn't exist. Corresponds to errno ENOENT . exception InterruptedError¶.
Read more >[SOLVED] Python filenotfounderror - A Quick Guide - AskPython
It is a system message that the compiler throws when you are trying to execute a command that requires a file that the...
Read more >Python FileNotFoundError: [Errno 2] No such file or directory ...
Any message with the contents FileNotFoundError indicates that Python cannot find the file you are referencing. Python raises this error because your program ......
Read more >Python raising FileNotFoundError for file name returned by os ...
It is because os.listdir does not return the full path to the file, only the filename part; that is 'foo.txt' , when open...
Read more >FileNotFoundError: [Errno 2] No such ... - Net-Informations.Com
When you open a file with the name "filename.ext"; you are telling the open() function that your file is in the current working...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
FWIW, it appears the issue may have been related to my working with a strictly audio input. When I issue the same command, but with the
-ao
flag enabled, I encounter no problems:unsilence engage-ny-147641946.wav engage-ny-147641946_dampened.wav -ao -av 1 -sv 0
Good Idea, I’m going to implement that!
Edit: It’s now in the 1.0.3 release 😃