报错botmodule.command.test:analyze:252 - cannot open resource
yuanweize opened this issue · comments
报错信息
Mar 25 16:52:25 esxicnspeedbot python3[47158]: time="2023-03-25T16:52:25-04:00" level=info msg="[TCP] 127.0.0.1:57624 --> ip-api.com:80 match Match() using au>
Mar 25 16:52:25 esxicnspeedbot python3[47119]: time="2023-03-25T16:52:25-04:00" level=info msg="[TCP] 127.0.0.1:57260 --> ip-api.com:80 match Match() using au>
Mar 25 16:52:25 esxicnspeedbot python3[47095]: time="2023-03-25T16:52:25-04:00" level=info msg="[TCP] 127.0.0.1:41762 --> ip-api.com:80 match Match() using au>
Mar 25 16:52:26 esxicnspeedbot python3[47053]: 2023-03-25 16:52:26.615 | INFO | libs.topotest:batch_topo:101 - 最后批次: 3
Mar 25 16:52:26 esxicnspeedbot python3[47053]: 2023-03-25 16:52:26.618 | INFO | libs.proxys:switchProxy_old:34 - 切换节点: AWSHK香港|佛山移动3Gbps|负载2 2>
Mar 25 16:52:26 esxicnspeedbot python3[47053]: 2023-03-25 16:52:26.621 | INFO | libs.proxys:switchProxy_old:34 - 切换节点: SGP新加坡|佛山移动3Gbps|负载1 2>
Mar 25 16:52:26 esxicnspeedbot python3[47095]: time="2023-03-25T16:52:26-04:00" level=info msg="[TCP] 127.0.0.1:41766 --> ip-api.com:80 match Match() using au>
Mar 25 16:52:26 esxicnspeedbot python3[47119]: time="2023-03-25T16:52:26-04:00" level=info msg="[TCP] 127.0.0.1:57268 --> ip-api.com:80 match Match() using au>
Mar 25 16:52:27 esxicnspeedbot python3[47053]: 2023-03-25 16:52:27.639 | INFO | libs.topotest:core:261 - {'入口': (1, 1, 2, 1, 2, 2, 1, 2, 1, 1), '地区': >
Mar 25 16:52:27 esxicnspeedbot python3[47053]: 2023-03-25 16:52:27.651 | ERROR | botmodule.command.test:analyze:252 - cannot open resource
已经设置777 递归目录
TGBOT卡在这里不动,网络正常
╰(*°▽°*)╯节点链路拓扑测试进行中...
当前进度:
100.00% [10/10]
图片生成错误,因为下载的zip包里面的字体文件名解压后不是中文,所以在获取字体文件时报错,Thanks to ChatGPT
从您提供的错误日志来看,问题出在加载字体文件时无法打开资源。具体出错位置在 /opt/FullTclash/libs/export.py 文件的第 59 行。
`self.__font = ImageFont.truetype(self.config.getFont(), self.front_size)`
这里尝试加载一个字体文件,但是遇到了 OSError,可能的原因有以下几点:
字体文件路径不正确。请检查/opt/FullTclash/resources/阿里巴巴普惠体-Regular.ttf文件是否存在。
检查字体文件的权限是否允许程序访问。您可以使用ls -l命令查看文件权限。如果需要,您可以使用chmod命令更改文件权限,例如:chmod 644 /opt/FullTclash/resources/阿里巴巴普惠体-Regular.ttf。
项目文件尽量使用英文文件名
文
好,中文名确实可能会出现一些问题,已收到反馈。
The Chinese language name may appear some problems indeed, I have received feedback.