Skip to content

python3 Main.py Error #36

@simonedgley

Description

@simonedgley

Im guessing as part of the library install error, when running Main.py, it returns the following error:

[ERROR:[email protected]] global persistence.cpp:566 open Can't open file: 'Face/face.yml' in read mode
Traceback (most recent call last):
File "/Users/simonedgley/Downloads/Freenove_Robot_Dog_Kit_for_Raspberry_Pi-master-2/Code/Client/Main.py", line 1072, in
myshow=MyWindow()
File "/Users/simonedgley/Downloads/Freenove_Robot_Dog_Kit_for_Raspberry_Pi-master-2/Code/Client/Main.py", line 27, in init
self.client=Client()
~~~~~~^^
File "/Users/simonedgley/Downloads/Freenove_Robot_Dog_Kit_for_Raspberry_Pi-master-2/Code/Client/Client.py", line 16, in init
self.face = Face()
~~~~^^
File "/Users/simonedgley/Downloads/Freenove_Robot_Dog_Kit_for_Raspberry_Pi-master-2/Code/Client/Face.py", line 8, in init
self.recognizer.read('Face/face.yml')
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
cv2.error: OpenCV(4.12.0) /Users/xperience/GHA-Actions-OpenCV/_work/opencv-python/opencv-python/opencv_contrib/modules/face/src/facerec.cpp:61: error: (-2:Unspecified error) File can't be opened for reading! in function 'read'

I did go and check the permissions and made sure that it was set to read/write

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions