Skip to content

Recombine crashing but seeming to finish. FileNotFoundError: [Errno 2] No such file or directory: #93

Description

@uglygus
Traceback (most recent call last):
  File "/Users/cooper/homebrew/Cellar/python@3.10/3.10.4/Frameworks/Python.framework/Versions/3.10/lib/python3.10/shutil.py", line 813, in move
    os.rename(src, real_dst)
OSError: [Errno 57] Socket is not connected: '/Volumes/Maxine-shared/timelapse 2022/2022-04-22 triple glass_JPG_1/DSC02721.JPG' -> '/Volumes/Maxine-shared/timelapse 2022/2022-04-22 triple glass_JPG~recombined_20220618_104646/00905.JPG'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/cooper/homebrew/bin/recombine", line 33, in <module>
    sys.exit(load_entry_point('frameoverframe', 'console_scripts', 'recombine')())
  File "/Users/cooper/DM-Shared/code/frameoverframe/frameoverframe/cli/recombine__main__.py", line 127, in main
    recombine(
  File "/Users/cooper/DM-Shared/code/frameoverframe/frameoverframe/recombine.py", line 308, in recombine
    shutil.move(item, item_dest)
  File "/Users/cooper/homebrew/Cellar/python@3.10/3.10.4/Frameworks/Python.framework/Versions/3.10/lib/python3.10/shutil.py", line 833, in move
    copy_function(src, real_dst)
  File "/Users/cooper/homebrew/Cellar/python@3.10/3.10.4/Frameworks/Python.framework/Versions/3.10/lib/python3.10/shutil.py", line 434, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/Users/cooper/homebrew/Cellar/python@3.10/3.10.4/Frameworks/Python.framework/Versions/3.10/lib/python3.10/shutil.py", line 254, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/Volumes/Maxine-shared/timelapse 2022/2022-04-22 triple glass_JPG_1/DSC02721.JPG'

It would be good to count the total number of images at the start and double check that we have that many again at the end. I'm not sure what is going on here? The folder ended up having the same final number of images in the _ARW and the _JPG so if there was an error it must have been the same. Also there was no ~recombine folder left after the crash.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions