烧KEY笔记

# 前言 之前duke有一个给cpu方案烧key的工具, 现在要烧mcu, 被我拿来改一改直接拿来用了, 因为这个工具很老了, 对于新系统的适配总是出毛病, 在此记录一些笔记 # 22.04 升级为 24.04 ``` The above exception was the direct cause of the following exception: Traceback (most recent call last): File "./main_freq.py", line 235, in burn_and_test ser_ip = await ser_get_ip(state['cid']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "./main_freq.py", line 178, in ser_get_ip msg = await resp.json() ^^^^^^^^^^^^^^^^^ File ".local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 751, in json await self.read() File ".local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 693, in read self._body = await self.content.read() ^^^^^^^^^^^^^^^^^^^^^^^^^ File ".local/lib/python3.12/site-packages/aiohttp/streams.py", line 420, in read raise self._exception aiohttp.client_exceptions.ClientPayloadError: 400, message: Can not decode content-encoding: br ``` 疑似是python包支持有问题, 安装一个包 ``` pip install brotli -i https://pypi.tuna.tsinghua.edu.cn/simple --break-system-packages ``` 还是不行, 后来回降版本就好了 ``` pip install aiohttp==3.12.15 ```

评论