Coder Social home page Coder Social logo

Comments (7)

nilsnolde avatar nilsnolde commented on June 16, 2024

Ok, true, sorry @AvePazuzu, I need to update PyPI. Waiting for a PR to move to v1.0. Pull the latest Github master and install via pip. That'll solve the 6099.
The second question: no, there is no way in ors-py to limit the input to 25. That's your job;)

from openrouteservice-py.

AvePazuzu avatar AvePazuzu commented on June 16, 2024

Hi nilsolde,
sorry to bother you guys again but what is the version of the latest master ? I have installed what was available and my new version seems to be '4.7.0'. But still, it did not solve the problem for me. Same error with later version.
ApiError: 500 ({'error': {'code': 6099, 'message': 'Unable to find an appropriate routing profile.'}, 'info': {'engine': {'version': '4.7.0', 'build_date': '2018-10-05T10:45:12Z'}, 'timestamp': 1539866493163}})

from openrouteservice-py.

nilsnolde avatar nilsnolde commented on June 16, 2024

Hi @AvePazuzu, no worries, no bother. So, you did install it via pip from GitHub, not from PyPI, right?

I can't reproduce here, it works for me. I just changed the version and pushed it. Can you pls try again and confirm pip show openrouteservice shows

Name: openrouteservice
Version: 1.0b0

If that's the case, pls post your raw request by passing dry_run='true' to the distance_matrix function, like

url:
https://api.openrouteservice.org/matrix?profile=cycling->regular&api_key=key
Parameters:
{'headers': {'User-Agent': 'ORSClientPython.v0.4', 'Content-type': 'application/json'}, 'timeout': None,
'json': {'locations': [[8.685551, 49.405724], [8.448486, 49.50381]], 'sources': 'all', 'destinations': 'all',
'profile': 'cycling-regular', 'optimized': 'true'}}

from openrouteservice-py.

AvePazuzu avatar AvePazuzu commented on June 16, 2024

Hi @nilsnolde,
what I did was to download the zip file with the 'openrouteservice-py-master'. In Anaconda Promt I navigated to the path and run:
python setup.py install
As last message I get:
Finished processing dependencies for openrouteservice==1.0b0
But if I run: pip show openrouteservice
I get:

Name: openrouteservice
Version: 0.4

Machine is running on Win7x64.

Regards!

from openrouteservice-py.

nilsnolde avatar nilsnolde commented on June 16, 2024

That's clearly an environment issue. Pls read up on virtual environments and use them. They're the most important concept when using Python.

I have no idea about your setup. But in a nutshell: conda create --name ors-py python=3.6, then activate the environment conda activate ors-py (or whatever that is in Win), ONLY then install ors-py via pip install git+git://github.com/GIScience/openrouteservice-py or via setup.py and conda.

from openrouteservice-py.

AvePazuzu avatar AvePazuzu commented on June 16, 2024

Hi @nilsnolde,

thanks for the advice. It worked perfectly.

Regards.

from openrouteservice-py.

nilsnolde avatar nilsnolde commented on June 16, 2024

v1 is released with issue addressed

from openrouteservice-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.