[yt-users] problem running yt in parallel

Professor Maller amaller at citytech.cuny.edu
Sat Dec 13 11:51:18 PST 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20141213/301a2c47/attachment.htm>
-------------- next part --------------
_______________________________________________
yt-users mailing list
yt-users at lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org


More information about the yt-users mailing list