Skip to content

ModuleNotFoundError: No module named 'polyline.codec' #59

@RnoldR

Description

@RnoldR

I try to install osrm on Ubuntu 22.04. Installed the dependencies as listed in the README:

GDAL==3.4.3
geopandas==0.14.0
numpy==1.26.0
osrm==0.11.3
pandas==2.1.1
polyline==2.0.0

Apart from that I installed gdal-bin and libgdal-dev using apt install. When I import osrm I get:

$ python3
Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import osrm
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/arnold/.local/lib/python3.10/site-packages/osrm/__init__.py", line 53, in <module>
    from .core import match, simple_route, nearest, table, trip, _chain
  File "/home/arnold/.local/lib/python3.10/site-packages/osrm/core.py", line 3, in <module>
    from polyline.codec import PolylineCodec
ModuleNotFoundError: No module named 'polyline.codec'

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions