leeroybrun / glacier-vault-remove

Remove all archives stored inside an Amazon Glacier vault, even if you have a huge number of them.
379 stars 50 forks source link

Fix starting new process #35

Closed dhermyt closed 6 years ago

dhermyt commented 7 years ago

Fixes error

RuntimeError:
        An attempt has been made to start a new process before the
        current process has finished its bootstrapping phase.

        This probably means that you are not using fork to start your
        child processes and you have forgotten to use the proper idiom
        in the main module:

            if __name__ == '__main__':
                freeze_support()
                ...

        The "freeze_support()" line can be omitted if the program
        is not going to be frozen to produce an executable.
    ForkingPickler(file, protocol).dump(obj)
BrokenPipeError: [Errno 32] Broken pipe
leeroybrun commented 6 years ago

Thanks, when does this error occurs exactly?

dhermyt commented 6 years ago

I just ran this on Windows with Python 3.6 as I remember.

leeroybrun commented 6 years ago

Great, thanks @dhermyt and @eichmmar!