代码拉取完成,页面将自动刷新
【问题复现步骤】
按照README文档中操作,新建test.py
from isula import client
builder_client = client.init_builder_client()
image_list = builder_client.list_image()
print(image_list)
print(builder_client.server_info())
【预期结果】
运行正常
【实际结果】
[root@iZbp1ca5vr2dkl292whpstZ pyisula]# python3 test.py
Traceback (most recent call last):
File "test.py", line 1, in <module>
from isula import client
File "/root/gitee/pyisula/isula/client.py", line 1, in <module>
from isula.builder import client as builder_client
File "/root/gitee/pyisula/isula/builder/client.py", line 9, in <module>
from google.protobuf.json_format import MessageToDict
ModuleNotFoundError: No module named 'google'
考虑加入protobuf作为setup依赖, 例如:https://github.com/hyperledger/fabric-sdk-py/blob/main/requirements.txt
【其他信息】
目前尚未实现iSulad相关函数,直接执行README中示例同样,会报错:Not Found
Traceback (most recent call last):
File "test.py", line 7, in <module>
isulad_client = client.init_isulad_client()
File "/root/gitee/pyisula/isula/client.py", line 17, in init_isulad_client
return isulad_client.Client(channel_target)
AttributeError: module 'isula.isulad.client' has no attribute 'Client'
可考虑先pass,或者不做修改,后续上传都可。
def init_isulad_client(channel_target=None):
pass
Hi meilier, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at
https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md.
If you have any questions, please contact the SIG: iSulad, and any of the maintainers: @jingxiaolu, @haomintsai, @lifeng_isula, @haozi007.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论