#๐ how do i fix python trace back.. im new to this.
115 messages ยท Page 1 of 1 (latest)
@signal stream
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.
help me i cant seem to know this python trace back that keeps popping up and instantly crashing.
a traceback is information about an error that occurred. We would need to see the traceback to be able to troubleshoot it
you should move your file out of system32
yes, move your python file out of there
okay
make a different directory in like your desktops folder or something for python projects
C:\Windows\
who told u to place ur file in that folder 
all of the python files?
no one
just the python files you made. system32 is for core windows files, you really shouldn't be messing around in there
open command prompt, cd to the directory, run py myfile.py
why does it still say access denied
๐
show a screenshot
what's the exact path?
you mean where i put it?
yes
you haven't closed that cmd u opened earlier?
i opened another one
just in a folder i randomly created
what's the exact path?
if you started at C:, what folders would you click to get to where your python file is?
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
type cd C:\Users\<username>\Downloads
The system cannot find the file specified.
show a screenshot
if you rightclick your python file and click properties it will say "location" somewhere in the window
you need to put in your username for <username>
yes this is an easy way to find it
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
post a screenshot
and your python file is in New Folder? it's called yourfile.py?
there was no yourfile.py
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
i'm not sure what you mean
dis one
it got more
alot
i mean
just the one that you made. the other python files might be windows system files
okay
but it said
The system cannot find the file specified.
bru
do i just reset my pc
like
send a screenshot of windows explorer inside the New Folder
fully reet
no
there isn't a PC problem, just a misunderstanding of file systems
oh okay
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?
wym by that? does the problem not gonna be fixed?
it can be fixed but i dont know why ur python is installed so weirdly
idk but my freind said to test it
files in system 32 cant be ran without admin which is why u were getting permission denied errors earlier
ik but there is outside the file
in downloads
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
wait bro i just realize
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
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
real
maybe try giving this a read? https://learn.microsoft.com/en-us/training/modules/introduction-to-powershell/
i just want to fix what my freind sent me lol
maybe just ask him how to fix it
who?
the person who sent this to you
he's just a beginner too but he wanted me to test it
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.