Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

module 'gensim.models.doc2vec' has no attribute 'FAST_VERSION' #2827

Closed
ecorro opened this issue May 5, 2020 · 3 comments
Closed

module 'gensim.models.doc2vec' has no attribute 'FAST_VERSION' #2827

ecorro opened this issue May 5, 2020 · 3 comments

Comments

@ecorro
Copy link

ecorro commented May 5, 2020

Problem description

What are you trying to achieve? What is the expected result? What are you seeing instead?

Steps/code/corpus to reproduce

Include full tracebacks, logs and datasets if necessary. Please keep the examples minimal ("minimal reproducible example").

Versions

Please provide the output of:

import platform; print(platform.platform())
import sys; print("Python", sys.version)
import numpy; print("NumPy", numpy.__version__)
import scipy; print("SciPy", scipy.__version__)
import gensim; print("gensim", gensim.__version__)
from gensim.models import word2vec;print("FAST_VERSION", word2vec.FAST_VERSION)

Linux-5.3.0-46-generic-x86_64-with-debian-buster-sid
Python 3.7.7 (default, Mar 26 2020, 15:48:22)
[GCC 7.3.0]
NumPy 1.18.4
SciPy 1.4.1
gensim 3.8.3
AttributeError: module 'gensim.models.doc2vec' has no attribute 'FAST_VERSION'

The issue is that the FAST_VERSION attribute is not there anymore in this new version. All works well in Gensim 3.8.1

@piskvorky
Copy link
Owner

piskvorky commented May 5, 2020

Cannot replicate. It is very fishy that "word2vec.FAST_VERSION" returns an error for a different class, "gensim.models.doc2vec has no attribute 'FAST_VERSION".

Are you sure you're running the code shown?

@piskvorky piskvorky added the need info Not enough information for reproduce an issue, need more info from author label May 5, 2020
@ecorro
Copy link
Author

ecorro commented May 5, 2020

Yes, I'm sure, I actually used Jupyter's attribute browser to verify manually and the FAST_VERSION attribute was not there. I removed Gensim and other pacakges from that virtual env (all generated with conda) and I can't reproduce the output not. I'll try to reproduce the setup this evening and will share the setup steps to provide the whoe detail. Thanks.

@ecorro
Copy link
Author

ecorro commented May 5, 2020

I just gave it another try with a new environment and could not reproduce the problem either. I'm not sure what happened in the first place. So all good and sorry for the inconvenience. T

@ecorro ecorro closed this as completed May 5, 2020
@mpenkov mpenkov removed the need info Not enough information for reproduce an issue, need more info from author label Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants