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

A copilot sample that uses python to ground the copilot responses in company data.
39 stars 36 forks source link

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

Open pwine123 opened 3 weeks ago

pwine123 commented 3 weeks ago

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.