-
Notifications
You must be signed in to change notification settings - Fork 183
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
TGW read time out #429
Comments
建议直接 Translator 选 Sakura |
|
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我使用text-generation-webui並且使用sakura-13b-lnovel-v0.9-Q4_K_M.gguf 模型,但會產生以下錯誤訊息
Traceback (most recent call last):
File "C:\Users\paul.conda\envs\translator\lib\site-packages\urllib3\connectionpool.py", line 426, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "C:\Users\paul.conda\envs\translator\lib\site-packages\urllib3\connectionpool.py", line 421, in _make_request
httplib_response = conn.getresponse()
File "C:\Users\paul.conda\envs\translator\lib\http\client.py", line 1375, in getresponse
response.begin()
File "C:\Users\paul.conda\envs\translator\lib\http\client.py", line 318, in begin
version, status, reason = self._read_status()
File "C:\Users\paul.conda\envs\translator\lib\http\client.py", line 279, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "C:\Users\paul.conda\envs\translator\lib\socket.py", line 705, in readinto
return self._sock.recv_into(b)
TimeoutError: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\paul.conda\envs\translator\lib\site-packages\requests\adapters.py", line 486, in send
resp = conn.urlopen(
File "C:\Users\paul.conda\envs\translator\lib\site-packages\urllib3\connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "C:\Users\paul.conda\envs\translator\lib\site-packages\urllib3\util\retry.py", line 410, in increment
raise six.reraise(type(error), error, _stacktrace)
File "C:\Users\paul.conda\envs\translator\lib\site-packages\urllib3\packages\six.py", line 735, in reraise
raise value
File "C:\Users\paul.conda\envs\translator\lib\site-packages\urllib3\connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "C:\Users\paul.conda\envs\translator\lib\site-packages\urllib3\connectionpool.py", line 428, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "C:\Users\paul.conda\envs\translator\lib\site-packages\urllib3\connectionpool.py", line 335, in _raise_timeout
raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='127.0.0.1', port=5000): Read timed out. (read timeout=30)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\translator\BallonsTranslator_dev_src_with_gitpython\ui\module_manager.py", line 203, in _translate_page
self.translator.translate_textblk_lst(page)
File "C:\translator\BallonsTranslator_dev_src_with_gitpython\modules\translators\base.py", line 199, in translate_textblk_lst
_translations = self.translate(text_list)
File "C:\translator\BallonsTranslator_dev_src_with_gitpython\modules\translators\base.py", line 146, in translate
text_trans = self._translate(text_source)
File "C:\translator\BallonsTranslator_dev_src_with_gitpython\modules\translators\trans_tgw.py", line 138, in _translate
response = requests.post(url, timeout=self.params['timeout'], json=payload, headers=headers)
File "C:\Users\paul.conda\envs\translator\lib\site-packages\requests\api.py", line 115, in post
return request("post", url, data=data, json=json, **kwargs)
File "C:\Users\paul.conda\envs\translator\lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\paul.conda\envs\translator\lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\paul.conda\envs\translator\lib\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "C:\Users\paul.conda\envs\translator\lib\site-packages\requests\adapters.py", line 532, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='127.0.0.1', port=5000): Read timed out. (read timeout=30)
同樣的模型我拿去翻譯遊戲沒有問題但是用在這裡會報錯
希望作者大大能幫忙解決一下謝謝~
The text was updated successfully, but these errors were encountered: