#๐Ÿ”’ issue with testing/running my discord bot

22 messages ยท Page 1 of 1 (latest)

stoic wraith
#

i'm trying to make a discord bot with discord.py, but when i try to run the bot, python closes, and inside command prompt i get errors like:
"Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases."

whenever i try to check for any errors in my code

i think i might be doing something wrong, i also repaired python, and even reinstalled it

i want to know if i should be trying to run the code by double clicking on the .py file for my bot, or in another way that i don't know of

somber terraceBOT
#

@stoic wraith

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.

hidden hollow
#

can you run py command in command prompt?

#

@stoic wraith

stoic wraith
hidden hollow
#

try py <path to your py file.py>

stoic wraith
#

i already have

hidden hollow
#

it does the same?

stoic wraith
#

and i either get
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases.

or

C:\Users\shane\AppData\Local\Programs\Python\Python313\python.exe: can't open file 'C:\\Users\\shane\\serverutilities.py': [Errno 2] No such file or directory

stoic wraith
hidden hollow
#

try this

#

@stoic wraith

#

num 3

stoic wraith
#

ok

stoic wraith
# hidden hollow try this

i can't, my computer keeps automatically closing settings when i try to go to app execution aliases in settings

stoic wraith
stoic wraith
#

it might be a computer issue because there are also other problems im having while im trying to do this

#

such as i can't type into the search bar or anything

somber terraceBOT
#
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.