Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with MPI logging #178

Closed
ejpaul opened this issue Dec 21, 2021 · 1 comment · Fixed by #184 or #187
Closed

Error with MPI logging #178

ejpaul opened this issue Dec 21, 2021 · 1 comment · Fixed by #184 or #187

Comments

@ejpaul
Copy link
Contributor

ejpaul commented Dec 21, 2021

I am running into an error with calling initialize_logging() with mpi=True. This can be seen by running the 1_Simple/logging_example.py, whose output is copied below.

Running 1_Simple/logger_example.py

Hello (times 1) from serial job
Hello (times 2) from serial job
Traceback (most recent call last):
File "/Users/elizabeth/opt/miniconda3/envs/vmec2000_conda/lib/python3.8/logging/config.py", line 563, in configure
handler = self.configure_handler(handlers[name])
File "/Users/elizabeth/opt/miniconda3/envs/vmec2000_conda/lib/python3.8/logging/config.py", line 723, in configure_handler
if issubclass(klass, logging.handlers.MemoryHandler) and
TypeError: issubclass() arg 1 must be a class

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "examples/1_Simple/logger_example.py", line 25, in
initialize_logging(mpi=True, filename='mpi.log')
File "/Users/elizabeth/opt/miniconda3/envs/vmec2000_conda/lib/python3.8/site-packages/simsopt-0.6.1.dev129+gbdf9974-py3.8-macosx-10.9-x86_64.egg/simsopt/util/logging.py", line 45, in initialize_logging
logging.config.dictConfig(config_dict)
File "/Users/elizabeth/opt/miniconda3/envs/vmec2000_conda/lib/python3.8/logging/config.py", line 808, in dictConfig
dictConfigClass(config).configure()
File "/Users/elizabeth/opt/miniconda3/envs/vmec2000_conda/lib/python3.8/logging/config.py", line 570, in configure
raise ValueError('Unable to configure handler '
ValueError: Unable to configure handler 'mpi_file_handler'

@mbkumar
Copy link
Collaborator

mbkumar commented Dec 22, 2021

@ejpaul, I'll take a look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants