本Windows下升级g4f 0.5.2.0版本可以使用,但是有报错信息:
ERROR:g4f.gui.server.api:Install or update "curl_cffi" package | pip install -U curl_cffi
NoneType: None
127.0.0.1 - - [28/Apr/2025 22:17:58] "POST /backend-api/v2/log HTTP/1.1" 200 -
127.0.0.1 - - [28/Apr/2025 22:17:58] "POST /backend-api/v2/log HTTP/1.1" 200 -
ERROR:g4f.gui.server.api:Failed to fetch VQD token and hash after 3 attempts: Cannot connect to host duckduckgo.com:443 ssl:default [信号灯超时时间已到]
NoneType: None
ERROR:g4f.gui.server.api:No .har file found
NoneType: None
ERROR:g4f.gui.server.api:'NoneType' object has no attribute 'get'
NoneType: None
127.0.0.1 - - [28/Apr/2025 22:22:27] "POST /backend-api/v2/log HTTP/1.1" 200 -
127.0.0.1 - - [28/Apr/2025 22:22:27] "POST /backend-api/v2/log HTTP/1.1" 200 -
127.0.0.1 - - [28/Apr/2025 22:22:27] "POST /backend-api/v2/log HTTP/1.1" 200 -
ERROR:g4f.gui.server.api:Model busy, retry later
NoneType: None
127.0.0.1 - - [28/Apr/2025 22:22:28] "POST /backend-api/v2/log HTTP/1.1" 200 -
ERROR:g4f.gui.server.api:Cannot connect to host jmuz.me:443 ssl:default [[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1002)]
NoneType: None
ERROR:g4f.gui.server.api:'latin-1' codec can't encode characters in position 345-346: ordinal not in range(256)
NoneType: None
ERROR:g4f.gui.server.api:Install or update "curl_cffi" package | pip install -U curl_cffi
按照提示更新curl_cffi:
pip install -U curl_cffi
更新完成:
Installing collected packages: certifi, curl_cffi
Attempting uninstall: certifi
Found existing installation: certifi 2023.7.22
Uninstalling certifi-2023.7.22:
Successfully uninstalled certifi-2023.7.22
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
spacy 3.7.1 requires typer<0.10.0,>=0.3.0, but you have typer 0.12.5 which is incompatible.
weasel 0.3.2 requires typer<0.10.0,>=0.3.0, but you have typer 0.12.5 which is incompatible.
Successfully installed certifi-2025.4.26 curl_cffi-0.10.0
升级之后,至少没有再报ERROR:g4f.gui.server.api:'latin-1' codec can't encode characters in position 345-346: ordinal not in range(256) 这个报错了。