Throwing an error while executing the tqdm module

154 views
Skip to first unread message

Debabrata Sarkar

unread,
Oct 30, 2022, 5:18:36 AM10/30/22
to PyInstaller
The --onedir package (macOS/Catalina) throwing an error while using 'tqdm' module for an iterable, but no errors while bundling it. Any help, please.

Bede Constantinides

unread,
Oct 30, 2022, 7:36:28 AM10/30/22
to PyInstaller
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

Debabrata Sarkar

unread,
Nov 4, 2022, 3:17:45 AM11/4/22
to PyInstaller
Many a thanks! Resolved.

from multiprocessing import freeze_support
freeze_support()
<code body>
..................................

for i in tqdm(iterable):
    <for loop body>
................................,.

<code body>
Reply all
Reply to author
Forward
0 new messages