Unable to revert mtime: /Library/Fonts [Solved]
I was working on a python3 script on my macOS, and I came across this error:
% python3 my-random-script.py
Unable to revert mtime: /Library/Fonts
I got it solved by installing libmagic:
% brew install libmagic
This message on macOS comes from the python-magic library when its underlying libmagic dependency is missing. The script still runs but cannot read file type information and prints this warning.
Installing libmagic with Homebrew, as shown, supplies the missing piece and clears the message. python-magic relies on the same system libmagic that the file command uses.

Comments
Post a Comment