problem running yt in parallel
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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
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-t... 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@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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Hi Ari, A pull request has been issued, should be in shortly. Watching the issue will send a notification when it's in. -Matt On Sat, Dec 13, 2014 at 2:08 PM, Nathan Goldbaum <nathan12343@gmail.com> wrote:
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-t...
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@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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (3)
-
Matthew Turk
-
Nathan Goldbaum
-
Professor Maller