ERROR:g4f.gui.server.api:Install or update “curl_cffi“ package | pip install -U curl_cffi

本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) 这个报错了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值