  import re
  import six
  
-diff --git a/lalinference/python/lalinference/distance.py b/lalinference/python/lalinference/distance.py
+diff --git a/python/lalinference/distance.py b/python/lalinference/distance.py
 index d57b917482..45fa335002 100644
---- a/lalinference/python/lalinference/distance.py
-+++ b/lalinference/python/lalinference/distance.py
+--- a/python/lalinference/distance.py
++++ b/python/lalinference/distance.py
 @@ -640,5 +640,5 @@ def parameters_to_marginal_moments(prob, distmu, distsigma):
      r2bar = (prob * (np.square(diststd) + np.square(distmean))).sum()
      return rbar, np.sqrt(r2bar - np.square(rbar))

-from lalinference.bayestar.deprecation import warn
+from .bayestar.deprecation import warn
 warn('ligo.skymap.coordinates.eigenframe')
diff --git a/lalinference/python/lalinference/healpix_tree.py b/lalinference/python/lalinference/healpix_tree.py
index a229688037..f21dcef047 100644
--- a/lalinference/python/lalinference/healpix_tree.py
+++ b/lalinference/python/lalinference/healpix_tree.py
@@ -430,5 +430,5 @@ def reconstruct_nested(m, order='depthfirst', extra=True):
     for _ in func(m, extra):
         yield _

-from lalinference.bayestar.deprecation import warn
+from .bayestar.deprecation import warn
 warn('ligo.skymap.healpix_tree')
diff --git a/python/lalinference/kde.py b/python/lalinference/kde.py
index b0b1074de2..fd3424df17 100644
--- a/python/lalinference/kde.py
+++ b/python/lalinference/kde.py
@@ -112,5 +112,5 @@ class BoundedKDE(gaussian_kde):
 
         return np.count_nonzero(self(self.dataset) < self(pt)) / self.n
