robotools/fontMath

No module named mathFunctions

Closed this issue · 2 comments

I get this mathFunctions module error when trying to use MutatorMath.

File "/usr/local/lib/python2.7/dist-packages/mutatorMath/ufo/instance.py", line 8, in <module> from fontMath.mathKerning import MathKerning File "/usr/local/lib/python2.7/dist-packages/fontMath/mathKerning.py", line 3, in <module> from mathFunctions import add, sub, mul, div ImportError: No module named mathFunctions

I could correct this issue by changing the import statement inmathKerning.py and mathInfo.py in to:
from fontMath.mathFunctions import add, sub, mul, div
I tried this Ubuntu 32 bit with Python 2.7

It's correct and working in ufo3 branch. But I think master branch also should be corrected.

MutatorMath requires the ufo3 branch.