Azure-Samples / Azure-Samples/rag-data-openai-python-promptflow

provision.py erroring in local setup - missing 1 required positional argument: 'workspace_connection'

未关闭
#13 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
290
派生
152
PR 合并指标
30 天内没有已合并 PR

描述

> Please provide us with the following information:
> ---------------------------------------------------------------

### This issue is for a: (mark with an `x`)
```
- [X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
```

### Minimal steps to reproduce
>Following Option2 - Develop in your own environment.
In Step 2 - provision.py script is erroring. Here is the error: TypeError: WorkspaceConnectionsOperations.create_or_update() missing 1 required positional argument: 'workspace_connection'

FYI - provision.yaml file is updated with all the required values.

### Any log messages given by the failure
>Class WorkspaceConnection: This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.
ActivityCompleted: Activity=WorkspaceConnections.CreateOrUpdate, HowEnded=Failure, Duration=0.0 [ms], Exception=TypeError, ErrorCategory=Unknown, ErrorMessage=Got error TypeError: 'WorkspaceConnectionsOperations.create_or_update() missing 1 required positional argument: 'workspace_connection'' while calling WorkspaceConnections.CreateOrUpdate
Traceback (most recent call last):
File "C:\Users\paramasivams\OneDrive - Microsoft\Documents\GitHub\rag-data-openai-python-promptflow\src\provisioning\provision.py", line 855, in
main()
File "C:\Users\paramasivams\OneDrive - Microsoft\Documents\GitHub\rag-data-openai-python-promptflow\src\provisioning\provision.py", line 843, in main
provision_plan.provision()
File "C:\Users\paramasivams\OneDrive - Microsoft\Documents\GitHub\rag-data-openai-python-promptflow\src\provisioning\provision.py", line 578, in provision
self.steps[k].create()
File "C:\Users\paramasivams\OneDrive - Microsoft\Documents\GitHub\rag-data-openai-python-promptflow\src\provisioning\provision.py", line 502, in create
return ml_client.connections.create_or_update(connection=connection_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\paramasivams\OneDrive - Microsoft\Documents\GitHub\rag-data-openai-python-promptflow\.venv\Lib\site-packages\azure\ai\ml\_telemetry\activity.py", line 292, in wrapper
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
TypeError: WorkspaceConnectionsOperations.create_or_update() missing 1 required positional argument: 'workspace_connection'

### Expected/desired behavior
>provision.py script executing successfully

### OS and Version?
> Windows 10.

### Versions
>

### Mention any other details that might be useful

> ---------------------------------------------------------------
> Thanks! We'll be in touch soon.

贡献指南

这个仓库没有索引到贡献指南

调研方向

从 src/provisioning/provision.py 开始,重点检查第 502 行的 create 方法,并查看 provision.yaml 是如何传递给 workspace 连接操作的。运行 provision.py 复现 Option 2 的本地设置,然后验证脚本完成时不会出现报告的缺少参数 TypeError。

由索引模型根据 Issue 内容生成。

评估

技术栈
azure, python
领域
cloud
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。