  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.distance')
diff --git a/lalinference/python/lalinference/eigenframe.py b/lalinference/python/lalinference/eigenframe.py
index c4dc04c44a..f00ac3fe3b 100644
--- a/lalinference/python/lalinference/eigenframe.py
+++ b/lalinference/python/lalinference/eigenframe.py
@@ -120,5 +120,5 @@ def eigenframe_to_icrs(from_coo, to_frame):
                             from_coo.e_y.xyz.value,
                             from_coo.e_z.xyz.value))

-from lalinference.bayestar.deprecation import warn
+from .bayestar.deprecation import warn
 warn('ligo.skymap.kde')
diff --git a/python/lalinference/moc.py b/python/lalinference/moc.py
index ed89c8efe8..614186b60d 100644
--- a/python/lalinference/moc.py
+++ b/python/lalinference/moc.py
@@ -131,5 +131,5 @@ def rasterize(moc_data):
     """
     return _moc.rasterize(moc_data)
