Comments (4)
@Vivihung can you share the full screen of the "Install dependencies" page?
I've tried virtual env and it worked for me so far.
from promptflow.
@Vivihung if you just update the promptflow SDK, you may need to reload your VSCode window, and then check the install dependecy again to see whether you venv can pickup the latest library, and then you cango to flow.dag.yaml to select the venv you have pf installed, which you should be able to see the visual editor
from promptflow.
Thanks for your suggestions. I can see the visual editor on one of my machine (not the repro one though). Will spend a bit more time with the repro machine and share findings here.
from promptflow.
Update on my investigation - The problem seems related to the VSCode Python extension. The reason the PF dependencies don't get detected correctly is due to the Python interpreter wasn't set to the right virtual env, and cannot be updated.
An easy way to identify this issue is to open a python file in VSCode. If the Python interpreter in the VSCode status toolbar (in bottom of the VSCode window) shows warning even selecting the right env python from the command bar, then you hit this issue.
My way to resolve it is
- Uninstall all VSCode extensions that depends on the Python extension.
- Uninstall Python extension.
- Close VSCode.
- Clean up VSCode caches [ref].
- Reinstall VSCode Python extension and the Prompt flow extension.
- Open the code in VSCode.
from promptflow.
Related Issues (20)
- [BUG] [VSCode Extension] unable to configure mlindex_content HOT 4
- Tokens_per_message issue HOT 3
- [BUG] [VSCode Extension] HOT 2
- How can I save global variables using Promptflow HOT 1
- [BUG] Types for promptflow-evals evaluator classes
- [Feature Request] Add docstrings for constructors
- [Feature Request] Provide example of evaluator_config for evaluate
- [Feature Request] Allow Path objects for evaluate data and output_path parameters
- [Feature Request] Allow the data parameter of evaluate to take a list HOT 1
- [Feature Request] Allow the target function in evaluate to be a local function HOT 1
- [Feature Request] Improve compatibility between PromptFlow and Python modules with relative imports HOT 1
- [BUG] can not build docker image
- [BUG] API KEY is not extracted from environment variables during connection creation with promptflow 1.10.1 HOT 1
- Add Support for Image Generation with AzureOpenAI
- [BUG] Fallback to DefaultAzureCredential isn't compatible with AzureDeveloperCliCredential HOT 1
- [BUG] UnicodeEncodeError during evaluation HOT 5
- [BUG] pf connection create complains that creating an AI connection can't be done from PromptFlow HOT 6
- [BUG] Serving UI doesn't return flow result HOT 5
- [BUG] prompty-quickstart.ipynb run evaluation not working due to RuntimeError HOT 1
- [Feature Request] JSON formatted Logs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from promptflow.