Git Product home page Git Product logo

galtransl's People

Contributors

adsf0427 avatar gulaodeng avatar isotr0py avatar noriverwater avatar pidanshourouzhouxd avatar pipixia244 avatar ryank231231 avatar xd2333 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

galtransl's Issues

是否可以加一个超时重试功能

最近我用GalTransl加GPT3.5 Turbo的时候,经常性的突然无法收到GPT API回复,持续时间可能是无限,有一次我特地等了一个小时也没有任何变化。必须手动关闭程序然后再启动来继续下去。
这有可能是OpenAI服务器的问题。
是否可以加一个超时重试机制?比如超过30秒没有收到任何回复就重新发一次请求。

请问“单次翻译句子数量”是指“一次请求”所翻译的句子数量吗?

那样的话,理论上是否单次翻译句子数量越多,就能在newbing每天200次请求的额度内翻译更多的句子?

我的测试貌似一次15句左右是极限,再往上就会出错。

想用newbing翻译H的话,单次翻译句子数量填为1就可以了,不过不知道这样是不是会太浪费额度了

还望大佬解答,非常感谢!

没有重翻NewBing拒绝翻译的句子

如题
设置部分

# 通用(杂项)设置
common:
  loggingLevel: info # 日志等级,可选 [debug/info/warning/error]
  retranslFail: True # 重翻NewBing拒绝翻译的句子。[True/False]
  multiThread: false # 多线程,[True/False](暂不可用)
  gpt.streamOutputMode: true # 流式输出/打字机效果,开启方便观察过程,关闭方便观察结果。[True/False]
  gpt.numPerRequestTranslate: 9 # 单次翻译句子数量,不建议太大
  gpt.enableProofRead: False # (NewBing/GPT4)是否开启译后校润。[True/False]
  gpt.numPerRequestProofRead: 7 # (NewBing/GPT4)单次校润句子数量,不建议修改
  gpt.degradeBackend: false # (GPT3.5/4 官方API)是否将 GPT4 的key用于 GPT3.5 的请求。[True/False]
  gpt.restoreContextMode: True # (GPT3.5/4 官方API)重启自动恢复上下文。[True/False]
  gpt.fullContextMode: True # (GPT3.5/4 官方API)尽可能多的保留前文,翻译逻辑性更好,消耗token约翻4倍。[True/False]
  gpt.lineBreaksImprovementMode: false # (GPT3.5)换行符改善模式,减少丢换行符情况,但可能导致循环重试。[True/False]
  gpt.recordConfidence: true # (GPT4)记录确信度、存疑句,GPT4官方API关掉可节约token。[True/False]
  gpt.forceNewBingHs: false # (NewBing)强制NewBing翻译hs,导致速度变得很慢且可能更容易被ban号。[True/False]

部分没有重新翻译的翻译缓存

    {
        "index": 49,
        "name": "",
        "pre_jp": "女の子が少し動くと、ワンピースの脇から見えている乳房の先に時々乳首が見えたりして。",
        "post_jp": "女の子が少し動くと、ワンピースの脇から見えている乳房の先に時々乳首が見えたりして。",
        "pre_zh": "Failed translation",
        "proofread_zh": "Failed translation",
        "trans_by": "NewBing(Failed)",
        "proofread_by": "NewBing(Failed)",
        "post_zh_preview": "Failed translation"
    },
    {
        "index": 50,
        "name": "",
        "pre_jp": "可愛らしいピンク色の突起は、思わず手を伸ばして触りたくなる程魅惑的だ。",
        "post_jp": "可愛らしいピンク色の突起は、思わず手を伸ばして触りたくなる程魅惑的だ。",
        "pre_zh": "Failed translation",
        "proofread_zh": "Failed translation",
        "trans_by": "NewBing(Failed)",
        "proofread_by": "NewBing(Failed)",
        "post_zh_preview": "Failed translation"
    },
    {
        "index": 51,
        "name": "女の子",
        "pre_jp": "「あ〜……あつい〜……」",
        "post_jp": "あ〜……あつい〜……",
        "pre_zh": "Failed translation",
        "proofread_zh": "Failed translation",
        "problem": "比日文长1.7倍",
        "trans_by": "NewBing(Failed)",
        "proofread_by": "NewBing(Failed)",
        "post_zh_preview": "「Failed translation」"
    },
    {
        "index": 52,
        "name": "",
        "pre_jp": "そう言ってワンピースの胸元をパタパタさせたりすると、ますますその下にある可愛らしいオッパイがハッキリと俺の目に映った。",
        "post_jp": "そう言ってワンピースの胸元をパタパタさせたりすると、ますますその下にある可愛らしいオッパイがハッキリと俺の目に映った。",
        "pre_zh": "Failed translation",
        "proofread_zh": "Failed translation",
        "trans_by": "NewBing(Failed)",
        "proofread_by": "NewBing(Failed)",
        "post_zh_preview": "Failed translation"
    },
    {
        "index": 53,
        "name": "",
        "pre_jp": "そのサイズは完全に手のひらサイズでプリンとしていて触り心地が良さそうだ。",
        "post_jp": "そのサイズは完全に手のひらサイズでプリンとしていて触り心地が良さそうだ。",
        "pre_zh": "Failed translation",
        "proofread_zh": "Failed translation",
        "trans_by": "NewBing(Failed)",
        "proofread_by": "NewBing(Failed)",
        "post_zh_preview": "Failed translation"
    },
    {
        "index": 54,
        "name": "",
        "pre_jp": "そして、その可愛い乳房の先にある乳首は、プックリと膨らんでいてキレイなピンク色をしていた。",
        "post_jp": "そして、その可愛い乳房の先にある乳首は、プックリと膨らんでいてキレイなピンク色をしていた。",
        "pre_zh": "Failed translation",
        "proofread_zh": "Failed translation",
        "trans_by": "NewBing(Failed)",
        "proofread_by": "NewBing(Failed)",
        "post_zh_preview": "Failed translation"
    },

GPT擅自合并文本导致行数错误重试

有些时候GPT倾向于把多段文本合并成一段,后续行数检查失败会多次重试,部分语句会接近死循环(看到#10增加了重试次数上限但我在2.1.1内没有触发)。

修改gpt.numPerRequestTranslate=1可以解决问题就是效率会很差。
是否可以在出现类似错误的时候临时调整参数?

示例如下,其中373号会被合并掉。

# Glossary
| Src | Dst(/Dst2/..) | Note |
| --- | --- | --- |
| ヨツバ | ヨツバ | boy |
| ヒメ | ヒメ | girl |

[
   {
      "id":365,
      "src":"ヨツバ「選択的な要素ってゲートのことですか?」"
   },
   {
      "id":366,
      "src":"ヒメ「そうね、変な呼び方だけど、なにしろ先端脳科学でさえ私たちがゲー トと呼んでいるものが何なのかわかっていないのだから」"
   },
   {
      "id":367,
      "src":"ヨツバ「どんな病気なんですか?」"
   },
   {
      "id":368,
      "src":"ヒメ「メンタルの問題よ」"
   },
   {
      "id":369,
      "src":"ヨツバ「精神……ですか?」"
   },
   {
      "id":370,
      "src":"ヒメ「”こころ”……と言いなさい」"
   },
   {
      "id":371,
      "src":"ヨツバ「人とのコミュニケーションが嫌だから自分の殻に閉じ籠っちゃうんですか?」"
   },
   {
      "id":372,
      "src":"ヒメ「それもきっと原因のひとつね。"
   },
   {
      "id":373,
      "src":"テレパシーはコミュニケーションの道具としてはとっても優秀だけれどね、聞きたくないこと、知りたくないことまで全て頭の中に流れてくるのよ」"
   }
]
[
   {
      "id":365,
      "dst":"ヨツバ「选择性要素是指门的事吗?」"
   },
   {
      "id":366,
      "dst":"ヒメ「是的,虽然叫法很奇怪,但连先进的脑科学也不知道我们所称之为门的东西 到底是什么」"
   },
   {
      "id":367,
      "dst":"ヨツバ「是什么病?」"
   },
   {
      "id":368,
      "dst":"ヒメ「是心理问题」"
   },
   {
      "id":369,
      "dst":"ヨツバ「精神……吗?」"
   },
   {
      "id":370,
      "dst":"ヒメ「说‘心’……」"
   },
   {
      "id":371,
      "dst":"ヨツバ「因为讨厌与人交流所以闭门不出吗?」"
   },
   {
      "id":372,
      "dst":"ヒメ「那也一定是原因之一。虽然心灵感应作为沟通工具非常优秀,但所有不想听的事情、不想知道的事情都会涌入脑海中」"
   }
]

已替换EdgeGPT 但牛冰仍旧报错

使用牛冰报错,已替换EdgeGPT,cookie刚替换,ip正常

2023-08-16 01:41:52,296][INFO]Error:server rejected WebSocket connection: HTTP 400, Please wait 30 seconds
Traceback (most recent call last):
  File "/media/kaban/6BA154E35001F032/GalTransl/GalTransl/Backend/BingGPT4Translate.py", line 178, in translate
    async for final, response in self.chatbot.ask_stream(
  File "/home/kaban/.cache/pypoetry/virtualenvs/galtransl-0jM_G3sJ-py3.11/lib/python3.11/site-packages/EdgeGPT/EdgeGPT.py", line 162, in ask_stream
    async for response in self.chat_hub.ask_stream(
  File "/home/kaban/.cache/pypoetry/virtualenvs/galtransl-0jM_G3sJ-py3.11/lib/python3.11/site-packages/EdgeGPT/chathub.py", line 111, in ask_stream
    async with connect(
  File "/home/kaban/.cache/pypoetry/virtualenvs/galtransl-0jM_G3sJ-py3.11/lib/python3.11/site-packages/websockets/legacy/client.py", line 637, in __aenter__
    return await self
           ^^^^^^^^^^
  File "/home/kaban/.cache/pypoetry/virtualenvs/galtransl-0jM_G3sJ-py3.11/lib/python3.11/site-packages/websockets/legacy/client.py", line 655, in __await_impl_timeout__
    return await self.__await_impl__()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kaban/.cache/pypoetry/virtualenvs/galtransl-0jM_G3sJ-py3.11/lib/python3.11/site-packages/websockets/legacy/client.py", line 662, in __await_impl__
    await protocol.handshake(
  File "/home/kaban/.cache/pypoetry/virtualenvs/galtransl-0jM_G3sJ-py3.11/lib/python3.11/site-packages/websockets/legacy/client.py", line 329, in handshake
    raise InvalidStatusCode(status_code, response_headers)
websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 400

bing无法使用

图片
求解答,已挂系统代理,config的vpn为false
顺便问下,哪种bing的cookie有效,必须是上面那个吗?
图片
图片

最新release中newbing报错

翻译器:newbing
[2023-12-18 00:41:39,302][INFO]HTTP Request: GET http://www.gstatic.com/generate_204 "HTTP/1.1 204 No Content"
[2023-12-18 00:41:39,303][INFO]载入 00通用字典_译前.txt  26普通;
[2023-12-18 00:41:39,305][INFO]载入 01H字典_矫正_译前.txt  145普通;
[2023-12-18 00:41:39,306][INFO]载入 00通用字典_符号_译后.txt  9普通;23条件;
[2023-12-18 00:41:39,306][INFO]载入 00通用字典_译后.txt  1普通;5条件;
[2023-12-18 00:41:39,307][INFO]载入 GPT字典: GPT字典.txt 7个词条
[2023-12-18 00:41:39,307][INFO]载入 GPT字典: 项目GPT字典.txt 8个词条
[2023-12-18 00:41:39,307][WARNING]不使用代理
'<' not supported between instances of 'NoneType' and 'int'
Traceback (most recent call last):
  File "F:\GalTransl\GalTransl\__main__.py", line 27, in worker
    run(run_galtransl(cfg, translator))
  File "C:\Users\pc\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "C:\Users\pc\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\pc\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "F:\GalTransl\GalTransl\Runner.py", line 32, in run_galtransl
    await doNewBingTranslate(cfg, proxyPool)
  File "F:\GalTransl\GalTransl\Frontend\GPT.py", line 418, in doNewBingTranslate
    semaphore = Semaphore(projectConfig.getKey("workersPerProject"))
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\pc\AppData\Local\Programs\Python\Python311\Lib\asyncio\locks.py", line 347, in __init__
    if value < 0:
       ^^^^^^^^^
TypeError: '<' not supported between instances of 'NoneType' and 'int'

尝试了3.10.11和3.11.6的py,报错相同

使用gpt3.5模拟网页端操作时报错

翻译器:chatgpt-gpt35
[2023-11-06 16:27:58,516][INFO]载入 00通用字典_译前.txt  26普通;
[2023-11-06 16:27:58,516][INFO]载入 01H字典_矫正_译前.txt  145普通;
[2023-11-06 16:27:58,516][INFO]载入 00通用字典_符号_译后.txt  9普通;23条件;
[2023-11-06 16:27:58,516][INFO]载入 00通用字典_译后.txt  1普通;5条件;
[2023-11-06 16:27:58,516][INFO]载入 GPT字典: GPT字典.txt 7个词条
[2023-11-06 16:27:58,518][INFO]载入 GPT字典: 项目GPT字典.txt 8个词条
urllib3.exceptions.SSLError: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1006)    
The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\pc\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\adapters.py", line 486, in send
    resp = conn.urlopen(
           ^^^^^^^^^^^^^
  File "C:\Users\pc\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\connectionpool.py", line 845, in urlopen
    retries = retries.increment(
              ^^^^^^^^^^^^^^^^^^
  File "C:\Users\pc\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\util\retry.py", line 515, in increment
    raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='bypass.churchless.tech', port=443): Max retries exceeded with url: /conversations (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1006)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "F:\GalTransl\run_GalTransl.py", line 37, in <module>
    run_galtransl(cfg, translator)
  File "F:\GalTransl\GalTransl\Runner.py", line 14, in run_galtransl
    doGPT3Translate(cfg, type="unoffapi")
  File "F:\GalTransl\GalTransl\Frontend\GPT.py", line 110, in doGPT3Translate
    gptapi = CGPT35Translate(projectConfig, type)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "F:\GalTransl\GalTransl\Backend\GPT3Translate.py", line 143, in __init__
    self.chatbot.clear_conversations()
  File "C:\Users\pc\AppData\Local\Programs\Python\Python311\Lib\site-packages\revChatGPT\V1.py", line 102, in wrapper
    out = func(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\pc\AppData\Local\Programs\Python\Python311\Lib\site-packages\revChatGPT\V1.py", line 1005, in clear_conversations
    response = self.session.patch(url, data='{"is_visible": false}')
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\pc\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\sessions.py", line 661, in patch
    return self.request("PATCH", url, data=data, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\pc\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\pc\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\pc\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\adapters.py", line 517, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='bypass.churchless.tech', port=443): Max retries exceeded with url: /conversations (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1006)')))

报错内容如上所示,已经安装了相关依赖项,py版本为3.11.6

请求支持更多语言

建议增加原始文本为英语、韩语、俄语等语言的支持,如果目标语言也能切换就更好了。

bing无法使用

我在newbing提取了cookies,但是一直显示以下错误
image
image
image
请问大佬该如何解决?

Python3.12依赖项安装失败问题

Python3.12安装依赖时遇到如下问题:
(1)需求列表内内pyYAML6.0.0无法正确安装
(2)安装依赖项tiktoken时会发生以下错误无法进行安装

大佬咨询一下环境依赖问题

大佬,想问一下我这个依赖为什么一直安装不了啊,我之前安装过python的3.10,然后按照教程把之前的python删除,重新安装的3.12,挂的美国vpn,然后就就弹出以下错误,一直安装不了依赖。

捕获1
捕获2

newbing报错

如题,添加cookie后报错 无法翻译 请大佬帮忙解决
8d3c4aecb8eac8318aab3a0ef952a75

執行出現以下錯誤訊息

Traceback (most recent call last):
File "E:\GalTransl-main\GalTransl\Backend\GPT3Translate.py", line 138, in asyncTranslate
for data in self.chatbot.ask_stream(prompt_req):
File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\revChatGPT\V3.py", line 203, in ask_stream
raise t.APIConnectionError(
revChatGPT.typings.APIConnectionError: 401 Unauthorized {
"error": {
"message": "",
"type": "invalid_request_error",
"param": null,
"code": "invalid_api_key"
}
}

Please check if there is a problem with your network connection
Please check that the input is correct, or you can resolve this issue by filing an issue
Project URL: https://github.com/acheong08/ChatGPT
[2023-06-11 23:32:52,157][ERROR]Error:401 Unauthorized {
"error": {
"message": "",
"type": "invalid_request_error",
"param": null,
"code": "invalid_api_key"
新手使用,出現這個實在不知道如何解決...

好像有Bug

报错代码
Traceback (most recent call last):
File "c:\Users\Desktop\cqb\chat\项目示例\ChatGPT项目示例\run_galtransl.py", line 27, in
transl_api.batch_translate(
File "c:\Users\Desktop\cqb\chat\项目示例\ChatGPT项目示例\chatgpt_transl_api.py", line 236, in batch_translate
trans_result = asyncio.run(
^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "c:\Users\Desktop\cqb\chat\项目示例\ChatGPT项目示例\chatgpt_transl_api.py", line 186, in chatgpt_translate
if result[key_name].startswith("\r\n") and not trans_list[

关于注入sjis问题

请问注入脚本后没有提示"sjis_ext.bin包含文字:xxx",但是封包运行后还是会漏字是什么情况?并且注入脚本的文件夹是会生成sjis_ext.bin文件的😂 Majiro引擎,之前跑过的都有正常提示sjis包含的文字

脚本,json和注入后都打包了
test.zip

运行报错以及相关错误

运行时报错,尝试解决但是不知道方法,求指点,万分感谢!!!!!!
image
image
卡在这了,是依赖没弄好吗还是什么问题,求指点,万分感谢

第二个错误详情:C:\Users\11827>pip install EdgeGPT
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting EdgeGPT
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/79/a5/26ad163069c906db32b284307d55607e2095548a692bf3f1f3869f7ef210/EdgeGPT-0.13.2-py3-none-any.whl (24 kB)
Requirement already satisfied: httpx[socks]>=0.24.0 in c:\users\11827\appdata\local\programs\python\python312\lib\site-packages (from EdgeGPT) (0.25.0)
Collecting aiohttp (from EdgeGPT)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/fd/01/f180d31923751fd20185c96938994823f00918ee5ac7b058edc005382406/aiohttp-3.8.6.tar.gz (7.4 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting websockets (from EdgeGPT)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/47/96/9d5749106ff57629b54360664ae7eb9afd8302fad1680ead385383e33746/websockets-11.0.3-py3-none-any.whl (118 kB)
Collecting rich (from EdgeGPT)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/be/2a/4e62ff633612f746f88618852a626bbe24226eba5e7ac90e91dcfd6a414e/rich-13.6.0-py3-none-any.whl (239 kB)
Requirement already satisfied: certifi in c:\users\11827\appdata\local\programs\python\python312\lib\site-packages (from EdgeGPT) (2023.7.22)
Collecting prompt-toolkit (from EdgeGPT)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a9/b4/ba77c84edf499877317225d7b7bc047a81f7c2eed9628eeb6bab0ac2e6c9/prompt_toolkit-3.0.39-py3-none-any.whl (385 kB)
Requirement already satisfied: requests in c:\users\11827\appdata\local\programs\python\python312\lib\site-packages (from EdgeGPT) (2.31.0)
Collecting BingImageCreator>=0.4.4 (from EdgeGPT)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/91/5e/04629695f684182eda5d3d2dfada781f05341a48acf6ec93b46815db1a9b/BingImageCreator-0.5.0-py3-none-any.whl (6.8 kB)
Collecting regex (from BingImageCreator>=0.4.4->EdgeGPT)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d3/10/6f2d5f8635d7714ad97ce6ade7a643358c4f3e45cde4ed12b7150734a8f3/regex-2023.10.3-cp312-cp312-win_amd64.whl (268 kB)
Requirement already satisfied: httpcore<0.19.0,>=0.18.0 in c:\users\11827\appdata\local\programs\python\python312\lib\site-packages (from httpx[socks]>=0.24.0->EdgeGPT) (0.18.0)
Requirement already satisfied: idna in c:\users\11827\appdata\local\programs\python\python312\lib\site-packages (from httpx[socks]>=0.24.0->EdgeGPT) (3.4)
Requirement already satisfied: sniffio in c:\users\11827\appdata\local\programs\python\python312\lib\site-packages (from httpx[socks]>=0.24.0->EdgeGPT) (1.3.0)
Collecting socksio==1.* (from httpx[socks]>=0.24.0->EdgeGPT)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/37/c3/6eeb6034408dac0fa653d126c9204ade96b819c936e136c5e8a6897eee9c/socksio-1.0.0-py3-none-any.whl (12 kB)
Requirement already satisfied: attrs>=17.3.0 in c:\users\11827\appdata\local\programs\python\python312\lib\site-packages (from aiohttp->EdgeGPT) (23.1.0)
Requirement already satisfied: charset-normalizer<4.0,>=2.0 in c:\users\11827\appdata\local\programs\python\python312\lib\site-packages (from aiohttp->EdgeGPT) (3.3.0)
Collecting multidict<7.0,>=4.5 (from aiohttp->EdgeGPT)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/4a/15/bd620f7a6eb9aa5112c4ef93e7031bcd071e0611763d8e17706ef8ba65e0/multidict-6.0.4.tar.gz (51 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting async-timeout<5.0,>=4.0.0a3 (from aiohttp->EdgeGPT)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a7/fa/e01228c2938de91d47b307831c62ab9e4001e747789d0b05baf779a6488c/async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
Collecting yarl<2.0,>=1.0 (from aiohttp->EdgeGPT)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/5f/3f/04b3c5e57844fb9c034b09c5cb6d2b43de5d64a093c30529fd233e16cf09/yarl-1.9.2.tar.gz (184 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting frozenlist>=1.1.1 (from aiohttp->EdgeGPT)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/8c/1f/49c96ccc87127682ba900b092863ef7c20302a2144b3185412a08480ca22/frozenlist-1.4.0.tar.gz (90 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting aiosignal>=1.1.2 (from aiohttp->EdgeGPT)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/76/ac/a7305707cb852b7e16ff80eaf5692309bde30e2b1100a1fcacdc8f731d97/aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting wcwidth (from prompt-toolkit->EdgeGPT)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/58/19/a9ce39f89cf58cf1e7ce01c8bb76ab7e2c7aadbc5a2136c3e192097344f5/wcwidth-0.2.8-py2.py3-none-any.whl (31 kB)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\11827\appdata\local\programs\python\python312\lib\site-packages (from requests->EdgeGPT) (2.0.6)
Collecting markdown-it-py>=2.2.0 (from rich->EdgeGPT)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/42/d7/1ec15b46af6af88f19b8e5ffea08fa375d433c998b8a7639e76935c14f1f/markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
Collecting pygments<3.0.0,>=2.13.0 (from rich->EdgeGPT)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/43/88/29adf0b44ba6ac85045e63734ae0997d3c58d8b1a91c914d240828d0d73d/Pygments-2.16.1-py3-none-any.whl (1.2 MB)
Requirement already satisfied: anyio<5.0,>=3.0 in c:\users\11827\appdata\local\programs\python\python312\lib\site-packages (from httpcore<0.19.0,>=0.18.0->httpx[socks]>=0.24.0->EdgeGPT) (4.0.0)
Requirement already satisfied: h11<0.15,>=0.13 in c:\users\11827\appdata\local\programs\python\python312\lib\site-packages (from httpcore<0.19.0,>=0.18.0->httpx[socks]>=0.24.0->EdgeGPT) (0.14.0)
Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich->EdgeGPT)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Building wheels for collected packages: aiohttp, frozenlist, multidict, yarl
Building wheel for aiohttp (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for aiohttp (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [100 lines of output]
*********************
* Accelerated build *
*********************
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-312
creating build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\abc.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\base_protocol.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\client.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\client_exceptions.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\client_proto.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\client_reqrep.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\client_ws.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\connector.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\cookiejar.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\formdata.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\hdrs.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\helpers.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\http.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\http_exceptions.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\http_parser.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\http_websocket.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\http_writer.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\locks.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\log.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\multipart.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\payload.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\payload_streamer.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\pytest_plugin.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\resolver.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\streams.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\tcp_helpers.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\test_utils.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\tracing.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\typedefs.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\web.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\web_app.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\web_exceptions.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\web_fileresponse.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\web_log.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\web_middlewares.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\web_protocol.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\web_request.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\web_response.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\web_routedef.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\web_runner.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\web_server.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\web_urldispatcher.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\web_ws.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\worker.py -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp_init_.py -> build\lib.win-amd64-cpython-312\aiohttp
running egg_info
writing aiohttp.egg-info\PKG-INFO
writing dependency_links to aiohttp.egg-info\dependency_links.txt
writing requirements to aiohttp.egg-info\requires.txt
writing top-level names to aiohttp.egg-info\top_level.txt
reading manifest file 'aiohttp.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'aiohttp' anywhere in distribution
warning: no previously-included files matching '.pyc' found anywhere in distribution
warning: no previously-included files matching '
.pyd' found anywhere in distribution
warning: no previously-included files matching '.so' found anywhere in distribution
warning: no previously-included files matching '
.lib' found anywhere in distribution
warning: no previously-included files matching '.dll' found anywhere in distribution
warning: no previously-included files matching '
.a' found anywhere in distribution
warning: no previously-included files matching '*.obj' found anywhere in distribution
warning: no previously-included files found matching 'aiohttp*.html'
no previously-included directories found matching 'docs_build'
adding license file 'LICENSE.txt'
writing manifest file 'aiohttp.egg-info\SOURCES.txt'
copying aiohttp_cparser.pxd -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp_find_header.pxd -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp_headers.pxi -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp_helpers.pyi -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp_helpers.pyx -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp_http_parser.pyx -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp_http_writer.pyx -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp_websocket.pyx -> build\lib.win-amd64-cpython-312\aiohttp
copying aiohttp\py.typed -> build\lib.win-amd64-cpython-312\aiohttp
creating build\lib.win-amd64-cpython-312\aiohttp.hash
copying aiohttp.hash_cparser.pxd.hash -> build\lib.win-amd64-cpython-312\aiohttp.hash
copying aiohttp.hash_find_header.pxd.hash -> build\lib.win-amd64-cpython-312\aiohttp.hash
copying aiohttp.hash_helpers.pyi.hash -> build\lib.win-amd64-cpython-312\aiohttp.hash
copying aiohttp.hash_helpers.pyx.hash -> build\lib.win-amd64-cpython-312\aiohttp.hash
copying aiohttp.hash_http_parser.pyx.hash -> build\lib.win-amd64-cpython-312\aiohttp.hash
copying aiohttp.hash_http_writer.pyx.hash -> build\lib.win-amd64-cpython-312\aiohttp.hash
copying aiohttp.hash_websocket.pyx.hash -> build\lib.win-amd64-cpython-312\aiohttp.hash
copying aiohttp.hash\hdrs.py.hash -> build\lib.win-amd64-cpython-312\aiohttp.hash
running build_ext
building 'aiohttp._websocket' extension
creating build\temp.win-amd64-cpython-312
creating build\temp.win-amd64-cpython-312\Release
creating build\temp.win-amd64-cpython-312\Release\aiohttp
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\11827\AppData\Local\Programs\Python\Python312\include -IC:\Users\11827\AppData\Local\Programs\Python\Python312\Include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" /Tcaiohttp/_websocket.c /Fobuild\temp.win-amd64-cpython-312\Release\aiohttp/_websocket.obj
_websocket.c
c:\users\11827\appdata\local\programs\python\python312\include\pyconfig.h(230): fatal error C1083: 无法打开包括文 件: “basetsd.h”: No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit code 2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for aiohttp
Building wheel for frozenlist (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for frozenlist (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [39 lines of output]
*********************
* Accelerated build *
*********************
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-312
creating build\lib.win-amd64-cpython-312\frozenlist
copying frozenlist_init_.py -> build\lib.win-amd64-cpython-312\frozenlist
running egg_info
writing frozenlist.egg-info\PKG-INFO
writing dependency_links to frozenlist.egg-info\dependency_links.txt
writing top-level names to frozenlist.egg-info\top_level.txt
reading manifest file 'frozenlist.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '.pyc' found anywhere in distribution
warning: no previously-included files matching '
.pyd' found anywhere in distribution
warning: no previously-included files matching '.so' found anywhere in distribution
warning: no previously-included files matching '
.lib' found anywhere in distribution
warning: no previously-included files matching '.dll' found anywhere in distribution
warning: no previously-included files matching '
.a' found anywhere in distribution
warning: no previously-included files matching '*.obj' found anywhere in distribution
warning: no previously-included files found matching 'frozenlist*.html'
no previously-included directories found matching 'docs_build'
adding license file 'LICENSE'
writing manifest file 'frozenlist.egg-info\SOURCES.txt'
copying frozenlist_init_.pyi -> build\lib.win-amd64-cpython-312\frozenlist
copying frozenlist_frozenlist.pyx -> build\lib.win-amd64-cpython-312\frozenlist
copying frozenlist\py.typed -> build\lib.win-amd64-cpython-312\frozenlist
running build_ext
building 'frozenlist._frozenlist' extension
creating build\temp.win-amd64-cpython-312
creating build\temp.win-amd64-cpython-312\Release
creating build\temp.win-amd64-cpython-312\Release\frozenlist
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\11827\AppData\Local\Programs\Python\Python312\include -IC:\Users\11827\AppData\Local\Programs\Python\Python312\Include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" /Tcfrozenlist/_frozenlist.c /Fobuild\temp.win-amd64-cpython-312\Release\frozenlist/_frozenlist.obj
_frozenlist.c
c:\users\11827\appdata\local\programs\python\python312\include\pyconfig.h(230): fatal error C1083: 无法打开包括文 件: “basetsd.h”: No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit code 2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for frozenlist
Building wheel for multidict (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for multidict (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [80 lines of output]
*********************
* Accelerated build *
*********************
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-312
creating build\lib.win-amd64-cpython-312\multidict
copying multidict_abc.py -> build\lib.win-amd64-cpython-312\multidict
copying multidict_compat.py -> build\lib.win-amd64-cpython-312\multidict
copying multidict_multidict_base.py -> build\lib.win-amd64-cpython-312\multidict
copying multidict_multidict_py.py -> build\lib.win-amd64-cpython-312\multidict
copying multidict_init_.py -> build\lib.win-amd64-cpython-312\multidict
running egg_info
writing multidict.egg-info\PKG-INFO
writing dependency_links to multidict.egg-info\dependency_links.txt
writing top-level names to multidict.egg-info\top_level.txt
reading manifest file 'multidict.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files found matching 'multidict_multidict.html'
warning: no previously-included files found matching 'multidict*.so'
warning: no previously-included files found matching 'multidict*.pyd'
warning: no previously-included files found matching 'multidict*.pyd'
no previously-included directories found matching 'docs_build'
adding license file 'LICENSE'
writing manifest file 'multidict.egg-info\SOURCES.txt'
C:\Users\11827\AppData\Local\Temp\pip-build-env-zszuss5j\overlay\Lib\site-packages\setuptools\command\build_py.py:204: _Warning: Package 'multidict._multilib' is absent from the packages configuration.
!!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'multidict._multilib' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.

          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'multidict._multilib' is explicitly added
          to the `packages` configuration field.

          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

          If you don't want 'multidict._multilib' to be distributed and are
          already explicitly excluding 'multidict._multilib' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.

          You can read more about "package data files" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************

  !!
    check.warn(importable)
  copying multidict\__init__.pyi -> build\lib.win-amd64-cpython-312\multidict
  copying multidict\py.typed -> build\lib.win-amd64-cpython-312\multidict
  running build_ext
  building 'multidict._multidict' extension
  creating build\temp.win-amd64-cpython-312
  creating build\temp.win-amd64-cpython-312\Release
  creating build\temp.win-amd64-cpython-312\Release\multidict
  "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\11827\AppData\Local\Programs\Python\Python312\include -IC:\Users\11827\AppData\Local\Programs\Python\Python312\Include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" /Tcmultidict/_multidict.c /Fobuild\temp.win-amd64-cpython-312\Release\multidict/_multidict.obj -O2
  _multidict.c
  c:\users\11827\appdata\local\programs\python\python312\include\pyconfig.h(230): fatal error C1083: 无法打开包括文 件: “basetsd.h”: No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit code 2
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for multidict
Building wheel for yarl (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for yarl (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [55 lines of output]
C:\Users\11827\AppData\Local\Temp\pip-build-env-g5awptgd\overlay\Lib\site-packages\setuptools\config\setupcfg.py:293: _DeprecatedConfig: Deprecated config in setup.cfg
!!

          ********************************************************************************
          The license_file parameter is deprecated, use license_files instead.

          By 2023-Oct-30, you need to update your project and remove deprecated calls
          or your builds will no longer be supported.

          See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
          ********************************************************************************

  !!
    parsed = self.parsers.get(option_name, lambda x: x)(value)
  **********************
  * Accelerated build *
  **********************
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-cpython-312
  creating build\lib.win-amd64-cpython-312\yarl
  copying yarl\_quoting.py -> build\lib.win-amd64-cpython-312\yarl
  copying yarl\_quoting_py.py -> build\lib.win-amd64-cpython-312\yarl
  copying yarl\_url.py -> build\lib.win-amd64-cpython-312\yarl
  copying yarl\__init__.py -> build\lib.win-amd64-cpython-312\yarl
  running egg_info
  writing yarl.egg-info\PKG-INFO
  writing dependency_links to yarl.egg-info\dependency_links.txt
  writing requirements to yarl.egg-info\requires.txt
  writing top-level names to yarl.egg-info\top_level.txt
  reading manifest file 'yarl.egg-info\SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no previously-included files matching '*.pyc' found anywhere in distribution
  warning: no previously-included files matching '*.cache' found anywhere in distribution
  warning: no previously-included files found matching 'yarl\*.html'
  warning: no previously-included files found matching 'yarl\*.so'
  warning: no previously-included files found matching 'yarl\*.pyd'
  no previously-included directories found matching 'docs\_build'
  adding license file 'LICENSE'
  writing manifest file 'yarl.egg-info\SOURCES.txt'
  copying yarl\__init__.pyi -> build\lib.win-amd64-cpython-312\yarl
  copying yarl\_quoting_c.pyi -> build\lib.win-amd64-cpython-312\yarl
  copying yarl\_quoting_c.pyx -> build\lib.win-amd64-cpython-312\yarl
  copying yarl\py.typed -> build\lib.win-amd64-cpython-312\yarl
  running build_ext
  building 'yarl._quoting_c' extension
  creating build\temp.win-amd64-cpython-312
  creating build\temp.win-amd64-cpython-312\Release
  creating build\temp.win-amd64-cpython-312\Release\yarl
  "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\11827\AppData\Local\Programs\Python\Python312\include -IC:\Users\11827\AppData\Local\Programs\Python\Python312\Include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" /Tcyarl/_quoting_c.c /Fobuild\temp.win-amd64-cpython-312\Release\yarl/_quoting_c.obj
  _quoting_c.c
  c:\users\11827\appdata\local\programs\python\python312\include\pyconfig.h(230): fatal error C1083: 无法打开包括文 件: “basetsd.h”: No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit code 2
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for yarl
Failed to build aiohttp frozenlist multidict yarl
ERROR: Could not build wheels for aiohttp, frozenlist, multidict, yarl, which is required to install pyproject.toml-based projects

GalTransl 提取注入工具GBK编码注入有问题

引擎是ADVHD(WillPlus),游戏是[220325] [Guilty dash] 女体でもてなす接待旅館,SJIS是可以正常注入,但是选择GBK编码注入后文件会停止第一个文件,然后工具就变未响应了
图片

建议报错达到一定次数后自动停止翻译

如果我理解的不错,即便是失败的请求也会算一次请求吧,一直失败的话挺浪费额度的(
gpt3.5的极限亲测应该在一次24句左右,那个免费项目提供的一小时120次完全够用。
但是中间偶尔会因为莫名其妙的符号问题报错,如果不在边上看着及时调整的话就会很快刷完额度。。。

游戏的解包 封包

大佬们对这一方面说的更清楚一点嘛,纯小白文本提出来翻译后,不知道怎么封回去,让游戏运行

是否支持多开功能

比如说,把文本拆开,开多个窗口和API,分别进行机翻。
有大佬试过吗?

Installation is stuck at building wheel

Expected behaviour

I expected to module to install very fast.

Actual behaviour

Building wheel for tiktoken-0.4.0 takes forever to run.

Steps to reproduce

OS - Windows 11 build 22621.1848
architecture - x64
python version - 3.12.0a5

使用UniversalInjectorFramework进行劫持时无法找到对应的dll

BGI/Ethornell引擎,把winmm.dll和uif_config.json放到游戏根目录后启动游戏,启动失败并生成了uif_log.log文件,
提示如下:
DllMain: attach
InstallDelayedAttachHook: start
InstallDelayedAttachHook: no target module specified
InstallDelayedAttachHook: transaction
InstallDelayedAttachHook: end
游戏根目录下也找不到能够被劫持的dll

gpt4 报错

image

[2023-12-16 09:42:43,310][INFO]->输出:
[2023-12-16 09:42:46,321][ERROR]-> 400 bad request {"error":{"message":"max_tokens is too large: 6151. this model supports at most 4096 completion tokens, whereas you provided 6151. (request id: 20231216014244983811118aaztsald) (request id: 20231216014244797273456z8koew4k) (request id: 20231216094244703802638pwrldvix) (request id: 20231216094244672886887sivpsufv)","type":"invalid_request_error","param":"","code":null}}
[2023-12-16 09:42:46,321][ERROR]-> 报错, 5秒后重试
Traceback (most recent call last):
File "F:\GalTransl\GalTransl\Backend\GPT4Translate.py", line 242, in translate
for data in self.chatbot.ask_stream(prompt_req):
File "C:\Users\hyominli\AppData\Local\Programs\Python\Python310\lib\site-packages\revChatGPT\V3.py", line 244, in ask_stream
raise t.APIConnectionError(
revChatGPT.typings.APIConnectionError: 400 Bad Request {"error":{"message":"max_tokens is too large: 6151. This model supports at most 4096 completion tokens, whereas you provided 6151. (request id: 20231216014244983811118AaZTsAld) (request id: 20231216014244797273456Z8koEw4K) (request id: 20231216094244703802638pwrldVIx) (request id: 20231216094244672886887sIvpsuFv)","type":"invalid_request_error","param":"","code":null}}

遇到一个bug,如果「」文本框里面为空,则会出现整个文本文件都读取失败的情况

4W)CI_BP@@M)X)F%2Q5UH)S
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\GalTransl-core\run_GalTransl.py", line 37, in
run_galtransl(cfg, translator)
File "C:\Users\Administrator\Desktop\GalTransl-core\GalTransl\Runner.py", line 14, in run_galtransl
doGPT3Translate(cfg, type="unoffapi")
File "C:\Users\Administrator\Desktop\GalTransl-core\GalTransl\Frontend\GPT.py", line 120, in doGPT3Translate
doGPT3TranslateSingleFile(
File "C:\Users\Administrator\Desktop\GalTransl-core\GalTransl\Frontend\GPT.py", line 42, in doGPT3TranslateSingleFile
tran.analyse_dialogue() # 解析是否为对话
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\GalTransl-core\GalTransl\CSentense.py", line 70, in analyse_dialogue
and ord(last_symbol) - ord(first_symbol) == 1 # 是同一对
^^^^^^^^^^^^^^^^
TypeError: ord() expected a character, but string of length 0 found
错误提示如上

两种会出错的情况。

"name": "優子",
"message": "「あら……亮くん、寝ちゃったの?」"

},
{
"message": "優子問いかけるように、声をかけるが、返事はない。"
},

=================================================
像上面的这一句,message": "優子問いかけるように、声をかけるが、返事はない。"内容第一个词是名字優子【名字】,然后GPT翻译的时候,有时候回自动给你加上"name": "優子"在上面,变成下面这样
"name": "優子",
"message": "「あら……亮くん、寝ちゃったの?」"
},
{
"name": "優子",
"message": "優子問いかけるように、声をかけるが、返事はない。"
},

然后返回的时候对不上就会出错,只返回【Failed translation】,其实内容都翻译了,就是多了gpt自作聪明的多加了"name": "優子",返回的时候对不上就会出错。

"message": "優子曾经说,「声をかけるが、返事はない。」"
这样会翻译成
"message": "優子曾经:"翻译内容”"

这样也会出错。因为。会有最后那里两个双引号在最后,另一种情况是前面会有两个双引号在前面。这种时候就会报错,返回【Failed translation】

希望大佬看看有没办修复或者避免这两种出错的情况。

对括号识别有问题

翻译诸如
キース・ジャレットの99年のアルバム、『The Melody at Night , With You』から、『My Wild Irish Rose』。
自分も目の端を拭って、笑って答える。「ありがとう」と。
这样的句子就会报错,GPT3.5会提示“多余括号”不断重试,newbing直接跳出。

GalTransl\Backend\GPT3Translate.py中的

                # 多余符号
                elif ("(" in result[key_name] or "(" in result[key_name]) and (
                    "(" not in content[i].post_jp and "(" not in content[i].post_jp
                ):
                    LOGGER.info(
                        f"->第{content[i].index}句多余括号:" + result[key_name] + "\n"
                    )
                    error_flag = True
                    break

把True改成False就行了,估计是判定规则有点问题?

不明原因停止

Traceback (most recent call last):
File "D:\HKR_v121\GalTransl2.3.3\run_GalTransl.py", line 37, in
run_galtransl(cfg, translator)
File "D:\HKR_v121\GalTransl2.3.3\GalTransl\Runner.py", line 18, in run_galtransl
doNewBingTranslate(cfg)
File "D:\HKR_v121\GalTransl2.3.3\GalTransl\Frontend\GPT.py", line 286, in doNewBingTranslate
gptapi.batch_translate(
File "D:\HKR_v121\GalTransl2.3.3\GalTransl\Backend\BingGPT4Translate.py", line 382, in batch_translate
num, trans_result = asyncio.run(
^^^^^^^^^^^^
File "D:\Python Files\python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "D:\Python Files\python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python Files\python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "D:\HKR_v121\GalTransl2.3.3\GalTransl\Backend\BingGPT4Translate.py", line 303, in translate
await self._change_cookie()
File "D:\HKR_v121\GalTransl2.3.3\GalTransl\Backend\BingGPT4Translate.py", line 424, in _change_cookie
self.chatbot = await Chatbot.create(
^^^^^^^^^^^^^^^^^^^^^
File "D:\Python Files\python311\Lib\site-packages\EdgeGPT\EdgeGPT.py", line 42, in create
await Conversation.create(self.proxy, cookies=cookies),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python Files\python311\Lib\site-packages\EdgeGPT\conversation.py", line 103, in create
response = await client.get(
^^^^^^^^^^^^^^^^^
File "D:\Python Files\python311\Lib\site-packages\httpx_client.py", line 1757, in get
return await self.request(
^^^^^^^^^^^^^^^^^^^
File "D:\Python Files\python311\Lib\site-packages\httpx_client.py", line 1530, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python Files\python311\Lib\site-packages\httpx_client.py", line 1617, in send
response = await self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python Files\python311\Lib\site-packages\httpx_client.py", line 1645, in _send_handling_auth
response = await self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python Files\python311\Lib\site-packages\httpx_client.py", line 1682, in _send_handling_redirects
response = await self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python Files\python311\Lib\site-packages\httpx_client.py", line 1719, in _send_single_request
response = await transport.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python Files\python311\Lib\site-packages\httpx_transports\default.py", line 353, in handle_async_request
resp = await self._pool.handle_async_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python Files\python311\Lib\site-packages\httpcore_async\connection_pool.py", line 261, in handle_async_request
raise exc
File "D:\Python Files\python311\Lib\site-packages\httpcore_async\connection_pool.py", line 245, in handle_async_request
response = await connection.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python Files\python311\Lib\site-packages\httpcore_async\http_proxy.py", line 271, in handle_async_request
connect_response = await self._connection.handle_async_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python Files\python311\Lib\site-packages\httpcore_async\connection.py", line 69, in handle_async_request
stream = await self._connect(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python Files\python311\Lib\site-packages\httpcore_async\connection.py", line 117, in _connect
stream = await self._network_backend.connect_tcp(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python Files\python311\Lib\site-packages\httpcore\backends\auto.py", line 31, in connect_tcp
return await self._backend.connect_tcp(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python Files\python311\Lib\site-packages\httpcore\backends\asyncio.py", line 114, in connect_tcp
stream: anyio.abc.ByteStream = await anyio.connect_tcp(
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python Files\python311\Lib\site-packages\anyio_core_sockets.py", line 221, in connect_tcp
await event.wait()
File "D:\Python Files\python311\Lib\site-packages\anyio_backends_asyncio.py", line 1778, in wait
if await self._event.wait():
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python Files\python311\Lib\asyncio\locks.py", line 213, in wait
await fut
asyncio.exceptions.CancelledError

D:\HKR_v121\GalTransl2.3.3>pause
请按任意键继续. . .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.