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

python-client problem #18607

Open
akira822 opened this issue May 14, 2024 · 4 comments
Open

python-client problem #18607

akira822 opened this issue May 14, 2024 · 4 comments
Labels
type-bug This issue is about a bug

Comments

@akira822
Copy link

Alluxio Version:
2.9.3

Describe the bug
当我在python中使用alluxio第三方库,alluxio==0.1.3,当我运行以下代码时出现错误
file_id = self.client.open_file(video_path) reader = self.client.read(file_id) # 解码reader二进制流 video_stream = BytesIO(reader.read())
出现错误
requests.exceptions.jsondecodeerror: expecting value: line 1 column 1 (char 0)
完整错误信息为
File "/home/lj/anaconda3/envs/lgqopensora/lib/python3.10/site-packages/alluxio/client.py", line 410, in open_file
return self._post(url, opt).json()
File "/home/lj/anaconda3/envs/lgqopensora/lib/python3.10/site-packages/requests/models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
python-BaseException
但当我使用alluxio的版本为2.4.0时,就不会出现这个问题,我想问一下为什么?
To Reproduce
Steps to reproduce the behavior (as minimally and precisely as possible)

Expected behavior
应该正常运行

Urgency
Describe the impact and urgency of the bug.

Are you planning to fix it

Additional context
Add any other context about the problem here.

@akira822 akira822 added the type-bug This issue is about a bug label May 14, 2024
@YichuanSun
Copy link
Contributor

What is "alluxio==0.1.3"? This is a so old version. Can you give me a link? Actually current version is 2.9.3 and 3.1.x.

@akira822
Copy link
Author

I mean my python library is 0.1.3. Alluxio version is 2.9.3

@akira822
Copy link
Author

我想问一下,当前最新版本的python客户端是必须使用ETCD服务吗?alluxio版本2.9.3,使用最新的python客户端,必须使用ETCD服务吗?

@YichuanSun
Copy link
Contributor

No, alluxio 2.9.3 python client doesn't use ETCD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug This issue is about a bug
Projects
None yet
Development

No branches or pull requests

2 participants