diff --git a/tools/Jupyter/kernel/clingkernel.py b/tools/Jupyter/kernel/clingkernel.py index a8f850b8d1..9bc90a3d92 100644 --- a/tools/Jupyter/kernel/clingkernel.py +++ b/tools/Jupyter/kernel/clingkernel.py @@ -97,7 +97,10 @@ def _banner_default(self): def __init__(self, **kwargs): super(ClingKernel, self).__init__(**kwargs) - clingInPath = shutil.which('cling') + try: + clingInPath = shutil.which('cling') + except AttributeError: + clingInPath = None if not clingInPath: from distutils.spawn import find_executable clingInPath = find_executable('cling')