Open RnoldR opened 11 months ago
I believe this package is too old, most of the dependencies have changed. But to fix this issue go to the osrm folder package it should be something like this: C:\Users\admin\AppData\Local\Programs\Python\Python310\Lib\site-packages\osrm. Go to core.py > then delete the import of polyline.codec just a simple 'import polyline' will do, change the 'PolylineCodec().decode' with 'polyline.decode'.
you can see the that the decoding in polyline package here: https://github.com/frederickjansen/polyline
@francisvale Thanks! That worked but i now have the error: ImportError: cannot import name 'griddata' from 'matplotlib.mlab' (/usr/lib/python3/dist-packages/matplotlib/mlab.py). I followed the instructions I found in #33 but that did not help. Any suggestion on how to solve that.
As to the old version: I did the update as suggested in #33 and my current version is 0.11.3. Is this the latest version?
@francisvale Thanks! That worked but i now have the error: ImportError: cannot import name 'griddata' from 'matplotlib.mlab' (/usr/lib/python3/dist-packages/matplotlib/mlab.py). I followed the instructions I found in #33 but that did not help. Any suggestion on how to solve that.
As to the old version: I did the update as suggested in #33 and my current version is 0.11.3. Is this the latest version?
Did you find solutions to this issue? I`m facing the same error...
for me the solution to the 'griddata' was same as
https://github.com/ustroetz/python-osrm/issues/36#issuecomment-1352622510
I try to install osrm on Ubuntu 22.04. Installed the dependencies as listed in the README:
Apart from that I installed gdal-bin and libgdal-dev using apt install. When I import osrm I get:
I could hardly find a suggestion on the net, except one remark that one should try to pip install polyline-decoder. That didn't help.
Does anyone have a suggestion? Thank you in advance.