[BUG] pf flow serve is broken in promptflow==1.10.0 (NotADirectoryError) #3058
Labels
bug
Something isn't working
no-recent-activity
There has been no recent activity on this issue/pull request
I'm happy to implement this seems straightforward (possible solution provided below, please confirm if this is the expected behaviour)
Describe the bug
Serving the interactive chat UI appears to have broken. Flask app 'promptflow.core._serving.app' does not start successfully, resulting in an exception and the local app server doesn't open in a browser.
How To Reproduce the bug
Using the following
flow.dag.yaml
:and
parrot.py
(both files in the same source directory):To reproduce the error, run any of the following
pf
commands below:pf flow serve --source ./ pf flow serve --source . pf flow serve --source flow.dag.yaml
Exception raised:
Issue resolves when you adjust
_resolve_python_flow_additional_includes()
to return the parent of the source instead, included below:Expected behavior
Flask app 'promptflow.core._serving.app' serves successfully and a browser window opens:
Screenshots
Above: the reproducible example in PyCharm. ^ above: same error reproduced in Python 3.9.xRunning Information(please complete the following information):
The text was updated successfully, but these errors were encountered: