Face Recognition Course - recognise_face.py does not work

After rosrun recognise_face.py, it showed this error. Any solution?


Remember that you have to be in the python3 virtual environment and everything sourced. This is because we use pythn3 for the recognition:

cd ~/catkin_ws/src
mkdir -p my_catkin_ws_python3/src
cd ~/catkin_ws/src/my_catkin_ws_python3
source ~/.py3venv/bin/activate
source /home/user/.catkin_ws_python3/devel/setup.bash
catkin_make -DPYTHON_EXECUTABLE:FILEPATH=/home/user/.py3venv/bin/python
source devel/setup.bash
rospack profile