gregversteeg / corex_topic

Hierarchical unsupervised and semi-supervised topic models for sparse count data with CorEx
Apache License 2.0
627 stars 120 forks source link

scipy compatibility problems after anaconda upgrade #38

Closed toth12 closed 4 years ago

toth12 commented 4 years ago

upon the import of corex I get the following error

Traceback (most recent call last): File "", line 1, in File "/miniconda3/lib/python3.7/site-packages/corextopic/corextopic.py", line 25, in from scipy.misc import logsumexp # Tested with 0.13.0 ImportError: cannot import name 'logsumexp' from 'scipy.misc' (/miniconda3/lib/python3.7/site-packages/scipy/misc/init.py)

solution might be here: https://github.com/cvxgrp/cvxpy/issues/640 (I can import: "from scipy.special import logsumexp")

ryanjgallagher commented 4 years ago

Thanks for your patience on this.

I'm a little confused why you may be getting an error because I think this was resolved by #27. The code first tries to import from scipy.special and only tries to import from scipy.misc if it can't find logsumexp there.

Here are the relevant lines of code currently.

Could it be something with your local package paths?