Shutil same file error
See original GitHub issueDescribe the bug Shutil same file error
To Reproduce Log input audio at beginning of every epoch with
wandb.log({"Input audio": [wandb.Audio(inputs[0].cpu().squeeze().numpy(), sample_rate=train_dataset.get_audio_rate())]})
Expected behavior Logged without issues.
Screenshots
Operating System
- OS: Ubuntu 20.04
- Browser chrome
- Wandb Version 0.10.11
Additional context Audio is displayed properly on wandb. However, code crashes with this error after 2 epochs. Replicated multiple times on different machines. Handling the exception during the log does not seem to work for some reason.
Issue Analytics
- State:
- Created 3 years ago
- Comments:19 (8 by maintainers)
Top Results From Across the Web
Disable SameFileError exception in shutil.copy - Stack Overflow
The shutil._samefile function check if the source and destination files are the same (It will be called always, so the copy doesn't have...
Read more >"are the same file" error in shutil.copy - Python Forum
I have a piece of code that used to copy a file before processing it. Now, there is no such need because file...
Read more >Python Examples of shutil.SameFileError - ProgramCreek.com
Python shutil. The following are 22 code examples of shutil. SameFileError(). You can vote up the ones you like or vote down the...
Read more >shutil — High-level file operations — Python 3.11.1 ...
Source code: Lib/shutil.py The shutil module offers a number of high-level operations on ... If src and dst specify the same file, SameFileError...
Read more >shutil.SameFileError while copy slave files #1080 - GitHub
This error is new in python 3. exception shutil.SameFileError This exception is raised if source and destination in copyfile() are the same file....
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
Awesome, glad to hear you can continue with your work! Thanks for the kind feedback - we are always here to help. Please let us know if you run into further issues.
Yep, insanity in terms of logging thousands of file is fixed by moving that line. Which makes sense.
To reproduce this I would suggest trying to log the same audio and video file 100,000 times or something like that, and see if it gives off a similar bug.
No worries btw, thanks so much for the awesome tool, I think it’s really great. And ofc thanks for your time.