Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pylance report Missing Imports #1445

Closed
richardHaggioGwati opened this issue Jun 14, 2021 · 13 comments
Closed

Pylance report Missing Imports #1445

richardHaggioGwati opened this issue Jun 14, 2021 · 13 comments
Labels
waiting for user response Requires more information from user

Comments

@richardHaggioGwati
Copy link

Environment data

  • Language Server version: v2021.6.1
  • OS and version: 64-bit OS
  • Python version (& distribution if applicable, e.g. Anaconda): XXX

Expected behaviour

from freegames import square, vector

Actual behaviour

Import "freegames" could not be resolved Pylance report Missing Imports

Logs

I am unable to enable trace logging

Code Snippet / Additional information

XXX
@bschnurr
Copy link
Member

Try using the "Pylance: Report Issue" command. it automatically copies the logs to your clipboard so that you can pase them. but you still need to turn tracing on in your settings.json ctrl+,

@jakebailey jakebailey added the waiting for user response Requires more information from user label Jun 14, 2021
@github-actions github-actions bot removed the triage label Jun 14, 2021
@richardHaggioGwati
Copy link
Author

I'd you could walk me through the process, I would appreciate that

@jakebailey
Copy link
Member

You would want to set:

image

Then find the logs in the output window here:

image

@richardHaggioGwati
Copy link
Author

I have managed to select Trace, although I am unable to find the language server

Uploading v8{230a58c} (3408bcc8-c8a8-4f57-b878-7f8dbad544b4 id=0x7f0a03c0) …

@jakebailey
Copy link
Member

For reference, you can find a link to the output here:

image

Then, you will see the dropdown on the right of the panel that appears.

@richardHaggioGwati
Copy link
Author

Hello Sir
As instructed, I have open the output window and I am in the Python Language Server.20210619_090628.jpg

@jakebailey
Copy link
Member

Screenshots aren't really going to give us the info we need; can you copy and paste that entire output?

@richardHaggioGwati
Copy link
Author

Good morning and or Evening Sir, attached you will find a pdf with the output log that you requested. Hopefully it helps resolve the issue with the extension.

Info.pdf

@jakebailey
Copy link
Member

Thanks.

Where do you have freegames installed? Your logs indicate that your selected interpreter is:

C:\Users\Mr Cephas\AppData\Local\Programs\Python\Python38\python.exe

Did you install freegames globally to this interpreter, or to some other interpreter?

@richardHaggioGwati
Copy link
Author

Morning/Evening and or Afternoon

I have not installed freegames anywhere, I am trying to import it and this is the first time I have tried to import a module and I am unable to import it. Should i install freegames on my computer?

@acbetter
Copy link

I use this to solve the issue. Mod your settings.json . Hope it works.

{
    "python.languageServer": "Pylance",
    "python.defaultInterpreterPath": "python3"
}

@richardHaggioGwati
Copy link
Author

richardHaggioGwati commented Jun 29, 2021 via email

@richardHaggioGwati
Copy link
Author

It is all okay now. Thanks guys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for user response Requires more information from user
Projects
None yet
Development

No branches or pull requests

4 participants