Having seen a similar error before, my hunch is that this is related to tqdm's use of multiprocessing – and not *first* calling multiprocessing.freeze_support() in your application. I have not tested this in tqdm's case however.
See e.g. GitHub issue 683 https://github.com/pyinstaller/pyinstaller/issues/6368 On Sunday, 30 October 2022 at 09:18:36 UTC dsark...@gmail.com wrote: > The --onedir package (macOS/Catalina) throwing an error while using 'tqdm' > module for an iterable, but no errors while bundling it. Any help, please. -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/691a1162-b33a-4227-a152-9d972025cc30n%40googlegroups.com.