<div dir="ltr">On Sat, Jun 2, 2018 at 12:34 AM Christoph Baumgarten <<a href="mailto:christoph.baumgarten@gmail.com">christoph.baumgarten@gmail.com</a>> wrote:<br>><br>> Hi,<br>><br>> I would like to ask for help with PR 8681.<br>><br>> I want to use the function rvs_ratio_unif from stats/stats.py to generate random variates in stats/_continuous_distributions.py<br>><br>> In_continuous_distributions.py, I use "from . import stats" which does not work with 2.7 and 3.4, I assume it is a circular reference from the error message below:<br><br><div>Yes. You can't use `scipy.stats.stats` in `scipy.stats._continuous_distns`. At least, not as a top-level import. You might locally import `rvs_ratio_unif` inside the method where it is used, with appropriate comments. Otherwise, you may find another place to define that function where both modules can import it.<br><br>--<br>Robert Kern</div></div>