![]() |
my python is popping up the error FileNotFoundError: [WinError 3] ? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: my python is popping up the error FileNotFoundError: [WinError 3] ? (/thread-4984.html) |
my python is popping up the error FileNotFoundError: [WinError 3] ? - srinivas135 - Sep-13-2017 import os path="C:\\User\\Desktop\\sr.txt" os.chdir(path) retval=os.getcwd() print("Directory changed successfully %s" %retval) #can the members or author of this forum plzz help me iam getting this error even after creating the test file named above on the desktop and i have given the correct path of the file it seems i wanna know how i'm getting this error and how i can resolve the following error #ERROR: Traceback (most recent call last): File "C:\Users\Personal\AppData\Local\Programs\Python\Python36\os.chdir().py", line 3, in <module> os.chdir(path) FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\User\\Desktop\\sr.txt' RE: my python is popping up the error FileNotFoundError: [WinError 3] ? - sparkz_alot - Sep-13-2017 'sr.txt' is not part of the path, it is the destination. Remove it from the path variable and it will work fine. RE: my python is popping up the error FileNotFoundError: [WinError 3] ? - metulburr - Sep-13-2017 i am giving you a warning as this is not the first time a mod spoke to you about it, nor second time you posted code with proper tags. I wont even respond to any of your posts because you are not following the rules. RE: my python is popping up the error FileNotFoundError: [WinError 3] ? - nilamo - Sep-13-2017 I see some code. Is there a question attached? Or do you just want someone to describe the error message? |