AI-Gateway icon indicating copy to clipboard operation
AI-Gateway copied to clipboard

Issue with enabling Prompt Flow

Open larrywa opened this issue 9 months ago • 2 comments

In order to do section 4 (Enable Prompt Flow tracing) in the Prompt Flow lab, I had to try to install promptflow:

pip install promptflow=1.8.0

promptflow appears to install correctly, but when I go to run the code for configuring promptflow tracing, I get this error and then it says promptflow may not be installed correctly.

Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in run_code File "c:\Users\larrywa\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\Scripts\pf.exe_main.py", line 4, in

I've gone through the process of uninstall and reinstalling but the problem remains.

Ideas on how to correct this issue?

larrywa avatar Mar 31 '25 17:03 larrywa

Hi @vieiraae, would you be able to take a look, please?

simonkurtz-MSFT avatar Apr 16 '25 16:04 simonkurtz-MSFT

@larrywa can you please try in a new python environment, install requirements.txt, then install the prompt flow library and let us know if the issue persist?

vieiraae avatar Apr 17 '25 10:04 vieiraae