-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'polyline.codec' #59
Comments
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? |
Did you find solutions to this issue? I`m facing the same error... |
for me the solution to the 'griddata' was same as |
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.
The text was updated successfully, but these errors were encountered: