Comments (7)
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.
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.
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.
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.
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.
Hi @nilsnolde,
thanks for the advice. It worked perfectly.
Regards.
from openrouteservice-py.
v1 is released with issue addressed
from openrouteservice-py.
Related Issues (20)
- Missing options argument from API HOT 3
- Transit API HOT 1
- optimization method hidden in development branch HOT 1
- fix crashing coveralls HOT 1
- Add automatic pypi build and publish HOT 1
- Bump release in setup.py HOT 1
- integrate conda build and upload flow HOT 1
- Integrate best practices HOT 1
- Directions does not handle maximum_speed arguments
- validate still present in various modules
- various issues in examples HOT 1
- Support for python 3.10 and update deps with testing HOT 1
- Drop unsupported python 3.6 HOT 1
- feat: argument `options` in function `isochrones`
- allow support for additional kwargs
- fix(ci): Fix failing pypy 3.7 pytest run
- Remove old Python2 syntax
- chore: Update packages to latest versions
- Distance_matrix not working with metrics parameter
- VROOM update for optimization HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openrouteservice-py.