Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [WinError 2] The system cannot find the file specified - subprocess - tid = _winapi.CreateProcess(executable, args #159

Open
Dedale42 opened this issue Sep 3, 2024 · 1 comment

Comments

@Dedale42
Copy link

Dedale42 commented Sep 3, 2024

C:\Users\Me\Documents\code_files\sortphotos-master\src>python sortphotos.py C:\Users\Me\Pictures\Photo C:\Users\Me\Pictures\Photobydate --rename %Y_%m%d_%H%M
Traceback (most recent call last):
  File "C:\Users\Me\Documents\code_files\sortphotos-master\src\sortphotos.py", line 503, in <module>
    main()
  File "C:\Users\Me\Documents\code_files\sortphotos-master\src\sortphotos.py", line 497, in main
    sortPhotos(args.src_dir, args.dest_dir, args.sort, args.rename, args.recursive,
  File "C:\Users\Me\Documents\code_files\sortphotos-master\src\sortphotos.py", line 304, in sortPhotos
    with ExifTool(verbose=verbose) as e:
  File "C:\Users\Me\Documents\code_files\sortphotos-master\src\sortphotos.py", line 193, in __enter__
    self.process = subprocess.Popen(
                   ^^^^^^^^^^^^^^^^^
  File "C:\Users\Me\scoop\apps\python\current\Lib\subprocess.py", line 1022, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\Me\scoop\apps\python\current\Lib\subprocess.py", line 1491, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified

Run into this error any clues

@Sillium007
Copy link
Contributor

It tries to start ExifTool. Seems like you don't have it installed or at least not installed where it is expected to be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants