Comments (5)
Thanks for the detailed responce I'll try to reprodduce the issue, and get back to you asap
from opentripplanner.
A few first thoughts, the I_have_OTP is not necessary to use the package only for running the automated tests. The first thing that otp_build_graph does is run the internal function otp_checks. It might be useful to run this via opentripplanner:::otp_checks() to see if a more useful error message is produced. But it seems that you have several distinct problems.
-
On your first attempt Java tried to allocate 2097152KB of memory and failed (about 2 GB) which is the default. Perhaps you are running on a laptop with low memory? You could try memory = 1 in otp_build_graph. The demo data should build in 1 GB.
-
You make some changes to your path, I'm not quite sure what you did, do you have a link to the instructions you followed? But it now seems that R is unable to check the Java version which would suggest a problem with your java installation. You can check this manually in Comand Prompt with java -version
from opentripplanner.
thanks @mem48
I am trying on another laptop now so I will update thread soon
from opentripplanner.
As an update, I have uninstalled and reinstalled Java version 8 on my machine and installed the package on another laptop with more memory.
I will ignore Sys.getenv("I_have_OTP") for now as you suggest.
I tried to run this command and received an error:
opentripplanner:::otp_checks()
Error in opentripplanner:::otp_checks() :
Assertion on 'dir' failed: No directory provided.
- Despite the error with
opentripplanner:::otp_checks()
, I had success in building the graph by adding memory =1 on both laptops, see below message:
Run the OTP and Build a graph object
log <- otp_build_graph(otp = path_otp, dir = path_data, memory = 1)
Basic checks completed, building graph, this may take a few minutes
Graph built
- I removed the path and variables as this didn't appear to be necessary on the other laptop. I suspect that the Java upgrade didn't work the first time round. Potentially Java needed a full uninstall first.
C:\Users\Home>java -version
java version "1.8.0_211"
Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
Java HotSpot(TM) Client VM (build 25.211-b12, mixed mode, sharing)
Any further thoughts? Else this can probably be closed
from opentripplanner.
Seems like its fixed, the otp_ckecks requires several arguments to work, sorry I did not make that clear before. So the error is expected. I think for now I will update the vignettes to mention memory requirements and perhaps some more tips on installing Java.
from opentripplanner.
Related Issues (20)
- Directory error on Mac prevents graph build HOT 2
- Turn restrictions added to local .pbf not observed in routing with local instance HOT 1
- otp_plan() produces an error when using OTP 2.2 HOT 1
- [BUG] Set purrr version
- Error when no results returned HOT 2
- Implement scopes to speed up routing HOT 1
- [BUG] otp_make_config("otp") does not list 'otp' options - produces same output as otp_make_config("router") HOT 3
- OPT 2 will ignore GTFS zips wihtout the GTFS in the name
- [BUG] Error in otp_surface() HOT 2
- [BUG] Incorrect file path for graph otp_build_graph() HOT 1
- [BUG] Set date and time for queries HOT 2
- [BUG] Error message with Java 19 HOT 3
- [BUG] Regression: new error message on routing HOT 1
- [Feature Request] OPTv2 support - partially already implemented for isochrones HOT 2
- otp_isochrone fails with rows >240 HOT 4
- otp_isochrone output HOT 1
- Run OTP for code coverage. HOT 1
- Fix check_routers HOT 1
- Unable to detect OTP version
- Please remove dependencies on **rgdal**, **rgeos**, and/or **maptools** HOT 2
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 opentripplanner.