#๐Ÿ”’ Error in Visual Studio Code.

40 messages ยท Page 1 of 1 (latest)

neat spruce
#

Can someone check why I'm getting these errors (I installed everything).

urban pagodaBOT
#

@neat spruce

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

quartz cove
#

Are these modules installed?

neat spruce
#

yes

#

we can go through it

#

maybe is that because i created folder inside the folder for a backup?

quartz cove
#

I doubt it. I would guess that pylance doesn't know about the python environment in which you installed these packages.

Does the Python code run?

neat spruce
#

didn't try it yet

quartz cove
#

Try it.

neat spruce
#

no it doesnt run it

quartz cove
#

Pylance is a linter, to complain about various potential problems with your code.

#

What happens when you try?

neat spruce
#

nothing

#

it doesnt even show

#

when i click on the play buttom

quartz cove
#

Normally there's a terminal window in the bottom of vscode (if you're using vscode).

neat spruce
#

okay i went on new terminal

#

am

#

let me try another file

#

it opens but it's not as it should be

#

maybe because of the errors?

quartz cove
#

If you mean the pylance errors, probably not.
When you say "not as it should", what does that mean?

neat spruce
#

design wise

#

but it can be fixed so nw

#

but i think still bcs of import errors it doesn't show the look as it should be

#

can we check that so those problems can be gone?

gusty lava
#

You can ignore warnings

neat spruce
#

can be they solved at least?

gusty lava
#

do you have a venv set up?

neat spruce
#

venv no

gusty lava
#

venv = virtual env

neat spruce
#

i thought it shouldn't be a problem without venv haha

gusty lava
gusty lava
neat spruce
#

thank you

gusty lava
#

After creating the venv, install your packages/dependencies in that venv

neat spruce
#

will do! thank you again and @quartz cove also thank you!

urban pagodaBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.