ART icon indicating copy to clipboard operation
ART copied to clipboard

Fix GBK codec error when reading pyproject.toml

Open me-v2 opened this issue 7 months ago • 5 comments

Added encoding="utf-8" to file read/write operations in bump_version.py to handle pyproject.toml with UTF-8 encoding, resolving 'gbk' codec can't decode byte 0xbf error at position 1779.

me-v2 avatar Aug 07 '25 09:08 me-v2

@linpan what's the error you're seeing? also looks like you may need to run scripts/run_checks.sh --fix

bradhilton avatar Aug 07 '25 14:08 bradhilton

@bradhilton in pyproject.toml ,have comment "#中国" “中国” is gbk coding。

me-v2 avatar Aug 08 '25 01:08 me-v2

I don't see "#中国" “中国” in pyproject.toml

bradhilton avatar Aug 08 '25 19:08 bradhilton

yours pyproject.toml is not gbk, add encoding for edge case.

me-v2 avatar Aug 11 '25 01:08 me-v2

@linpan can you run scripts/run_checks.sh --fix? once the format issue is fixed then i can merge

bradhilton avatar Aug 11 '25 16:08 bradhilton