install kochat

## install kochat

 (base) root@rasa-virtual-machine:~/kochat/demo# pip3 install kochat Requirement already satisfied: kochat in /root/anaconda3/lib/python3.8/site-packages (1.0.3) Requirement already satisfied: pytorch-crf==0.7.2 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (0.7.2) Requirement already satisfied: pandas==1.0.4 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (1.0.4) Requirement already satisfied: flask==1.1.2 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (1.1.2) Requirement already satisfied: konlpy==0.5.2 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (0.5.2) Requirement already satisfied: joblib==0.15.1 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (0.15.1) Requirement already satisfied: requests==2.24.0 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (2.24.0) Requirement already satisfied: matplotlib==3.2.1 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (3.2.1) Requirement already satisfied: numpy==1.18.5 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (1.18.5) Requirement already satisfied: scikit-learn==0.23.1 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (0.23.1) Requirement already satisfied: gensim==3.8.3 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (3.8.3) Requirement already satisfied: Werkzeug>=0.15 in /root/anaconda3/lib/python3.8/site-packages (from flask==1.1.2->kochat) (1.0.1) Requirement already satisfied: click>=5.1 in /root/anaconda3/lib/python3.8/site-packages (from flask==1.1.2->kochat) (7.1.2) Requirement already satisfied: Jinja2>=2.10.1 in /root/anaconda3/lib/python3.8/site-packages (from flask==1.1.2->kochat) (2.11.3) Requirement already satisfied: itsdangerous>=0.24 in /root/anaconda3/lib/python3.8/site-packages (from flask==1.1.2->kochat) (1.1.0) Requirement already satisfied: six>=1.5.0 in /root/anaconda3/lib/python3.8/site-packages (from gensim==3.8.3->kochat) (1.15.0) Requirement already satisfied: smart-open>=1.8.1 in /root/anaconda3/lib/python3.8/site-packages (from gensim==3.8.3->kochat) (5.1.0) Requirement already satisfied: scipy>=0.18.1 in /root/anaconda3/lib/python3.8/site-packages (from gensim==3.8.3->kochat) (1.6.2) Requirement already satisfied: tweepy>=3.7.0 in /root/anaconda3/lib/python3.8/site-packages (from konlpy==0.5.2->kochat) (3.10.0) Requirement already satisfied: lxml>=4.1.0 in /root/anaconda3/lib/python3.8/site-packages (from konlpy==0.5.2->kochat) (4.6.3) Requirement already satisfied: JPype1>=0.7.0 in /root/anaconda3/lib/python3.8/site-packages (from konlpy==0.5.2->kochat) (1.3.0) Requirement already satisfied: beautifulsoup4==4.6.0 in /root/anaconda3/lib/python3.8/site-packages (from konlpy==0.5.2->kochat) (4.6.0) Requirement already satisfied: colorama in /root/anaconda3/lib/python3.8/site-packages (from konlpy==0.5.2->kochat) (0.4.4) Requirement already satisfied: kiwisolver>=1.0.1 in /root/anaconda3/lib/python3.8/site-packages (from matplotlib==3.2.1->kochat) (1.3.1) Requirement already satisfied: python-dateutil>=2.1 in /root/anaconda3/lib/python3.8/site-packages (from matplotlib==3.2.1->kochat) (2.8.1) Requirement already satisfied: cycler>=0.10 in /root/anaconda3/lib/python3.8/site-packages (from matplotlib==3.2.1->kochat) (0.10.0) Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /root/anaconda3/lib/python3.8/site-packages (from matplotlib==3.2.1->kochat) (2.4.7) Requirement already satisfied: pytz>=2017.2 in /root/anaconda3/lib/python3.8/site-packages (from pandas==1.0.4->kochat) (2021.1) Requirement already satisfied: idna<3,>=2.5 in /root/anaconda3/lib/python3.8/site-packages (from requests==2.24.0->kochat) (2.10) Requirement already satisfied: chardet<4,>=3.0.2 in /root/anaconda3/lib/python3.8/site-packages (from requests==2.24.0->kochat) (3.0.4) Requirement already satisfied: certifi>=2017.4.17 in /root/anaconda3/lib/python3.8/site-packages (from requests==2.24.0->kochat) (2020.12.5) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /root/anaconda3/lib/python3.8/site-packages (from requests==2.24.0->kochat) (1.25.11) Requirement already satisfied: threadpoolctl>=2.0.0 in /root/anaconda3/lib/python3.8/site-packages (from scikit-learn==0.23.1->kochat) (2.1.0) Requirement already satisfied: MarkupSafe>=0.23 in /root/anaconda3/lib/python3.8/site-packages (from Jinja2>=2.10.1->flask==1.1.2->kochat) (1.1.1) Requirement already satisfied: requests-oauthlib>=0.7.0 in /root/anaconda3/lib/python3.8/site-packages (from tweepy>=3.7.0->konlpy==0.5.2->kochat) (1.3.0) Requirement already satisfied: oauthlib>=3.0.0 in /root/anaconda3/lib/python3.8/site-packages (from requests-oauthlib>=0.7.0->tweepy>=3.7.0->konlpy==0.5.2->kochat) (3.1.1) Requirement already satisfied: PySocks!=1.5.7,>=1.5.6 in /root/anaconda3/lib/python3.8/site-packages (from requests==2.24.0->kochat) (1.7.1) WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv (base) root@rasa-virtual-machine:~/kochat/demo# python application.py Traceback (most recent call last): File "application.py", line 8, in <module> from kochat.app import KochatApi File "/root/anaconda3/lib/python3.8/site-packages/kochat/app/__init__.py", line 7, in <module> from kochat.app.kochat_api import KochatApi File "/root/anaconda3/lib/python3.8/site-packages/kochat/app/kochat_api.py", line 5, in <module> from kochat.app.scenario import Scenario File "/root/anaconda3/lib/python3.8/site-packages/kochat/app/scenario.py", line 11, in <module> from kochat.decorators import data File "/root/anaconda3/lib/python3.8/site-packages/kochat/decorators.py", line 3, in <module> import torch ModuleNotFoundError: No module named 'torch' (base) root@rasa-virtual-machine:~/kochat/demo# pip3 install torch Collecting torch Downloading torch-1.9.0-cp38-cp38-manylinux1_x86_64.whl (831.4 MB) |████████████████████████████████| 831.4 MB 2.1 kB/s Requirement already satisfied: typing-extensions in /root/anaconda3/lib/python3.8/site-packages (from torch) (3.7.4.3) Installing collected packages: torch Successfully installed torch-1.9.0 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv (base) root@rasa-virtual-machine:~/kochat/demo# python application.py Matplotlib is building the font cache using fc-list. This may take a moment. Traceback (most recent call last): File "application.py", line 14, in <module> from demo.scenario import dust, weather, travel, restaurant ModuleNotFoundError: No module named 'demo.scenario' (base) root@rasa-virtual-machine:~/kochat/demo#

