It turns out that pyinstaller inherits the old W32 260 character limit on file paths. This was causing scanner.exe to crash when it hit a long path. This version does not fix the problem, but at least it doesn't crash. Instead, it logs the error, and moves on. The problem only affects the binary release. 'python3 scanner.py' scans long paths without issue.