#๐Ÿ”’ Error with running code.

33 messages ยท Page 1 of 1 (latest)

fresh needleBOT
#

@azure dune

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.

azure dune
#

Error:

#

C:\Users\User\AppData\Local\Programs\Python\Python312\python.exe: can't open file 'C:\Users\User\PycharmProjects\pythonProject10\main.py': [Errno 2] No such file or directory

dapper thorn
#

ur running a different file

azure dune
#

?

#

How?

dapper thorn
#

for execution of the current file try pressing F5

azure dune
#

OK

#

Makes me rename it.

#

Idk

dapper thorn
#

ur filename is RockPaperScissors.py instead of main.py

azure dune
#

Ok

#

Shoot

#

Lemme try

dapper thorn
#

right-click on your Rock_Paper_Scissors.py file and then look for Run.

#

i dont use pycharm but thats my take

azure dune
#

Ohhhh

#

Ok

#

I will try and get back to you.

near pawn
#

there should be a "Run Current File" option

dapper thorn
#

Shift + F10

#

is the appropriate keybind

azure dune
#

Yep

#

works

#

Sorry guys, silly mistake ducky_concerned

dapper thorn
#

nextime inspection of ur error message will save u

azure dune
#

Ok

#

Ty

dapper thorn
#

nw

azure dune
#

๐Ÿ™‚

fresh needleBOT
#
Python help channel closed using Discord native close action

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.