Git Product home page Git Product logo

Comments (9)

rchiodo avatar rchiodo commented on June 15, 2024 1

The requests problem might be a dupe of this issue:
microsoft/vscode#199800

Meaning we don't know which kernel is selected.

The log should show that though.

from pylance-release.

ZJDATY avatar ZJDATY commented on June 15, 2024 1

sounds like our tokenzier/parser is not ignoring % statement properly in ipython mode.

for requests, it is complaining that you didn't install requests packages in the openvino env.

It seems to be that it doesn't detect my openvino environment correctly. I'm using a virtual python environment under conda.

from pylance-release.

heejaechang avatar heejaechang commented on June 15, 2024

sounds like our tokenzier/parser is not ignoring % statement properly in ipython mode.

for requests, it is complaining that you didn't install requests packages in the openvino env.

from pylance-release.

ZJDATY avatar ZJDATY commented on June 15, 2024

sounds like our tokenzier/parser is not ignoring % statement properly in ipython mode.

for requests, it is complaining that you didn't install requests packages in the openvino env.

I have install requests and it can running success.

from pylance-release.

heejaechang avatar heejaechang commented on June 15, 2024

I have install requests and it can running success.

how about providing us a log to see what python paths (libraries) we got? if you are using latest pylance (104), then there should be Pylance: start logging/stop logging command.

can you provide us the log produced by the command to us?

from pylance-release.

heejaechang avatar heejaechang commented on June 15, 2024

so, it probably is the dup of the bug Rich linked, then.

from pylance-release.

ZJDATY avatar ZJDATY commented on June 15, 2024

@heejaechang @rchiodo After reading your reply, it may have been caused by a kernel link error, so I tried switching the kernel multiple times and restarted VSCode and Windows 11. The error regarding import has disappeared now, it seems that the link is correct. But the first mistake still exists.
image
image

pyright-18848-KKlrxNNpgVLY.zip

from pylance-release.

ZJDATY avatar ZJDATY commented on June 15, 2024

I put %pip install -q "matplotlib>=3.4" outside and it won't report any errors.

image

from pylance-release.

heejaechang avatar heejaechang commented on June 15, 2024

ya, first issue looks like this

sounds like our tokenzier/parser is not ignoring % statement properly in ipython mode.

looks like there is a bug around this - https://github.com/microsoft/pyright/blob/main/packages/pyright-internal/src/parser/tokenizer.ts#L450

from pylance-release.

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.