2022年 11月 6日

python从文件初始化失败_Python 初始化失败

@785045633

网页版youtube 和 google 打不开是因为 XX-Net的 br编码 没有处理好

XX-net/XX-Net#8852 (comment)

建议使用firefox, chrome,

或尝试将XX-Net更新到 3.8.7(可能仍然会有问题)

另外 fqdns的日志里 发现了 之前没见过的异常, 不清楚是否影响使用

Traceback (most recent call last):

File “/home/dejavu/Projects/python-for-android/build/python-install/lib/python2.7/site-packages/gevent/greenlet.py”, line 328, in run

File “/data/data/net.xndroid/files/xndroid_files/fqrouter/manager/fqdns.py”, line 142, in handle

self.handler(self.sendto, request, address)

File “/data/data/net.xndroid/files/xndroid_files/fqrouter/manager/fqdns.py”, line 243, in __call__

request = dpkt.dns.DNS(raw_request)

File “/data/user/0/net.xndroid/files/xndroid_files/python/bin/../lib/python2.7/site-packages/dpkt/dpkt.py”, line 72, in __init__

self.unpack(args[0])

File “/data/user/0/net.xndroid/files/xndroid_files/python/bin/../lib/python2.7/site-packages/dpkt/dns.py”, line 256, in unpack

q, off = self.unpack_q(buf, off)

File “/data/user/0/net.xndroid/files/xndroid_files/python/bin/../lib/python2.7/site-packages/dpkt/dns.py”, line 227, in unpack_q

q.name, off = unpack_name(buf, off)

File “/data/user/0/net.xndroid/files/xndroid_files/python/bin/../lib/python2.7/site-packages/dpkt/dns.py”, line 84, in unpack_name

n = ord(buf[off])

IndexError: string index out of range

>(‘@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_’, (‘192.168.1.107’, 37909))> failed with IndexError