osm2pgrouting icon indicating copy to clipboard operation
osm2pgrouting copied to clipboard

unable to open / parse config file

Open Mohammadadaileh opened this issue 3 years ago • 4 comments

Hi, I was trying to import some data from OSM but I got error saying " file does not exist (it actually exists) or directory failed to open / parse config file. a picture is attached to show what I did. I am using PostgreSQL 14.4, POSTGIS 3.2.0, pgr 3.3.0. Please let me know if you need any other info to solve the problem. I have tried everything it is driving me crazy. problem

Mohammadadaileh avatar Jul 14 '22 19:07 Mohammadadaileh

For me its difficult to copy/paste from the image. Can you modify and instead of an image, copy/paste the text and sround it with triple back tick image produces:

this are
lines of
code

of course don't write the password

cvvergara avatar Jul 27 '22 15:07 cvvergara

Doing my best without copy paste Maybe you should not have spaces on a name of a file, C:\Program Files\path\to\mapconfig_for_cars.xml There is a space on Program Files So you are saying that --conf C:\Program is the configuration. In linux, we don't use spaces on filenames (that is why mapconfig_for_cars.xml is not mapconfig for cars.xml which would be referenced as mapconfig\ for\ cars.xml where \ is what we use to indicate a space on a file name. I do not know windows, (last time I used it was in 1997) but then,I suggest:

  • Remove the space of Program Files to ProgramFiles (I suspect is a bad idea as it sounds to me like a system directory)
  • Copy the file C:\Program Files\path\to\mapconfig_for_cars.xml to the directory where you have map.osm, as the complete path does not have spaces
  • Figure out in windows how to reference a file with spaces (maybe you have to double quote the name: "C:\Program Files\path\to\mapconfig_for_cars.xml"
  • As a last resort, work with free open source operative system like Ubuntu

cvvergara avatar Jul 27 '22 15:07 cvvergara

same problem. I am using a macbook and after the install, it is failing with: Error opening lean:No such file or directoryFailed to open / parse config file lean When I try and specify the .config file, I get: option '--conf' cannot be specified more than once

I am going through the source code to see where they hard-coded a directory to then create it on my machine.

jamessdixon avatar Dec 12 '22 16:12 jamessdixon