Closed MaximSavin closed 3 years ago
Hi! Thank you for reporting! The ppl
functionality is experimental.
I can repeat this on Mac and can't repeat this on Linux with Python 3.8 on both OS. Looks like the threading works different on Mac and Linux.
Sad but the builtins
will not help.
If you can debug the threading on Mac it will be great. I will take a look into this when I have more time.
Please star the repo if you like the idea of pipeliner.
Thanks!
On MacOS global variables are not accessible from child processes (multiprocessing.Pool):
on Python 3.8 mac multiprocessing switched to spawn you have to use https://docs.python.org/3/library/multiprocessing.shared_memory.html to share content between processes or pass it to be pickled in the args of imap_unordered
I've fixed the error and made release xontrib-pipeliner 0.3.3 but there are known issues around multicore pipelining on Mac that described in the "Known issues" section in the README now. Thanks for reporting this!
I'm trying to use
ppl
with this pipefind . | ppl "str(num) + ' ' + line"
and get error.any idea how to fix it?
Maybe have to import builtins?