#๐Ÿ”’ how do i fix python trace back.. im new to this.

115 messages ยท Page 1 of 1 (latest)

signal stream
#

im a newb

wary bobcatBOT
#

@signal stream

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.

signal stream
#

help me i cant seem to know this python trace back that keeps popping up and instantly crashing.

primal rain
# signal stream im a newb

a traceback is information about an error that occurred. We would need to see the traceback to be able to troubleshoot it

signal stream
#

here

final raven
signal stream
#

what file?

#

py?

#

python?

final raven
#

yes, move your python file out of there

signal stream
#

okay

final raven
#

make a different directory in like your desktops folder or something for python projects

signal stream
#

alr alr

#

i forgot, where is system 32?

final raven
signal crypt
#

who told u to place ur file in that folder pithink

signal stream
#

all of the python files?

final raven
signal stream
#

done

#

now what

final raven
signal stream
#

๐Ÿ’€

final raven
signal stream
final raven
#

you're still in system32

#

where did you put your python file?

signal stream
#

outside

#

in a folder

final raven
#

what's the exact path?

signal stream
#

you mean where i put it?

final raven
#

yes

signal crypt
#

you haven't closed that cmd u opened earlier?

signal stream
signal stream
final raven
signal stream
#

i dont understand lol

#

the file?

final raven
signal stream
#

ohh

#

downloads

final raven
#

for example, if I have a python file in my desktop, I would click on C:, then Users, then robin, then Desktop, so my path would be C:\Users\robin\Desktop

final raven
signal stream
#

The system cannot find the file specified.

final raven
#

show a screenshot

signal stream
rapid gazelle
final raven
final raven
signal stream
#

The system cannot find the file specified

#

still said it

final raven
#

click on the file in windows explorer. it'll open a right pane showing you the exact location

#

you can also navigate to the folder where your file is in, and type "cmd" into the search bar

signal stream
#

now what

#

?

final raven
#

post a screenshot

signal stream
#

here

final raven
#

and your python file is in New Folder? it's called yourfile.py?

signal stream
final raven
#

well, whatever the name of the python file is inside New Folder you should do py <type the name of the python file here>.py

signal stream
#

wait wait wait

#

you said all of the files of python?

final raven
signal stream
#

it got more

#

alot

#

i mean

final raven
signal stream
#

okay

#

but it said

#

The system cannot find the file specified.

#

bru

#

do i just reset my pc

#

like

final raven
#

send a screenshot of windows explorer inside the New Folder

signal stream
#

fully reet

final raven
signal stream
#

s

final raven
#

there isn't a PC problem, just a misunderstanding of file systems

signal stream
#

oh okay

final raven
#

ermm.. you seem to have moved the python executables themselves ou

#

well, since py still seems to be working it's probably file. i don't think python interpreters are supposed to be in system32 anyway, so not sure how it got there. what's the python script file you're trying to run here?

signal stream
#

wym by that? does the problem not gonna be fixed?

rapid gazelle
#

it can be fixed but i dont know why ur python is installed so weirdly

signal stream
#

idk but my freind said to test it

final raven
rapid gazelle
#

files in system 32 cant be ran without admin which is why u were getting permission denied errors earlier

signal stream
#

in downloads

final raven
#

you need to navigate to the directory where the python file is and run py <type the name of your python script file here>.py

signal stream
#

wait bro i just realize

signal stream
#

im so dumb

#

fuck!

#

lol

rapid gazelle
#

is it working now? It looks like your trying to run a folder as a python file...

#

"New folder" is a folder, not a python file

signal stream
#

oh

#

what do i run then?

final raven
#

i'm having a hard time explaining what to do here since there seems to be a fundamental misunderstanding of how file systems and terminals work

signal stream
#

real

final raven
signal stream
#

i just want to fix what my freind sent me lol

final raven
signal stream
#

who?

final raven
#

the person who sent this to you

signal stream
#

he's just a beginner too but he wanted me to test it

wary bobcatBOT
#
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.