The system cannot find the file specified #1671
|
I'm on Windows 11. I'm trying to OCR this PDF file with The output file appears to be fine and OCRed. Why I'm getting all these errors? |
Answered by
God-damnit-all
Aug 21, 2026
Replies: 2 comments
|
Seems to be related to it looking up registry keys for the software it uses, I was confused as well because I installed these things via Scoop. def registry_path_ghostscript(env=None) -> Iterator[Path]:
del env # unused (but needed for protocol)
try:
with winreg.OpenKey(
winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Artifex\GPL Ghostscript"
) as k:
latest_gs = max(
registry_subkeys(k), key=ghostscript_version_key, default=(0, 0, 0)
)
with winreg.OpenKey(
winreg.HKEY_LOCAL_MACHINE, rf"SOFTWARE\Artifex\GPL Ghostscript\{latest_gs}"
) as k:
for _, gs_path, _ in registry_values(k):
yield Path(gs_path) / 'bin'
except OSError as e:
log.warning(e)
def registry_path_tesseract(env=None) -> Iterator[Path]:
del env # unused (but needed for protocol)
try:
with winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Tesseract-OCR") as k:
for subkey, val, _valtype in registry_values(k):
if subkey == 'InstallDir':
tesseract_path = Path(val)
yield tesseract_path
except OSError as e:
log.warning(e) |
0 replies
Answer selected by
jbarlow83
|
This is a bug (it's just a message while exploring different places your supporting programs could be) - will be fixed in next release |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems to be related to it looking up registry keys for the software it uses, I was confused as well because I installed these things via Scoop.