From 275f0b0dfbb9b6d267bdeee3f32fa63b42ffeeb6 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Wed, 4 Mar 2020 21:25:38 -0500 Subject: [PATCH] Add python details on Import error (#1140) --- python/meep.i | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/meep.i b/python/meep.i index 3c8498c1e..f5cda5b98 100644 --- a/python/meep.i +++ b/python/meep.i @@ -1571,8 +1571,8 @@ PyObject *_get_array_slice_dimensions(meep::fields *f, const meep::volume &where if with_mpi(): try: from mpi4py import MPI - except ImportError: - print('\n**\n** failed to load python MPI module (mpi4py)\n**\n') + except ImportError as e: + print('\n**\n** failed to load python MPI module (mpi4py)\n**', e, '\n**\n') pass else: # this variable reference is needed for lazy initialization of MPI