Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python MacOS Error: Unable to revert mtime: /Library/Fonts

I am trying to run a python script on my mac but

"Unable to revert mtime: /Library/Fonts"

keeps popping up when i run the program. i have the latest version of python installed as well as matplotlib. i am very new to python so i do not know what the issue is but here is the snippet of the code:

from plotly import graph_objs as go 
import matplotlib.pyplot as plt
import numpy as np
import json
import datetime

with open('ELIX.json') as json_file:
data = json.load(json_file)
like image 467
AnishaAmir Avatar asked Jun 09 '20 10:06

AnishaAmir


2 Answers

you need to have libmagic

brew install libmagic
like image 144
Joah Kin Avatar answered Oct 24 '22 04:10

Joah Kin


In my situation, I had to restore the fonts that came with my system. To do so:

  1. Open up the Font Book app
  2. Go to File
  3. Click Restore Standard Fonts

Video: https://www.loom.com/share/379ad4f9539d4730af75039623027888

like image 9
Vinay Avatar answered Oct 24 '22 05:10

Vinay