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.

Shutil same file error

See original GitHub issue

Describe 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 image

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

github_iconTop GitHub Comments

1reaction
tssweeneycommented, Dec 9, 2020

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.

0reactions
miraodasilvacommented, Dec 9, 2020

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.

Read more comments on GitHub >

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

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