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

ModuleNotFoundError: No module named 'smart_open.compression' #23

Open
Ehsan125 opened this issue Jan 22, 2023 · 0 comments
Open

ModuleNotFoundError: No module named 'smart_open.compression' #23

Ehsan125 opened this issue Jan 22, 2023 · 0 comments

Comments

@Ehsan125
Copy link

Thank you for this wonderful github repository, i am struggling in reproducing your results, but when i run this command
python src/app.py it gives the error of ModuleNotFoundError: No module named 'smart_open.compression
below is the complete error details which i am confronting.

Traceback (most recent call last):
  File "/home/ehsan-bi/Downloads/Intelligent_Document_Finder-master/src/app.py", line 17, in <module>
    from gensim.parsing.preprocessing import STOPWORDS
  File "/home/ehsan-bi/DF-USF/lib/python3.9/site-packages/gensim/__init__.py", line 11, in <module>
    from gensim import parsing, corpora, matutils, interfaces, models, similarities, utils  # noqa:F401
  File "/home/ehsan-bi/DF-USF/lib/python3.9/site-packages/gensim/models/__init__.py", line 7, in <module>
    from .coherencemodel import CoherenceModel  # noqa:F401
  File "/home/ehsan-bi/DF-USF/lib/python3.9/site-packages/gensim/models/coherencemodel.py", line 37, in <module>
    from gensim.topic_coherence import (
  File "/home/ehsan-bi/DF-USF/lib/python3.9/site-packages/gensim/topic_coherence/probability_estimation.py", line 11, in <module>
    from gensim.topic_coherence.text_analysis import (
  File "/home/ehsan-bi/DF-USF/lib/python3.9/site-packages/gensim/topic_coherence/text_analysis.py", line 20, in <module>
    from gensim.models.word2vec import Word2Vec
  File "/home/ehsan-bi/DF-USF/lib/python3.9/site-packages/gensim/models/word2vec.py", line 206, in <module>
    from smart_open.compression import get_supported_extensions
ModuleNotFoundError: No module named 'smart_open.compression'

I have been gone through this file word2vec.py and i am unable to how to tweak the file so that i can reproduce your project. Looking for your kind consideration. Thank you

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

1 participant