Solved Problem encountered: Python (3.x) mako module >= 0.8.0 required to build mesa

I cannot rebuild the mesa ports due to the error - "Problem encountered: Python (3.x) mako module >= 0.8.0 required to build mesa."

Code:
$ pkg info | grep mako
py27-mako-1.0.14               Super-fast templating language in Python
py37-mako-1.0.14               Super-fast templating language in Python

There is no py36-mako available:

Code:
$ make FLAVOR=py36
===>  py36-mako-1.0.14 Unknown flavor 'py36', possible flavors: py37 py27.

but the mesa logs show the mesa ports insisting on python3.6

Code:
Running command: /usr/local/bin/python3.6 -c 
from distutils.version import StrictVersion
import mako
assert StrictVersion(mako.__version__) > StrictVersion("0.8.0")
  
--- stdout ---

--- stderr ---
Traceback (most recent call last):
  File "<string>", line 3, in <module>
ModuleNotFoundError: No module named 'mako'

and the ports have no flavors:

Code:
$ make FLAVOR=py37
===>  mesa-dri-19.0.8_9 FLAVOR is defined (to py37) while this port does not
have FLAVORS.

Any ideas?
 
Found it... meson had previously been compiled with pyhton3.6. I recompiled it, it used python3.7, and now the mesa ports build with the error.
 
Back
Top