diff --git a/numcodecs/blosc.pyx b/numcodecs/blosc.pyx index 3bfdc00c..340be8a4 100644 --- a/numcodecs/blosc.pyx +++ b/numcodecs/blosc.pyx @@ -79,6 +79,8 @@ try: mutex = multiprocessing.Lock() except OSError: mutex = None +except ImportError: + mutex = None # store ID of process that first loads the module, so we can detect a fork later _importer_pid = os.getpid()