[yt-users] problem running yt in parallel

Nathan Goldbaum nathan12343 at gmail.com
Sat Dec 13 12:08:39 PST 2014


Hi Ari,

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.

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.

I've opened an issue to track this:
https://bitbucket.org/yt_analysis/yt/issue/956/enable_parallelism-dies-due-to-missing

If you have a bitbucket account, you can watch the issue to get e-mail
updates.

Hopefully we should have this fixed soon.

-Nathan


On Sat, Dec 13, 2014 at 11:51 AM, Professor Maller <
amaller at citytech.cuny.edu> wrote:
>
> Hi Everyone,
>
> I'm having trouble using yt in parallel.  I'm getting an error message;
> AttributeError: 'module' object has no attribute 'rootLogger'
>
> I'm running this simple test script
> #test_script.py
> import yt
> yt.enable_parallelism(suppress_logging=True, communicator=None)
> # Load the dataset
> filename='Data/enzo_cosmology_plus/DD0046/DD0046'
> ds=yt.load(filename)
> v,c=ds.find_max("density")
> print v,c
>
> this runs fine when just executing python test_script.py, but if I do
> mpirun -np 4 python test_script.py
> I get the following
>
> yt : [INFO     ] 2014-12-13 14:49:40,188 Global parallel computation
> enabled: 1 / 4
> yt : [INFO     ] 2014-12-13 14:49:40,188 Global parallel computation
> enabled: 2 / 4
> yt : [INFO     ] 2014-12-13 14:49:40,188 Global parallel computation
> enabled: 3 / 4
> yt : [INFO     ] 2014-12-13 14:49:40,188 Global parallel computation
> enabled: 0 / 4
> Traceback (most recent call last):
>   File "create_catalog.py", line 3, in <module>
> Traceback (most recent call last):
>   File "create_catalog.py", line 3, in <module>
> Traceback (most recent call last):
>   File "create_catalog.py", line 3, in <module>
> Traceback (most recent call last):
>   File "create_catalog.py", line 3, in <module>
>     yt.enable_parallelism(suppress_logging=True, communicator=None)
>   File
> "/home/amaller/yt-x86_64/src/yt-hg/yt/utilities/parallel_tools/parallel_analysis_interface.py",
> line 116, in enable_parallelism
>     yt.enable_parallelism(suppress_logging=True, communicator=None)
>   File
> "/home/amaller/yt-x86_64/src/yt-hg/yt/utilities/parallel_tools/parallel_analysis_interface.py",
> line 116, in enable_parallelism
>     yt.enable_parallelism(suppress_logging=True, communicator=None)
>   File
> "/home/amaller/yt-x86_64/src/yt-hg/yt/utilities/parallel_tools/parallel_analysis_interface.py",
> line 116, in enable_parallelism
>     yt.enable_parallelism(suppress_logging=True, communicator=None)
>   File
> "/home/amaller/yt-x86_64/src/yt-hg/yt/utilities/parallel_tools/parallel_analysis_interface.py",
> line 116, in enable_parallelism
>     if len(yt.utilities.logger.rootLogger.handlers) > 0:
> AttributeError: 'module' object has no attribute 'rootLogger'
>     if len(yt.utilities.logger.rootLogger.handlers) > 0:
>     if len(yt.utilities.logger.rootLogger.handlers) > 0:
> AttributeError: 'module' object has no attribute 'rootLogger'
> AttributeError: 'module' object has no attribute 'rootLogger'
>     if len(yt.utilities.logger.rootLogger.handlers) > 0:
> AttributeError: 'module' object has no attribute 'rootLogger'
>
>
> ===================================================================================
> =   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
> =   EXIT CODE: 1
> =   CLEANING UP REMAINING PROCESSES
> =   YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
> ===========================================================
>
> Any thoughts would be greatly appreciated.
>
> Ari
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20141213/9ea10de8/attachment.html>


More information about the yt-users mailing list