본문 바로가기
에러 모음

[Pycharm] urllib.error.HTTPError: HTTP Error 500: Internal Server Error

by 귤이두번 2022. 3. 8.

에러 메세지

Error: failed to send plot to http://127.0.0.1:63344
Traceback (most recent call last):
  File "/snap/pycharm-professional/271/plugins/python/helpers/pycharm_display/datalore/display/display_.py", line 76, in _send_display_message
    urllib_request.urlopen(url, buffer)
  File "/home/jijang/anaconda3/envs/ocr/lib/python3.7/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/home/jijang/anaconda3/envs/ocr/lib/python3.7/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/home/jijang/anaconda3/envs/ocr/lib/python3.7/urllib/request.py", line 641, in http_response
    'http', request, response, code, msg, hdrs)
  File "/home/jijang/anaconda3/envs/ocr/lib/python3.7/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/home/jijang/anaconda3/envs/ocr/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/home/jijang/anaconda3/envs/ocr/lib/python3.7/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 500: Internal Server Error

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/snap/pycharm-professional/271/plugins/python/helpers/pycharm_display/datalore/display/display_.py", line 60, in try_empty_proxy
    urllib_request.urlopen(url, buffer)
  File "/home/jijang/anaconda3/envs/ocr/lib/python3.7/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/home/jijang/anaconda3/envs/ocr/lib/python3.7/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/home/jijang/anaconda3/envs/ocr/lib/python3.7/urllib/request.py", line 641, in http_response
    'http', request, response, code, msg, hdrs)
  File "/home/jijang/anaconda3/envs/ocr/lib/python3.7/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/home/jijang/anaconda3/envs/ocr/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/home/jijang/anaconda3/envs/ocr/lib/python3.7/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 500: Internal Server Error

 

원인은 깊게 알아보지 않았지만 해결 방법

 

  1. Settings -> Tools -> Python Scientific에 들어간다
  2. Show plots in tool window를 체크 해제한다

 

이것을 체크해제하면 이런식으로 따로 이미지가 뜬다

댓글