pandarallel
pandarallel copied to clipboard
libc++abi.dylib: terminating with uncaught exception of type std::runtime_error:
Hi, I decided to try this package but I it seems like there are some cleanup issues for running processes. I was running code in Jupyterlab and after KeyboardInterrupt of a parallel_apply
I face issues:
I get the following:
libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: Couldn't close file
/usr/local/Caskroom/miniconda/base/lib/python3.7/site-packages/pandarallel/pandarallel.py in closure(data, func, *args, **kwargs)
421 worker_meta_args = get_worker_meta_args(data)
422 reduce_meta_args = get_reduce_meta_args(data)
--> 423 manager = Manager()
424 queue = manager.Queue()
425
/usr/local/Caskroom/miniconda/base/lib/python3.7/multiprocessing/context.py in Manager(self)
54 from .managers import SyncManager
55 m = SyncManager(ctx=self.get_context())
---> 56 m.start()
57 return m
58
/usr/local/Caskroom/miniconda/base/lib/python3.7/multiprocessing/managers.py in start(self, initializer, initargs)
565 # get address of server
566 writer.close()
--> 567 self._address = reader.recv()
568 reader.close()
569
/usr/local/Caskroom/miniconda/base/lib/python3.7/multiprocessing/connection.py in recv(self)
248 self._check_closed()
249 self._check_readable()
--> 250 buf = self._recv_bytes()
251 return _ForkingPickler.loads(buf.getbuffer())
252
/usr/local/Caskroom/miniconda/base/lib/python3.7/multiprocessing/connection.py in _recv_bytes(self, maxsize)
405
406 def _recv_bytes(self, maxsize=None):
--> 407 buf = self._recv(4)
408 size, = struct.unpack("!i", buf.getvalue())
409 if maxsize is not None and size > maxsize:
/usr/local/Caskroom/miniconda/base/lib/python3.7/multiprocessing/connection.py in _recv(self, size, read)
381 if n == 0:
382 if remaining == size:
--> 383 raise EOFError
384 else:
385 raise OSError("got end of file during message")
EOFError:
I'm on a Mac Catalina btw. and I don't know how to rid this issue. I which I could terminate this gracefully without the need to restart the kernel.