My problem is happening with this setup :
- Pycharm 2020.3 pro
- multiprocessing.Pool
- Macbook pro 2020 (M1)
- Conda python 3.8
And most of all, it happens when I use the debugger of pycharm.
It shows 8 times (number of processes) in the console :
Error loading: /Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/pydevd_attach_to_process/attach_x86_64.dylib
Every processes are executed. Results are correct. I can see them with htop command. So it's only a debugger failure and doesn't really impact code execution (correct me if I am wrong).
This is the kind of code I run :
def func(x):
return x+10
if __name__ == '__main__':
poo = Pool()
x = [[i] for i in range(10)]
res = poo.starmap(func, x)
print(res)
I can ignore for now those massive printing in my console but it's not really convenient. If someone has an idea to get rid of those...