질문있어요
워크플로우 다운 받고 api 아이디랑 비밀번호를 등록했습니다.
그런데 번역을 해주지 않네요 ㅠㅠ
혹시 제가 알프레드 공홈에서 안내한 파이썬 2 버전을 다운 받아서 그런걸까요?
옛날 워크플로우를 쓰려면 파이썬2 버전을 다운받으라고 안내를 받아서요.
이번 파파고 워크플로우는 파이썬 3 버전이라고 하는데
2버전도 같이 다운 받아서 그런건가 합니다.
제가 코딩에 대해선 잘 몰라서 헷갈리네요ㅠㅠ
일단 파파고 워크플로우 실행 시 디버그 로그 올려봅니다..
[20:05:22.575] Logging Started...
[20:05:30.023] Papago Workflow[List Filter] Processing complete
[20:05:30.024] Papago Workflow[List Filter] Passing output 'Test' to Arg and Vars
[20:05:30.024] Papago Workflow[Arg and Vars] Processing complete
[20:05:30.025] Papago Workflow[Arg and Vars] Passing output '' to Conditional
[20:05:30.025] Papago Workflow[Conditional] Processing complete
[20:05:30.025] Papago Workflow[Conditional] Passing output '' to Arg and Vars
[20:05:30.026] Papago Workflow[Arg and Vars] Processing complete
[20:05:30.026] Papago Workflow[Arg and Vars] Passing output 'Ready to Papago!' to Script Filter
[20:05:30.547] Papago Workflow[Script Filter] Queuing argument 'Ready to Papago!'
[20:05:30.681] Papago Workflow[Script Filter] Script with argv '(null)' finished
[20:05:30.687] ERROR: Papago Workflow[Script Filter] Code 1: Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 1348, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1286, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1332, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1281, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1041, in _send_output
self.send(msg)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 979, in send
self.connect()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1458, in connect
self.sock = self._context.wrap_socket(self.sock,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ssl.py", line 517, in wrap_socket
return self.sslsocket_class._create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ssl.py", line 1075, in _create
self.do_handshake()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ssl.py", line 1346, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1002)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/sajang/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.09EE4ED9-5E45-48DF-B8EE-E316F23D1B26/ppg.py", line 120, in
main()
File "/Users/sajang/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.09EE4ED9-5E45-48DF-B8EE-E316F23D1B26/ppg.py", line 88, in main
output_json = get_translated_data(str(inputString))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/sajang/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.09EE4ED9-5E45-48DF-B8EE-E316F23D1B26/ppg.py", line 43, in get_translated_data
langCode = find_language_code(word)['langCode']
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/sajang/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.09EE4ED9-5E45-48DF-B8EE-E316F23D1B26/ppg.py", line 29, in find_language_code
response = urllib.request.urlopen(request, data=data.encode("utf-8"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 519, in open
response = self._open(req, data)
^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 536, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 496, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 1391, in https_open
return self.do_open(http.client.HTTPSConnection, req,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 1351, in do_open
raise URLError(err)
urllib.error.URLError:
초보 컴맹을 도와주시면 참 감사하겠습니다.
댓글