full_lifecycle example error when scoring the model
还没有人认领这个 Issue。
评估
调研方向
从 Viya Stable 2024.05 上的 full_lifecycle 示例开始,使用所示的 X_test 行重现 module_lm.predict(x) 调用。检查 sasctl 在 microanalytic_score.py 中的 traceback 以及返回的 HTTP 500 详细信息,以区分环境问题和 sasctl 问题。完成的标准是已确定原因,并且示例 scoring 路径能够正常工作,或已记录所需的限制。
由索引模型根据 Issue 内容生成。
描述
Hi, I followed the example full_lifecycle on Viya Stable 2024.05.
After publishing the model to MAS, I try to score the model using the following code (coming from the example):
Select the first row of testing data
x = X_test.iloc[0, :]
Call the published module and score the record
result = module_lm.predict(x)
result
When executing, I get the following error message.
(Traceback (most recent call last):
File "/opt/conda/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3460, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "/tmp/ipykernel_88/3639141225.py", line 5, in
result = module_lm.predict(x)
File "", line 132, in _bostonlinearregression_9096f80f6_predict
File "/opt/conda/lib/python3.10/site-packages/sasctl/_services/microanalytic_score.py", line 144, in execute_module_step
r = cls.post("/modules/{}/steps/{}".format(module, step), json=body)
File "/opt/conda/lib/python3.10/site-packages/sasctl/_services/service.py", line 113, in post
return cls.request("post", *args, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/sasctl/services/service.py", line 93, in request
return core.request(verb, path, session, format, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/sasctl/core.py", line 2042, in request
raise HTTPError(
urllib.error.HTTPError: HTTP Error 500: {"errorCode":-1958743877,"message":"Error 8b3ff0bb received when executing the step "predict" of the module "bostonlinearregression_9096f80f6".","details":["traceId: db2747f967f1cd2f","path: /microanalyticScore/modules/bostonlinearregression_9096f80f6/steps/predict"],"links":[],"version":2,"httpStatusCode":500}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/conda/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 2054, in showtraceback
if hasattr(value, "render_traceback"):
File "/opt/conda/lib/python3.10/tempfile.py", line 477, in getattr
file = self.dict['file']
KeyError: 'file'
Knowing that I get a HTTP 500 error, I'm not 100% sure if the problem is my environment configuration or with sasctl.
- 主要语言
- Python
- 星标
- 52
- 派生
- 45
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
sassoftware/python-sasctl 的其他 Issue
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
sassoftware/python-sasctl#224 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 25/100
sassoftware/python-sasctl#216 ·
-
bug
难度 4/5 3-5 天 新手友好度 35/100
sassoftware/python-sasctl#207 · 1 个 reaction ·
-
bug
难度 3/5 1-2 天 新手友好度 45/100
sassoftware/python-sasctl#202 ·
-
bug
难度 4/5 3-5 天 新手友好度 30/100
sassoftware/python-sasctl#193 ·
查看 sassoftware/python-sasctl 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
fritzprix/libr-agent#2612 ·
维护者通常 1 天内回复
-
needs-triage presubmit-gate
难度 2/5 1-3 小时 新手友好度 76/100
gke-labs/kube-agents#5001 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
simonw/sqlite-utils#928 ·
维护者通常 3 天内回复
-
colorado
难度 2/5 1-3 小时 新手友好度 72/100
freelawproject/juriscraper#2405 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
cline/mcp-marketplace#3576 ·