diff --git a/loopy/preprocess.py b/loopy/preprocess.py
index 665a5c8a1372d85731b87de5d2fdddb1b0d05a42..f9cd3f3eb2140354decf61b475ba1742d5ea6832 100644
--- a/loopy/preprocess.py
+++ b/loopy/preprocess.py
@@ -27,12 +27,11 @@ import six
 import numpy as np
 from loopy.diagnostic import (
         LoopyError, WriteRaceConditionWarning, warn,
-        LoopyAdvisory)
+        LoopyAdvisory, DependencyTypeInferenceFailure)
 
 from pytools.persistent_dict import PersistentDict
 from loopy.tools import LoopyKeyBuilder
 from loopy.version import DATA_MODEL_VERSION
-from loopy.diagnostic import DependencyTypeInferenceFailure, LoopyError
 
 import logging
 logger = logging.getLogger(__name__)