Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

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

Closed
jakeatmsft opened this issue Sep 13, 2023 · 3 comments
Closed

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

jakeatmsft opened this issue Sep 13, 2023 · 3 comments

Comments

@jakeatmsft
Copy link

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
Copy link
Author

logs_3.zip

AbeOmor added a commit that referenced this issue Sep 14, 2023
@AbeOmor
Copy link
Contributor

AbeOmor commented Sep 14, 2023

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

@AbeOmor AbeOmor closed this as completed Sep 14, 2023
@jakeatmsft
Copy link
Author

Thanks @AbeOmor, looks good now:

image

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

No branches or pull requests

2 participants