diff --git a/umu/umu_run.py b/umu/umu_run.py index 1d527b49c..a9a763ea1 100755 --- a/umu/umu_run.py +++ b/umu/umu_run.py @@ -10,7 +10,12 @@ from concurrent.futures import Future, ThreadPoolExecutor from ctypes import CDLL, c_int, c_ulong from errno import ENETUNREACH -from importlib.resources.abc import Traversable + +try: + from importlib.resources.abc import Traversable +except ModuleNotFoundError: + from importlib.abc import Traversable + from logging import DEBUG, INFO, WARNING from pathlib import Path from pwd import getpwuid