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
-
request-theme
難度 1/5 1 小時以內 新手友好度 78/100
LizardByte/ThemerrDB#9883 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 84/100
Project-MONAI/MONAI#9258 ·
維護者通常 3 天內回覆
-
catalog:deprecation
難度 1/5 1 小時以內 新手友好度 88/100
surendranb/free-inference#31 ·
維護者通常 1 天內回覆
-
難度 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 天內回覆