Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have imported a python file it contains a class in it it has a function and one of the function has "process" it calls another function. i am getting the error freeze_support() while executing: p = Process(target=run_collector, args=(self.workload,))


What I have tried:

I have tried keeping if __name__= "__main__": before process. then it's not executing because its not __main__ as I am calling this from another file
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900