In addition to the changes addressed already, I had to make the following edits in order to import ddr. In **lib/python3.8/site-packages/gensim/models/ldamodel.py**: from scipy.misc import logsumexp --> from scipy.special import logsumexp