TadasBaltrusaitis/OpenFace

[Mac] OpenFace not using Python 3.9 for Feature Extraction

baconandchips opened this issue · 0 comments

Describe the bug
OpenFace for Mac currently uses a different version of Python (one that currently exists on my system), and is not using the correct version of Python 3.9 it's supposed to use. A Python3.9-only feature is giving an error when I attempt to do feature extraction.

To Reproduce
Obtain Mac device that has Python 3.7.4 installed for when you run "python --version", and install through fea_tool repository's mac script.

Expected behavior
Error pops up: " 'str' object has no attribute 'removeprefix' ". This is because removeprefix is added in Python 3.9

Error Log
Processing subject_26_Vid_1.avi from /Users/me/myfolder/facedetect/test_rd1
Processing sample-headtilts-1.mp4 from /Users/me/myfolder/facedetect/test_rd1
ok_files : []
error_files : ["/Users/me/myfolder/facedetect/test_rd1/subject_26_Vid_1.avi>> 'str' object has no attribute 'removeprefix'", "/Users/me/myfolder/facedetect/test_rd1/sample-headtilts-1.mp4>> 'str' object has no attribute 'removeprefix'"]

Desktop (please complete the following information):

  • OS: MacOS 11.3 Big Sur
  • Macbook Pro 2017