Azure / llmops-gha-demo

MIT License
26 stars 95 forks source link

Error running "run promptflow" step of login-and-run-evalpf #5

Closed jakeatmsft closed 9 months ago

jakeatmsft commented 9 months ago

Forked repo, updated runtime names, and ran action. Error in the promptflow step.

image

log: Class WorkspaceHubOperations: This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information. Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.11.4/x64/bin/pfazure", line 8, in sys.exit(main()) ^^^^^^ File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/promptflow/_cli/_pf_azure/entry.py", line 82, in main entry(command_args) File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/promptflow/_cli/_pf_azure/entry.py", line 65, in entry raise ex File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/promptflow/_cli/_pf_azure/entry.py", line 55, in entry dispatch_run_commands(args) File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/promptflow/_cli/_pf_azure/_run.py", line 361, in dispatch_run_commands create_run( File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/promptflow/_cli/_utils.py", line 344, in wrapper return func(*args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/promptflow/_cli/_pf/_run.py", line 629, in create_run run = create_func(run=run, stream=stream) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/promptflow/azure/operations/_run_operations.py", line 181, in create_or_update rest_obj = self._resolve_dependencies_in_parallel(run=run, runtime=kwargs.get("runtime"), reset=reset) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/promptflow/azure/operations/_run_operations.py", line 713, in _resolve_dependencies_in_parallel task_results = [task.result() for task in tasks] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/promptflow/azure/operations/_run_operations.py", line 713, in task_results = [task.result() for task in tasks] ^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/concurrent/futures/_base.py", line 449, in result return self.get_result() ^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/concurrent/futures/_base.py", line 401, in get_result raise self._exception File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/promptflow/azure/operations/_run_operations.py", line 539, in _resolve_flow self._flow_operations._resolve_arm_id_or_upload_dependencies(flow=flow, ignore_tools_json=True) File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/promptflow/azure/operations/_flow_opearations.py", line 241, in _resolve_arm_id_or_upload_dependencies self._try_resolve_code_for_flow(flow=flow, ops=ops, ignore_tools_json=ignore_tools_json) File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/promptflow/azure/operations/_flow_opearations.py", line 280, in _try_resolve_code_for_flow upload_paths += list(traverse_directory(root, files, source_path, prefix, ignore_file=ignore_file)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: traverse_directory() takes 2 positional arguments but 4 positional arguments (and 1 keyword-only argument) were given Error: Process completed with exit code 1.

jakeatmsft commented 9 months ago

logs_3.zip

AbeOmor commented 9 months ago

@jakeatmsft This seems like it a PF code version issue, should be fixed now. We just updated the requirement.txt file

jakeatmsft commented 9 months ago

Thanks @AbeOmor, looks good now:

image