question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FileNotFoundError

See original GitHub issue

Hi! 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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
TSSladecommented, Jun 15, 2020

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

1reaction
lagmoellertimcommented, Jun 11, 2020

Good Idea, I’m going to implement that!

Edit: It’s now in the 1.0.3 release 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found