promptflow icon indicating copy to clipboard operation
promptflow copied to clipboard

Unable to create a new connection

Open tyler-suard-parker opened this issue 10 months ago • 3 comments

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:

  1. In the flow DAG, click "add connection" image

  2. Enter the correct url and click "Create connection" image

  3. Enjoy error image

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]

tyler-suard-parker avatar Apr 22 '24 22:04 tyler-suard-parker

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.

brynn-code avatar Apr 23 '24 02:04 brynn-code

I am not using conda, I am just using a venv. Is conda required?

tyler-suard-parker avatar Apr 23 '24 18:04 tyler-suard-parker

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?

brynn-code avatar Apr 24 '24 02:04 brynn-code