Giter VIP home page Giter VIP logo

Comments (4)

ttthree avatar ttthree commented on May 22, 2024

@Vivihung can you share the full screen of the "Install dependencies" page?
I've tried virtual env and it worked for me so far.

CleanShot 2023-09-09 at 17 46 49@2x

from promptflow.

henry-zeng avatar henry-zeng commented on May 22, 2024

@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.

Vivihung avatar Vivihung commented on May 22, 2024

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.

Vivihung avatar Vivihung commented on May 22, 2024

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

  1. Uninstall all VSCode extensions that depends on the Python extension.
  2. Uninstall Python extension.
  3. Close VSCode.
  4. Clean up VSCode caches [ref].
  5. Reinstall VSCode Python extension and the Prompt flow extension.
  6. Open the code in VSCode.

from promptflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.