Filenotfounderror: (winerror 3) the system cannot find the path specified trainner yml

  • All Communities
  • ArcGIS Ideas
  • Community Basics

Hi!

I have taken a course on updating real-time data with python. Toward the latter part of the course i was supposed to update an online feature service in a web map. However, i encountered a FileNotFound error when i ran the script in the python command prompt:

"FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\user\\AppData\\Local\\Temp\\tmpfesd0bnq\\p20\\live.gdb'"

I need help on how to fix it.

Attached is the script I've written.

Thank you.

  • arcgis
  • arcgis online
  • learn.arcgis.com
  • pro 2.5.0
  • pythonwindow
  • webgis

Coral_Reef_Exercise_online.py.zip

  • All Posts
  • Previous Topic
  • Next Topic

1 Reply

Hi Akpakli,

What is the command that you're trying to run in the command prompt? maybe there is a parameter (i.e. file location) that might contain an error and windows can't locate the file. Maybe one of the followings:

  • C:\\Users\\user\\AppData\\Local\\Temp\\tmpfesd0bnq\\p20\\live.gdb . the directory user in this case should be replaced by your windows user name.
  • Try to create a folder for the exercise, especially for the Live geodatabase. Use some location other than the ...\\AppData\\Local\\Temp folder. Before running the feed routine in the command prompt, verify that the directory exists and that you can load the feature classes in the geodatabase in ArcGIS Pro.

Good luck!

Gonzalo

Filenotfounderror: (winerror 3) the system cannot find the path specified trainner yml

  • Terms of Use
  • Community Guidelines
  • Community Basics
  • Privacy
  • Trust Center
  • Legal
  • Contact Esri

Issue:

When installing Fusion 360 the installation fails with the following error string:

FileNotFoundError: [WinError 3] The system cannot find the path specified: '\\\\?\\%LOCALAPPDATA%\\'

Causes:

There is a lack of permissions associated with C:\Users\\AppData\Local.

Solution:

Give full permissions to the following directory:

C:\Users\\AppData\Local

Make sure that any security program is disabled temporarily in case it is blocking certain directories from be written into and read.

Note: For educational institutions using the Lab install of Fusion 360. If this message appears, performing an uninstall and reinstall will fix this issue.

For other issues relating to installing Fusion 360, try this troubleshooter form  to help solve the most common issues with installing Fusion 360 or visit "Problem installing Fusion 360" when installing Fusion 360.

FileNotFoundError: [WinError 3] The system cannot find the path specified While Training Images

Questions : FileNotFoundError: [WinError 3] The system cannot find the path specified While Training Images

2022-08-17T04:35:15+00:00 2022-08-17T04:35:15+00:00

829

I have tried many times but this anycodings_python filenotfound error still comes. I have saved anycodings_python the file in a folder as stated in the code anycodings_python but even though this error occurs. Whenever anycodings_python I try to run the code I get the same error, anycodings_python please tell me where this code needs anycodings_python correction.

``` def TrainImages(): recognizer = cv2.face_LBPHFaceRecognizer.create() harcascadePath = "I:\\opencv\\build\\etc\\haarcascades\\haarcascade_frontalface_default.xml" detector=cv2.CascadeClassifier(harcascadePath) Path = "I:\Attendence Project\TrainingImageLabel\Trainner.yml" face, Id = getImagesAndLabels(Path) "error line 127" recognizer.train(faces, np.array(Id)) recognizer.save("TrainingImageLabel\Trainner.yml") res = "Image Trained" message.configure(text=res) def getImagesAndLabels(path): imagePaths = [os.path.join(path,f) for f in os.listdir(path)] "error line 134" faces = [] Ids = [] for imagePath in imagePaths: pilImage = Image.open(imagePath).convert('L') imageNp = np.array(pilImage,'uint8') Id=int(os.path.split(imagePath)[-1].split(".")[1]) faces.append(imageNp) Ids.append(Id) return faces, Ids ``` **Error occured** Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\pc\Anaconda3\lib\tkinter\__init__.py", line 1705, in __call__ return self.func(*args) File "I:/Attendence Project/Attendence.py", line 127, in TrainImages face, Id = getImagesAndLabels(Path) File "I:/Attendence Project/Attendence.py", line 134, in getImagesAndLabels imagePaths = [os.path.join(path,f) for f in os.listdir(path)] FileNotFoundError: [WinError 3] The system cannot find the path specified: 'I:\\Attendence Project\\TrainingImageLabel\\Trainner.yml'

Total Answers 1

31

Answers 1 : of FileNotFoundError: [WinError 3] The system cannot find the path specified While Training Images

First of all, is it a typo? Should the anycodings_python file-name be "Trainer.yml" instead of anycodings_python "Trainner.yml"? Anyway, if it isn't that anycodings_python -

It looks like you're using a mapped anycodings_python Windows Drive for your project. Is it anycodings_python possible that you are running your anycodings_python Python IDE or the built script as a anycodings_python different user or an administrator anycodings_python account that does not have that drive anycodings_python mapped? This can cause that file path to anycodings_python not be valid and you will get this anycodings_python error.

Try like the following:

"\\PATH_TO_I\Attendence anycodings_python Project\TrainingImageLabel\Trainner.yml"

Or if the escape characters are the anycodings_python problem, try this:

Path = r"I:\Attendence anycodings_python Project\TrainingImageLabel\Trainner.yml" anycodings_python

0

2022-08-17T04:35:15+00:00 2022-08-17T04:35:15+00:00Answer Link

mRahman