From: Benjamin R. <ben...@ou...> - 2011-05-23 21:14:55
|
On Mon, May 23, 2011 at 12:11 PM, Ben Gamari <bga...@gm...> wrote: > On Mon, 23 May 2011 09:35:57 -0400, Michael Droettboom <md...@st...> > wrote: > > Generating the thumbnails has no additional requirements (it uses > > matplotlib's image module to scale the images). However, it may be a > > problem with multiprocessing -- the thumbnails are generated in parallel > > on multi-core machines. I haven't had problems myself, but it seems > > multiprocessing doesn't always work in certain environments. > > > > Can you do me a favor? Can you edit gen_gallery.py and replace the line > > beginning with "pool.map" to just "map" and let me know if that resolves > > this issue? If it does, perhaps we should not use multiprocessing here. > > > Given this seems to be one of the longer stages of the build process, > I'd appreciate if if we identified and fixed the underlying problem and > not simply sweep it under the rug. > > - Ben > > Don't have a lot of time because I am on travel right now, but I think I figured out the cause. For whatever reason, there was some sort of missing file error that caused the generation of the thumbnails to drop down to the debugger prompt. When within the multiprocessing pool, everything just pauses, but nothing shows because the input is disconnected. After a call to clean, I was able to run the docs with and without "pool". I hope that is a useful tip that could help figure out how to prevent a unresponsive process. Ben Root |