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

pip install clause 报错;错误信息如下 #39

Open
denny071 opened this issue Apr 14, 2021 · 1 comment
Open

pip install clause 报错;错误信息如下 #39

denny071 opened this issue Apr 14, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@denny071
Copy link

Collecting clause
Using cached https://files.pythonhosted.org/packages/15/01/603f7a3d8711c514c4fc6e150b282fc94d4791e76c84b6048dd2e5940bb1/clause-1.1.5.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-t3euV0/clause/setup.py", line 3, in
from clause import version
File "clause/init.py", line 19, in
from .gen.clause import ttypes, constants, Serving
File "clause/gen/clause/ttypes.py", line 21
SyntaxError: Non-ASCII character '\xe5' in file clause/gen/clause/ttypes.py on line 22, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-t3euV0/clause/

@hailiang-wang
Copy link
Member

Work round, 修改 clause/gen/clause/ttypes.py ,将该文件第一行设置为

# -*- coding: UTF-8 -*-

参考
https://blog.csdn.net/wy_bk/article/details/80150374

clause SDK 下一个版本会包括这个更新。

@hailiang-wang hailiang-wang transferred this issue from chatopera/docs Apr 14, 2021
@hailiang-wang hailiang-wang added the bug Something isn't working label Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants