I also tried starting a local cluster using
LocalCluster (cluster = LocalCluster(n_workers=48, processes=True , threads_per_worker=1))
but the result is the same:
/home/659/jj8451/.local/lib/python3.11/site-packages/distributed/node.py:182: UserWarning: Port 8787 is already in use.
Perhaps you already have a cluster running?
Hosting the HTTP server on port 36919 instead
warnings.warn(
2023-07-22 13:36:21,288 - distributed.nanny - ERROR - Failed to start process
Traceback (most recent call last):
File "/home/659/jj8451/.local/lib/python3.11/site-packages/distributed/nanny.py", line 432, in instantiate
result = await self.process.start()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/659/jj8451/.local/lib/python3.11/site-packages/distributed/nanny.py", line 720, in start
await self.process.start()
File "/home/659/jj8451/.local/lib/python3.11/site-packages/distributed/process.py", line 55, in _call_and_set_future
res = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/659/jj8451/.local/lib/python3.11/site-packages/distributed/process.py", line 215, in _start
process.start()
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/process.py", line 121, in start
self._popen = self._Popen(self)
^^^^^^^^^^^^^^^^^
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/context.py", line 288, in _Popen
return Popen(process_obj)
^^^^^^^^^^^^^^^^^^
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/popen_spawn_posix.py", line 32, in __init__
super().__init__(process_obj)
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/popen_fork.py", line 19, in __init__
self._launch(process_obj)
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/popen_spawn_posix.py", line 47, in _launch
reduction.dump(process_obj, fp)
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
TypeError: cannot pickle 'generator' object
2023-07-22 13:36:21,355 - distributed.nanny - ERROR - Failed to start process
Traceback (most recent call last):
File "/home/659/jj8451/.local/lib/python3.11/site-packages/distributed/nanny.py", line 432, in instantiate
result = await self.process.start()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/659/jj8451/.local/lib/python3.11/site-packages/distributed/nanny.py", line 720, in start
await self.process.start()
File "/home/659/jj8451/.local/lib/python3.11/site-packages/distributed/process.py", line 55, in _call_and_set_future
res = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/659/jj8451/.local/lib/python3.11/site-packages/distributed/process.py", line 215, in _start
process.start()
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/process.py", line 121, in start
self._popen = self._Popen(self)
^^^^^^^^^^^^^^^^^
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/context.py", line 288, in _Popen
return Popen(process_obj)
^^^^^^^^^^^^^^^^^^
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/popen_spawn_posix.py", line 32, in __init__
super().__init__(process_obj)
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/popen_fork.py", line 19, in __init__
self._launch(process_obj)
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/popen_spawn_posix.py", line 47, in _launch
reduction.dump(process_obj, fp)
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
TypeError: cannot pickle 'generator' object
2023-07-22 13:36:21,359 - distributed.nanny - ERROR - Failed to start process
Traceback (most recent call last):
File "/home/659/jj8451/.local/lib/python3.11/site-packages/distributed/nanny.py", line 432, in instantiate
result = await self.process.start()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/659/jj8451/.local/lib/python3.11/site-packages/distributed/nanny.py", line 720, in start
await self.process.start()
File "/home/659/jj8451/.local/lib/python3.11/site-packages/distributed/process.py", line 55, in _call_and_set_future
res = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/659/jj8451/.local/lib/python3.11/site-packages/distributed/process.py", line 215, in _start
process.start()
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/process.py", line 121, in start
self._popen = self._Popen(self)
^^^^^^^^^^^^^^^^^
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/context.py", line 288, in _Popen
return Popen(process_obj)
^^^^^^^^^^^^^^^^^^
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/popen_spawn_posix.py", line 32, in __init__
super().__init__(process_obj)
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/popen_fork.py", line 19, in __init__
self._launch(process_obj)
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/popen_spawn_posix.py", line 47, in _launch
reduction.dump(process_obj, fp)
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
TypeError: cannot pickle 'generator' object
2023-07-22 13:36:21,363 - distributed.nanny - ERROR - Failed to start process
Traceback (most recent call last):
File "/home/659/jj8451/.local/lib/python3.11/site-packages/distributed/nanny.py", line 432, in instantiate
result = await self.process.start()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/659/jj8451/.local/lib/python3.11/site-packages/distributed/nanny.py", line 720, in start
await self.process.start()
File "/home/659/jj8451/.local/lib/python3.11/site-packages/distributed/process.py", line 55, in _call_and_set_future
res = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/659/jj8451/.local/lib/python3.11/site-packages/distributed/process.py", line 215, in _start
process.start()
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/process.py", line 121, in start
self._popen = self._Popen(self)
^^^^^^^^^^^^^^^^^
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/context.py", line 288, in _Popen
return Popen(process_obj)
^^^^^^^^^^^^^^^^^^
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/popen_spawn_posix.py", line 32, in __init__
super().__init__(process_obj)
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/popen_fork.py", line 19, in __init__
self._launch(process_obj)
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/popen_spawn_posix.py", line 47, in _launch
reduction.dump(process_obj, fp)
File "/scratch/vp91/Training/environment/lib/python3.11/multiprocessing/reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
TypeError: cannot pickle 'generator' object