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

cms register-data-policy报错 #33

Open
yali930709 opened this issue Apr 16, 2024 · 2 comments
Open

cms register-data-policy报错 #33

yali930709 opened this issue Apr 16, 2024 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@yali930709
Copy link

<采用仿真模式,参照https://www.secretflow.org.cn/zh-CN/docs/trustedflow/main/quick_start/step3 进行数据授权,报如下错误:
Traceback (most recent call last):
File "/usr/local/bin/cms", line 8, in
sys.exit(cms())
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/cli/cms.py", line 184, in register_data_policy
ctx.obj.create_data_policy(
File "/usr/local/lib/python3.8/dist-packages/sdc/capsule_manager_frame.py", line 489, in create_data_policy
for index in range(len(rule_ids)):
TypeError: object of type 'NoneType' has no len()
具体的cli.yaml配置:
register_data_policy:
scope: default
data_uuid: breast_cancer_bob
grantee_party_ids:
-
- LPSZB6L446NS2P3I3NUCQZEX2SG2EQSJZ2QNXZSE2W56INE7LZ3Q
columns:
-
- id
- mean radius
- mean texture
- mean perimeter
- mean area
- mean smoothness
global_constraints: null
op_constraints_body: null
op_constraints_name:
-
- OP_PSI
- OP_DATASET_SPLIT
- OP_XGB
- OP_PREDICT
- OP_BICLASSIFIER_EVALUATION
rule_ids: null
这里rule_ids要怎么填写,有没有关于数据授权的配置文件修改指定文档?>

技术信息
@zhongtianq
Copy link
Collaborator

您好,我们的版本更新了,文档在今天稍晚时候才会在官网更新,到时候可能需要您重新拉取一下镜像和下载一下新的模板。 至于您这里提到的rule_id,这是您自定义的,可以随机生成,后续如果要对这个rule_id对应的规则进行修改,比如删除,您需要拿这个rule_id进行操作,除此之外您不用在意这个rule_id

@zhongtianq
Copy link
Collaborator

@yali930709 hi,新版的文档已经发布了,麻烦您重新拉取一下最新镜像和模版文件。关于rule_id,如上面所说,还是由您自定义填写即可。

@zhongtianq zhongtianq self-assigned this Apr 22, 2024
@zhongtianq zhongtianq added the question Further information is requested label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants