promptflow
promptflow copied to clipboard
Unable to create a new connection
Describe the bug
When I click "create connection", I always get this error: Exception: Promptflow may not installed correctly. If you are upgrading from 'promptflow<1.8.0' to 'promptflow>=1.8.0', please run 'pip uninstall -y promptflow promptflow-core promptflow-devkit promptflow-azure', then 'pip install promptflow>=1.8.0'. Reach https://microsoft.github.io/promptflow/how-to-guides/faq.html#promptflow-1-8-0-upgrade-guide for more information.
I installed promptflow >=1.8.0 as the instructions said, and I am still getting the same issue.
How To Reproduce the bug Steps to reproduce the behavior, how frequent can you experience the bug:
-
In the flow DAG, click "add connection"
-
Enter the correct url and click "Create connection"
-
Enjoy error
Expected behavior I expected a connection to be created without an error
Running Information(please complete the following information):
- Promptflow Package Version using
pf -v
: Even trying to do this triggered the same error - Operating System: Windows 11
- Python Version [python==3.9]
That's the DLL load failed error, seems conda env missing some path then can't find the DLLs. could you please try create a new conda env and re-install promptflow? That 'may not install correctly' is trying to handle another issue, instead of yours DLL missing one.
I am not using conda, I am just using a venv. Is conda required?
No, whatever conda or venv, seems some paths are missing, this may caused by multiple reason, for example the env was created with admin permission and vscode running with regular permission then caused something can't be accessed by vscode. Could you please try running a pf command, like 'pf --version' from the console you set up the venv?