8000 Release v0.3.3: Fix error with temp file read access on Windows · eivtho/pytesseract · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

v0.3.3

@int3l int3l tagged this 01 Mar 19:42
Attempting to access the temp file after creation on Windows will trigger Permission Error.
The fix is to set the the delete flag to False (which is a quick and dirty hack),
which allows Python to 'release' the file handle, resulting in successful subsequent read access under Windows.

Docs reference: https://docs.python.org/3/library/tempfile.html#tempfile.NamedTemporaryFile
`Whether the name can be used to open the file a second time, while the named temporary file is still open,
varies across platforms (it can be so used on Unix; it cannot on Windows NT or later)`

Fixes #255
Assets 2
Loading
0