Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ImportError: cannot import name 'logsumexp' on KeyedVectors #2929

Closed
luisaheise opened this issue Sep 1, 2020 · 4 comments
Closed

ImportError: cannot import name 'logsumexp' on KeyedVectors #2929

luisaheise opened this issue Sep 1, 2020 · 4 comments
Labels
need info Not enough information for reproduce an issue, need more info from author

Comments

@luisaheise
Copy link

luisaheise commented Sep 1, 2020

####Problem description

I'm unable to import KeyedVectors.

I guess replacing
from scipy.misc import logsumexp
to
from scipy.special import logsumexp
on the source code should fix it, but I'm not quite sure.

Steps/code/corpus to reproduce

from gensim.models import KeyedVectors

Versions

Linux-5.3.0-61-generic-x86_64-with-Ubuntu-18.04-bionic
Python 3.6.5 (default, Apr 1 2018, 05:46:30)
[GCC 7.3.0]
Bits 64
NumPy 1.19.1
SciPy 1.5.2

@piskvorky
Copy link
Owner

Can you add the full stacktrace + gensim version?

@piskvorky piskvorky added the need info Not enough information for reproduce an issue, need more info from author label Sep 1, 2020
@luisaheise
Copy link
Author

gensim==2.0.0
image

@luisaheise
Copy link
Author

I just noticed that this error only happens in a jupyter notebook

@piskvorky
Copy link
Owner

Gensim 2.0.0 is more than 3 years old. I recommend upgrading.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
need info Not enough information for reproduce an issue, need more info from author
Projects
None yet
Development

No branches or pull requests

2 participants