#π FileNorFoundError even though the file exists
15 messages Β· Page 1 of 1 (latest)
@prime sorrel
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.
Given what path is shown in the error, it doesn't look like the path is supposed to start with Macintosh HD/
But I haven't used a Mac in like 15 years, so idk for sure.
i tried checking the current directory, and weirdly its not the directory where the file was saved. And then i tried to check whether the file exists both with absolute path and just the path. And it doesnt exist
i tried to check the path of the file and i just copied it word for word. (you can see the path at the bottom.)
Did you try just removing the Macintosh HD/ from the path?
omg it works, thank you!
Figured it would. The Macintosh HD/ drive must not be a part of the path like it is in Windows for some reason.
still kinda weird that current path is not the path that i saved both files in, but oh well :B
!closed
!close
!close
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.