Adding --collect-binaries=tables should fix the issue, as suggested in this thread (even though the error message there isn't exactly the same): https://github.com/pyinstaller/pyinstaller/issues/7408
--collect-binaries=tables