Pytorch 1.0.0 install problem

I got this error after updating pytorch to version 1.0.0 on my mac from 0.4.1
anyone has any idea??
the problem disappear after downgrading to version 0.4.1
python 2.7
macos mojave