Using Windows 10, python 3.7.6, running the juypter notebook pleiades_intro.ipynb works great, but running the same code in a .py file in ipython causes the following error:
File "C:\Users\l284987\Documents\Python Scripts\pleiades-develop\temp.py", line 40, in
brb.grid = RZgrid
File "C:\Users\l284987\Documents\Python Scripts\pleiades-develop\pleiades\core.py", line 1751, in grid
comp.grid = grid
File "C:\Users\l284987\Documents\Python Scripts\pleiades-develop\pleiades\core.py", line 944, in grid
self.compute_greens()
File "C:\Users\l284987\Documents\Python Scripts\pleiades-develop\pleiades\core.py", line 885, in compute_greens
p.start()
File "C:\Users\l284987\anaconda3\lib\multiprocessing\process.py", line 112, in start
self._popen = self._Popen(self)
File "C:\Users\l284987\anaconda3\lib\multiprocessing\context.py", line 223, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "C:\Users\l284987\anaconda3\lib\multiprocessing\context.py", line 322, in _Popen
return Popen(process_obj)
File "C:\Users\l284987\anaconda3\lib\multiprocessing\popen_spawn_win32.py", line 89, in init
reduction.dump(process_obj, to_child)
File "C:\Users\l284987\anaconda3\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
BrokenPipeError: [Errno 32] Broken pipe
I tried inserting:
for c in brb.components:
c.nprocs=1
right before:
brb.grid = RZgrid
but it failed to set the number of processors used to 1, it gave the following error:
File "C:\Users\l284987\Documents\Python Scripts\pleiades-develop\temp.py", line 40, in
c.nprocs=1
File "C:\Users\l284987\Documents\Python Scripts\pleiades-develop\pleiades\core.py", line 963, in nprocs
if len(new_nprocs) != self._num_groups:
TypeError: object of type 'int' has no len()
Using Windows 10, python 3.7.6, running the juypter notebook pleiades_intro.ipynb works great, but running the same code in a .py file in ipython causes the following error:
File "C:\Users\l284987\Documents\Python Scripts\pleiades-develop\temp.py", line 40, in
brb.grid = RZgrid
File "C:\Users\l284987\Documents\Python Scripts\pleiades-develop\pleiades\core.py", line 1751, in grid
comp.grid = grid
File "C:\Users\l284987\Documents\Python Scripts\pleiades-develop\pleiades\core.py", line 944, in grid
self.compute_greens()
File "C:\Users\l284987\Documents\Python Scripts\pleiades-develop\pleiades\core.py", line 885, in compute_greens
p.start()
File "C:\Users\l284987\anaconda3\lib\multiprocessing\process.py", line 112, in start
self._popen = self._Popen(self)
File "C:\Users\l284987\anaconda3\lib\multiprocessing\context.py", line 223, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "C:\Users\l284987\anaconda3\lib\multiprocessing\context.py", line 322, in _Popen
return Popen(process_obj)
File "C:\Users\l284987\anaconda3\lib\multiprocessing\popen_spawn_win32.py", line 89, in init
reduction.dump(process_obj, to_child)
File "C:\Users\l284987\anaconda3\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
BrokenPipeError: [Errno 32] Broken pipe
I tried inserting:
for c in brb.components:
c.nprocs=1
right before:
brb.grid = RZgrid
but it failed to set the number of processors used to 1, it gave the following error:
File "C:\Users\l284987\Documents\Python Scripts\pleiades-develop\temp.py", line 40, in
c.nprocs=1
File "C:\Users\l284987\Documents\Python Scripts\pleiades-develop\pleiades\core.py", line 963, in nprocs
if len(new_nprocs) != self._num_groups:
TypeError: object of type 'int' has no len()