## fix application.py

 from scenario import dust, weather, travel, restaurant

## exec application.py

 (base) root@rasa-virtual-machine:~/kochat/demo# python application.py Matplotlib is building the font cache using fc-list. This may take a moment. Traceback (most recent call last): File "application.py", line 14, in <module> from demo.scenario import dust, weather, travel, restaurant ModuleNotFoundError: No module named 'demo.scenario' (base) root@rasa-virtual-machine:~/kochat/demo# vi application.py (base) root@rasa-virtual-machine:~/kochat/demo# python application.py Traceback (most recent call last): File "application.py", line 14, in <module> from scenario import dust, weather, travel, restaurant File "/root/kochat/demo/scenario.py", line 7, in <module> from kocrawl.dust import DustCrawler ModuleNotFoundError: No module named 'kocrawl' (base) root@rasa-virtual-machine:~/kochat/demo#

## install kocrawl

 (base) root@rasa-virtual-machine:~/kochat/demo# python application.py Traceback (most recent call last): File "application.py", line 14, in <module> from scenario import dust, weather, travel, restaurant File "/root/kochat/demo/scenario.py", line 7, in <module> from kocrawl.dust import DustCrawler ModuleNotFoundError: No module named 'kocrawl' (base) root@rasa-virtual-machine:~/kochat/demo# pip3 install kocrawl Collecting kocrawl Downloading kocrawl-1.0.9-py3-none-any.whl (37 kB) Requirement already satisfied: tqdm in /root/anaconda3/lib/python3.8/site-packages (from kocrawl) (4.59.0) Requirement already satisfied: beautifulsoup4==4.6.0 in /root/anaconda3/lib/python3.8/site-packages (from kocrawl) (4.6.0) Requirement already satisfied: requests==2.24.0 in /root/anaconda3/lib/python3.8/site-packages (from kocrawl) (2.24.0) Requirement already satisfied: numpy==1.18.5 in /root/anaconda3/lib/python3.8/site-packages (from kocrawl) (1.18.5) Requirement already satisfied: idna<3,>=2.5 in /root/anaconda3/lib/python3.8/site-packages (from requests==2.24.0->kocrawl) (2.10) Requirement already satisfied: certifi>=2017.4.17 in /root/anaconda3/lib/python3.8/site-packages (from requests==2.24.0->kocrawl) (2020.12.5) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /root/anaconda3/lib/python3.8/site-packages (from requests==2.24.0->kocrawl) (1.25.11) Requirement already satisfied: chardet<4,>=3.0.2 in /root/anaconda3/lib/python3.8/site-packages (from requests==2.24.0->kocrawl) (3.0.4) Installing collected packages: kocrawl Successfully installed kocrawl-1.0.9 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv (base) root@rasa-virtual-machine:~/kochat/demo#

## exec application.py

(base) root@rasa-virtual-machine:~/kochat/demo# python application.py
Traceback (most recent call last):
  File "application.py", line 19, in <module>
    dataset = Dataset(ood=True)
  File "/root/anaconda3/lib/python3.8/site-packages/kochat/data/dataset.py", line 32, in __init__
    self.prep = Preprocessor(naver_fix=naver_fix)
  File "/root/anaconda3/lib/python3.8/site-packages/kochat/data/preprocessor.py", line 28, in __init__
    self.okt = Okt()
  File "/root/anaconda3/lib/python3.8/site-packages/konlpy/tag/_okt.py", line 91, in __init__
    jvm.init_jvm(jvmpath, max_heap_size)
  File "/root/anaconda3/lib/python3.8/site-packages/konlpy/jvm.py", line 55, in init_jvm
    jvmpath = jvmpath or jpype.getDefaultJVMPath()
  File "/root/anaconda3/lib/python3.8/site-packages/jpype/_jvmfinder.py", line 74, in getDefaultJVMPath
    return finder.get_jvm_path()
  File "/root/anaconda3/lib/python3.8/site-packages/jpype/_jvmfinder.py", line 212, in get_jvm_path
    raise JVMNotFoundException("No JVM shared library file ({0}) "
jpype._jvmfinder.JVMNotFoundException: No JVM shared library file (libjvm.so) found. Try setting up the JAVA_HOME environment variable properly.


## install java

 (base) root@rasa-virtual-machine:~/kochat/demo# java Command 'java' not found, but can be installed with: apt install default-jre # version 2:1.11-72, or apt install openjdk-11-jre-headless # version 11.0.11+9-0ubuntu2~20.04 apt install openjdk-13-jre-headless # version 13.0.7+5-0ubuntu1~20.04 apt install openjdk-16-jre-headless # version 16.0.1+9-1~20.04 apt install openjdk-8-jre-headless # version 8u292-b10-0ubuntu1~20.04 apt install openjdk-14-jre-headless # version 14.0.2+12-1~20.04


## install java

(base) root@rasa-virtual-machine:~/kochat/demo# apt install openjdk-8-jre-headless
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다
상태 정보를 읽는 중입니다... 완료
The following additional packages will be installed:
  ca-certificates-java java-common
제안하는 패키지:
  default-jre fonts-dejavu-extra fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei fonts-wqy-zenhei
다음 새 패키지를 설치할 것입니다:
  ca-certificates-java java-common openjdk-8-jre-headless
0개 업그레이드, 3개 새로 설치, 0개 제거 및 348개 업그레이드 안 함.
28.2 M바이트 아카이브를 받아야 합니다.
이 작업 후 104 M바이트의 디스크 공간을 더 사용하게 됩니다.
계속 하시겠습니까? [Y/n] y

## install java

(base) root@rasa-virtual-machine:~/kochat/demo# apt install openjdk-8-jre-headless
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다
상태 정보를 읽는 중입니다... 완료

## install java

(base) root@rasa-virtual-machine:~/kochat/demo# python application.py [GensimEmbedder] Epoch : 0, ETA : 0.3266 sec [GensimEmbedder] Epoch : 1, ETA : 0.1057 sec [GensimEmbedder] Epoch : 2, ETA : 0.1059 sec [GensimEmbedder] Epoch : 3, ETA : 0.1055 sec [GensimEmbedder] Epoch : 4, ETA : 0.1055 sec





 

댓글

이 블로그의 인기 게시물

[!] CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/CocoaPods-version.yml Response: URL using bad/illegal format or missing URL

starcraft map

Data Analysis with Superset - boardless chart