Skip to content

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

@Ehsan125

Description

@Ehsan125

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions