MSRF-Net_PyTorch icon indicating copy to clipboard operation
MSRF-Net_PyTorch copied to clipboard

line 136, in _check_not_importing_main is not going to be frozen to produce an executable.''')

Open TOMSLAUS opened this issue 2 years ago • 1 comments

Hello, when trying to run your code i keep getting this error,

`

Line 136, in _check_not_importing_main
    is not going to be frozen to produce an executable.''')
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.

`

I tried to look into it myself but no luck. Could you please suggest what to do to fix this?

TOMSLAUS avatar Feb 19 '22 17:02 TOMSLAUS

Hey @TOMSLAUS, the error refers to some file explicitly? I mean, you can see a line with a name of a file in the error? It would help to debug the error

amlarraz avatar Feb 27 '22 12:02 amlarraz