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

not working #2

Open
nagasrisai opened this issue Jun 20, 2021 · 0 comments
Open

not working #2

nagasrisai opened this issue Jun 20, 2021 · 0 comments

Comments

@nagasrisai
Copy link

AttributeError Traceback (most recent call last)
in
3
4 # importing gensim
----> 5 import gensim
6
7 # creating a word to vector model

~\anaconda3\lib\site-packages\gensim_init_.py in
9 import logging
10
---> 11 from gensim import parsing, corpora, matutils, interfaces, models, similarities, utils # noqa:F401
12
13

~\anaconda3\lib\site-packages\gensim\parsing_init_.py in
2
3 from .porter import PorterStemmer # noqa:F401
----> 4 from .preprocessing import (remove_stopwords, strip_punctuation, strip_punctuation2, # noqa:F401
5 strip_tags, strip_short, strip_numeric,
6 strip_non_alphanum, strip_multiple_whitespaces,

~\anaconda3\lib\site-packages\gensim\parsing\preprocessing.py in
24 import glob
25
---> 26 from gensim import utils
27 from gensim.parsing.porter import PorterStemmer
28

~\anaconda3\lib\site-packages\gensim\utils.py in
34 import numpy as np
35 import scipy.sparse
---> 36 from smart_open import open
37
38 from gensim import version as gensim_version

~\anaconda3\lib\site-packages\smart_open_init_.py in
32
33 from smart_open import version # noqa: E402
---> 34 from .smart_open_lib import open, parse_uri, smart_open, register_compressor # noqa: E402
35
36 _WARNING = """smart_open.s3_iter_bucket is deprecated and will stop functioning

~\anaconda3\lib\site-packages\smart_open\smart_open_lib.py in
33
34 from smart_open import compression
---> 35 from smart_open import doctools
36 from smart_open import transport
37

~\anaconda3\lib\site-packages\smart_open\doctools.py in
19
20 from . import compression
---> 21 from . import transport
22
23 PLACEHOLDER = ' smart_open/doctools.py magic goes here'

~\anaconda3\lib\site-packages\smart_open\transport.py in
20 NO_SCHEME = ''
21
---> 22 _REGISTRY = {NO_SCHEME: smart_open.local_file}
23 _ERRORS = {}
24 _MISSING_DEPS_ERROR = """You are trying to use the %(module)s functionality of smart_open

AttributeError: partially initialized module 'smart_open' has no attribute 'local_file' (most likely due to a circular import)

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