#🔒 import discord requirement already satisfied

46 messages · Page 1 of 1 (latest)

topaz snow
#

ik its some path error and the discord module is in the second line in the output but idk what to do next and frankly my brain is fried

agile havenBOT
#

@topaz snow

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.

ember cliff
#

Hi @topaz snow

If you are getting an import error or something along those lines when importing discord then you should switch python interpreter. Do ctrl P and search up change python interpreter, and switch to the other one. See if that works.

signal hinge
#

You have to install discord in CMD or pycharm before you import it. If you’ve already done that there’s a couple more things to try.

Go to CMD and type

pip install discord

Then put it as a module on pycharm then you’re good to go

topaz snow
#

isnt pycharm an ide?

ember cliff
ember cliff
topaz snow
#

it isnt showing anythign

ember cliff
#

For ctrl P?

topaz snow
#

yes

#

the searchbar on the top right

#

when i put python interpreter in the search bar

#

nothing shows

ember cliff
topaz snow
#

oh yeah that worked

#

which one

#

global?

ember cliff
#

Try global

#

See what happens

topaz snow
#

🥹 it no longer has the yellow squiggly lines

ember cliff
#

Try running it

#

If no errors show then it worked

topaz snow
#

my computer is messed up

#

i only have one line of code

#

the previous attempt i did for the discord bot had main under a venv file but i deleted it

ember cliff
#

Did u save the file tho

#

Ctrl s

topaz snow
#

I THOUGHT IT SAVES AUTOMATICALLY

#

yeah

ember cliff
#

When u click on the file content in the editor

topaz snow
#

it worked

ember cliff
#

LOL

#

rip

#

Well at least it's working now

#

Just in the future

ember cliff
topaz snow
#

oh ok

#

ty

ember cliff
#

Np

#

Have a good day

topaz snow
#

yt

agile havenBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, 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.