pgRouting / osm2pgrouting

Import tool for OpenStreetMap data to pgRouting database
https://pgrouting.org
GNU General Public License v2.0
286 stars 113 forks source link

unable to open / parse config file #300

Open Mohammadadaileh opened 1 year ago

Mohammadadaileh commented 1 year ago

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

cvvergara commented 1 year ago

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 commented 1 year ago

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:

jamessdixon commented 1 year ago

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.