Solution to the issue with multiprocessing AttributeError: Can't get attribute 'file_process' on <module '__main__' (built-in)>
Opened this issue · 1 comments
LiangHsunChen commented
Got this error and found a solution: Move file_process() to a different file then import it in main.py. Not sure if this issue happens to others. Just post this issue here for reference.
Reference to solution: stackoverflow
priv-kweihmann commented
@LiangHsunChen out of curiosity - how did you encounter the error?
What code produced this behavior?
Neither calling the tool directly via CLI, nor by importing it into a 3rd party script gave me that kind of error