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

mecab 설치로 요구로 인한 오류 #7

Open
KYUUUW opened this issue Aug 3, 2021 · 0 comments
Open

mecab 설치로 요구로 인한 오류 #7

KYUUUW opened this issue Aug 3, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@KYUUUW
Copy link
Contributor

KYUUUW commented Aug 3, 2021

아래의 오류가 발생합니다.

[2021-08-04 03:01:02,422] ERROR in app: Exception on /infer/similar/doc2vec [POST]
Traceback (most recent call last):
  File "/usr/local/anaconda3/envs/perfume_recommendation/lib/python3.7/site-packages/konlpy/tag/_mecab.py", line 108, in __init__
    self.tagger = Tagger('-d %s' % dicpath)
NameError: name 'Tagger' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/anaconda3/envs/perfume_recommendation/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/anaconda3/envs/perfume_recommendation/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/anaconda3/envs/perfume_recommendation/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/anaconda3/envs/perfume_recommendation/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/local/anaconda3/envs/perfume_recommendation/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/anaconda3/envs/perfume_recommendation/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/Users/kyuwon/sources/flask_server/app.py", line 53, in infer_similar_doc2vec
    result = doc2vec(query)
  File "/Users/kyuwon/sources/flask_server/utils/d2v_sim.py", line 8, in doc2vec
    mecab = Mecab()
  File "/usr/local/anaconda3/envs/perfume_recommendation/lib/python3.7/site-packages/konlpy/tag/_mecab.py", line 113, in __init__
    raise Exception('Install MeCab in order to use it: http://konlpy.org/en/latest/install/')
Exception: Install MeCab in order to use it: http://konlpy.org/en/latest/install/
127.0.0.1 - - [04/Aug/2021 03:01:02] "POST /infer/similar/doc2vec HTTP/1.1" 500 -
[2021-08-04 03:04:19,984] ERROR in app: Exception on /infer/similar/doc2vec [POST]
Traceback (most recent call last):
  File "/usr/local/anaconda3/envs/perfume_recommendation/lib/python3.7/site-packages/konlpy/tag/_mecab.py", line 108, in __init__
    self.tagger = Tagger('-d %s' % dicpath)
NameError: name 'Tagger' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/anaconda3/envs/perfume_recommendation/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/anaconda3/envs/perfume_recommendation/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/anaconda3/envs/perfume_recommendation/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/anaconda3/envs/perfume_recommendation/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/local/anaconda3/envs/perfume_recommendation/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/anaconda3/envs/perfume_recommendation/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/Users/kyuwon/sources/flask_server/app.py", line 53, in infer_similar_doc2vec
    result = doc2vec(query)
  File "/Users/kyuwon/sources/flask_server/utils/d2v_sim.py", line 8, in doc2vec
    mecab = Mecab()
  File "/usr/local/anaconda3/envs/perfume_recommendation/lib/python3.7/site-packages/konlpy/tag/_mecab.py", line 113, in __init__
    raise Exception('Install MeCab in order to use it: http://konlpy.org/en/latest/install/')
Exception: Install MeCab in order to use it: http://konlpy.org/en/latest/install/

재현방법

http://127.0.0.1:5000/infer/similar/doc2vec 호출

기타질문

그리고 konlpy 는 한글 nlp 패키지로 보이는데 저희 프로젝트에 쓰인 이유를 알고싶어요~~~

@KYUUUW KYUUUW added the question Further information is requested label Aug 3, 2021
@KYUUUW KYUUUW changed the title konlpy 사용 이유가 뭔가요?? mecab 설치로 요구로 인한 오류 Aug 3, 2021
@KYUUUW KYUUUW added bug Something isn't working and removed question Further information is requested labels Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants