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

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

Open
pwine123 opened this issue Jun 13, 2024 · 0 comments

Comments

@pwine123
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant