Open fadikar opened 4 years ago
Hi @fadikar, Thank you for reporting this bug. Could you please provide a little bit of sample code to reproduce the issue?
I am having the same issue. The error happens on the import osrm
directly, matplotlib version is 3.1.3
The problem happens when you have matplotlib version 3.1
or later, instead of 2.2.4
as noted in the requirements. I fixed this by using scipy's griddata instead, i.e. replacing
from matplotlib.mlab import griddata
with
from scipy.interpolate import griddata
in the file osrm/extra.py
Just encountered this, thanks for the solutino @DahnJ
I see its in the master
branch, is a new release to PyPi in the offing?
last version of griddata call in https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.griddata.html has different syntax than currently in extra.py. PR upcoming
ImportError: cannot import name 'griddata' from 'matplotlib.mlab'