Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to open / parse config file #300

Open
Mohammadadaileh opened this issue Jul 14, 2022 · 3 comments
Open

unable to open / parse config file #300

Mohammadadaileh opened this issue Jul 14, 2022 · 3 comments

Comments

@Mohammadadaileh
Copy link

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
Copy link
Member

cvvergara commented Jul 27, 2022

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
Copy link
Member

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 cvvergara added Discussion and removed bug labels Jul 27, 2022
@jamessdixon
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants