-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
calculating greens functions breaks pipes #2
Comments
Oh the type error at the end is because As for the broken pipe, are you running the .py file in IPython itself or are you just running |
So after a little digging I found this thread that describes that using the |
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()
The text was updated successfully, but these errors were encountered: