- Python3
- IntelliJ IDEA/PyCharm
linux:~ # git clone https://github.com/wsunccake/report-bug.git
linux:~ # cd report-bug
linux:report-bug # pip3 install -r requirements.txt
linux:report-bug # python -c 'import ssl
ssl._create_default_https_context = ssl._create_unverified_context
import nltk
nltk.download()'
linux:report-bug # bin/run_py.sh get_failed_test.py output.xml
linux:report-bug # bin/run_py.sh predict_bug.py test.json train nb
# pull image
linux:~ # docker pull python:3.7.7-slim-stretch
linux:~ # docker run -itd -v <report-bug-path>:/app -v /data:/data -u $UID --name report-bug python:3.7.7-slim-stretch
# install package
linux:~ # docker exec -it -u 0 report-bug pip install -r /app/requirements.txt
linux:~ # docker exec -it -u 0 report-bug python -m nltk.downloader [-d /usr/local/share/nltk_data] all
# copy xml
linux:~ # mv output.xml /data
# run app
linux:~ # docker exec -it report-bug /app/bin/run_py.sh get_failed_test.py /data/output.xml
linux:~ # docker exec -it report-bug /app/bin/run_py.sh get_failed_test.py /data/test.json /data/train nb
- mac os download issue
error message: "urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate>
mac:~ $ open /Applications/Python\ 3.7/Install\ Certificates.command