<div dir="ltr">Hi Ari,<div><br></div><div>Thanks for the report! This is a genuine bug, due to a pull request that was merged just a few days ago that removed the rootLogger.</div><div><br></div><div>If you update to the change before the pull request was merged (changeset hash bca4a05), this issue should go away. Let us know if you need help updating to the old version.</div><div><br></div><div>I've opened an issue to track this: <a href="https://bitbucket.org/yt_analysis/yt/issue/956/enable_parallelism-dies-due-to-missing">https://bitbucket.org/yt_analysis/yt/issue/956/enable_parallelism-dies-due-to-missing</a></div><div><br></div><div>If you have a bitbucket account, you can watch the issue to get e-mail updates.</div><div><br></div><div>Hopefully we should have this fixed soon.</div><div><br></div><div>-Nathan</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 13, 2014 at 11:51 AM, Professor Maller <span dir="ltr"><<a href="mailto:amaller@citytech.cuny.edu" target="_blank">amaller@citytech.cuny.edu</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Everyone,<div><br></div><div>I'm having trouble using yt in parallel.  I'm getting an error message; </div><div>AttributeError: 'module' object has no attribute 'rootLogger'</div><div><br></div><div>I'm running this simple test script </div><div>#test_script.py </div><div><div>import yt</div><div>yt.enable_parallelism(suppress_logging=True, communicator=None)</div><div># Load the dataset</div><div>filename='Data/enzo_cosmology_plus/DD0046/DD0046'</div><div>ds=yt.load(filename)</div><div>v,c=ds.find_max("density")</div><div>print v,c</div></div><div><br></div><div>this runs fine when just executing python test_script.py, but if I do </div><div>mpirun -np 4 python test_script.py  </div><div>I get the following</div><div><br></div><div><div>yt : [INFO     ] 2014-12-13 14:49:40,188 Global parallel computation enabled: 1 / 4</div><div>yt : [INFO     ] 2014-12-13 14:49:40,188 Global parallel computation enabled: 2 / 4</div><div>yt : [INFO     ] 2014-12-13 14:49:40,188 Global parallel computation enabled: 3 / 4</div><div>yt : [INFO     ] 2014-12-13 14:49:40,188 Global parallel computation enabled: 0 / 4</div><div>Traceback (most recent call last):</div><div>  File "create_catalog.py", line 3, in <module></div><div>Traceback (most recent call last):</div><div>  File "create_catalog.py", line 3, in <module></div><div>Traceback (most recent call last):</div><div>  File "create_catalog.py", line 3, in <module></div><div>Traceback (most recent call last):</div><div>  File "create_catalog.py", line 3, in <module></div><div>    yt.enable_parallelism(suppress_logging=True, communicator=None)</div><div>  File "/home/amaller/yt-x86_64/src/yt-hg/yt/utilities/parallel_tools/parallel_analysis_interface.py", line 116, in enable_parallelism</div><div>    yt.enable_parallelism(suppress_logging=True, communicator=None)</div><div>  File "/home/amaller/yt-x86_64/src/yt-hg/yt/utilities/parallel_tools/parallel_analysis_interface.py", line 116, in enable_parallelism</div><div>    yt.enable_parallelism(suppress_logging=True, communicator=None)</div><div>  File "/home/amaller/yt-x86_64/src/yt-hg/yt/utilities/parallel_tools/parallel_analysis_interface.py", line 116, in enable_parallelism</div><div>    yt.enable_parallelism(suppress_logging=True, communicator=None)</div><div>  File "/home/amaller/yt-x86_64/src/yt-hg/yt/utilities/parallel_tools/parallel_analysis_interface.py", line 116, in enable_parallelism</div><div>    if len(yt.utilities.logger.rootLogger.handlers) > 0:</div><div>AttributeError: 'module' object has no attribute 'rootLogger'</div><div>    if len(yt.utilities.logger.rootLogger.handlers) > 0:</div><div>    if len(yt.utilities.logger.rootLogger.handlers) > 0:</div><div>AttributeError: 'module' object has no attribute 'rootLogger'</div><div>AttributeError: 'module' object has no attribute 'rootLogger'</div><div>    if len(yt.utilities.logger.rootLogger.handlers) > 0:</div><div>AttributeError: 'module' object has no attribute 'rootLogger'</div><div><br></div><div>===================================================================================</div><div>=   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES</div><div>=   EXIT CODE: 1</div><div>=   CLEANING UP REMAINING PROCESSES</div><div>=   YOU CAN IGNORE THE BELOW CLEANUP MESSAGES</div></div><div>===========================================================</div><div><br></div><div>Any thoughts would be greatly appreciated.</div><div><br></div><div>Ari</div><div><br></div></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div></div>