Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

除 chat 功能外其余功能命令行执行均报错 UnicodeDecodeError #27

Open
co-yzj opened this issue Jul 17, 2024 · 2 comments
Open

Comments

@co-yzj
Copy link

co-yzj commented Jul 17, 2024

报错信息仅此一条
python 3.10.14:
UnicodeDecodeError - 'utf-8' codec can't decode byte 0xfc in position 224: invalid start byte
python 3.11:
UnicodeDecodeError - 'utf-8' codec can't decode byte 0xfc in position 64: invalid start byte

@wangr0031
Copy link

可能是文件编码不对吧,试试用dos2unix类似的命令,批量处理下文件格式

@tedczj
Copy link

tedczj commented Aug 10, 2024

在__init__.py", line 187 那里加了一行print(file_path)
然后重新执行报错的命令
找到报错信息上面最后一行file_path, 用vs_code将这个文件转为utf-8编码,然后还原__init__.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants