Trying to load air-routes.graphml yields no such file or directory
graph.io(graphml()).readGraph('~/Downloads/air-routes.graphml')
yields ~/Downloads/air-routes.graphml (No such file or directory)
Solution:Jump to solution
Using master branch I was able to see the error you had when using an incorrect file path but then the console succeeded after I modified the file path to point to the file I downloaded from Kelvin's repository:
```
Connected to the target VM, address: '127.0.0.1:53213', transport: 'socket'
,,,/...
8 Replies
I wanted to use the air routes database to write up a question that I need to ask, but I can't seem to follow the instructions found in Practical Gremlin and at https://github.com/krlawrence/graph/blob/master/sample-data/load-air-routes-graph.groovy#L13 to load the air-routes database
GitHub
graph/sample-data/load-air-routes-graph.groovy at master · krlawren...
Practical Gremlin - An Apache TinkerPop Tutorial. Contribute to krlawrence/graph development by creating an account on GitHub.
Can you try to use an absolute file path instead of relative?
I get the same result when I use the absolute path
~/air-routes.graphml
What version of TinkerPop is this for? 3.7?
Solution
Using master branch I was able to see the error you had when using an incorrect file path but then the console succeeded after I modified the file path to point to the file I downloaded from Kelvin's repository:
If you obtained the air routes file from the same repository that you linked I noticed the file is called
air-routes-latest.graphml
not air-routes.graphml
, could that be the problem?I'll try the completing the data load using the steps that you show
Thanks! when I did an absolute file path, not using
~/Downloads/
but using /Users/x/Downloads
instead, it worked!