Skip to content

Multiprocess does not work with PyInstaller #117

Open

Description

@ughstudios

Is there a way to make multiprocess work with pyinstaller builds? The built in multiprocessing module has support for this using the freeze_support() function.

Activity

  1. mmckerns commented on Oct 21, 2022

    @mmckerns
    Member

    Can you give me more details, and maybe show me what you are experiencing? I would expect multiprocessing to work, as it's part of the python distribution and nothing needs to be installed. The multiprocess install is pure python, but is slightly non-standard (due to setup.py detecting the version of python being used and then building from the correct version of the multiprocess source). The freeze_support code in multiprocess is identical to the code in multiprocessing.

  2. gkane26 commented on Dec 16, 2025

    @gkane26

    I just ran into this problem too! This has nothing to do with the multiprocess library -- turns out that Pyinstaller patches multiprocessing.freeze_support / multiprocessing.spawn.freeze_support; see their patch here.

    I was able to fix this issue by patching multiprocess.freeze_support in the same way at the top of my script :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions