elastic / ember

Elastic Malware Benchmark for Empowering Researchers
Other
949 stars 277 forks source link

create_metadata(datadir) RuntimeError #39

Open brianchankobe opened 4 years ago

brianchankobe commented 4 years ago

When I was ready to use the create_metadata() to create a csv file for dataset, there is an error showing below: `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 just called the ember.create_metadata("./dataset/")

Why did I have this error?

mrphilroth commented 4 years ago

I've never seen this error. The page below leads me to believe this is a Windows issue with multiprocessing. You could try running that function call as a script protected by the if __name__ == '__main__': call. Or maybe you need to do that and add the call to freeze_support(). I haven't tested on Windows myself, so I'm sorry I can't help you further.

https://stackoverflow.com/questions/24374288/where-to-put-freeze-support-in-a-python-script