Skip to content

AttributeError: module 'osrm' has no attribute 'Client' #7

@IsaacDm

Description

@IsaacDm

I have installed osrm-py in my jupyter successfully. Yet, when I run the following test code it throws "AttributeError: module 'osrm' has no attribute 'Client'

import osrm
client = osrm.Client(host='http://localhost:5000')
response = client.route(
coordinates=[[-74.0056, 40.6197], [-74.0034, 40.6333]],
overview=osrm.overview.full)
print(response)

My environment:
Operating System: CentOS 7, 64bit
Python 3.5.6 :: Anaconda 4.1.1 (64-bit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions