tilemill-project / tilemill

TileMill is a modern map design studio
https://tilemill-project.github.io/tilemill/
BSD 3-Clause "New" or "Revised" License
3.11k stars 527 forks source link

Error with Openstreetmap on windows #2633

Open masoudr opened 5 years ago

masoudr commented 5 years ago

Hi, I'm using this tutorial to run tilemill with OpenStreetMap on windows10. When I open the project in tilemill app I get this error:


TileMill Error

[tilemill] { [Error: getaddrinfo ENOENT] code: 'ENOTFOUND', errno: 'ENOTFOUND', syscall: 'getaddrinfo' }

Please report this to https://github.com/mapbox/tilemill/issues


OK

My Server is offline and dont have internet connection.

csytsma commented 5 years ago

I think that usually has to do with not being able to find a file referenced in a layer. If you don't have internet access from your server, make sure none of your layers are trying to download data from a URL.

If you're using OSM Bright, there are 2 layers, land_low and land_high that are getting data from a remote location.

You could also try deleting all your layers, and see if the error goes away. Then add them back to see which one is the offending layer.

-Cory

On Oct 26, 2018, at 4:55 AM, Masoud R. notifications@github.com wrote:

Hi, I'm using this tutorial https://ircama.github.io/osm-carto-tutorials/tilemill-osm-carto/ to run tilemill with OpenStreetMap on windows10. When I open the project in tilemill app I get this error:

TileMill Error

[tilemill] { [Error: getaddrinfo ENOENT] code: 'ENOTFOUND', errno: 'ENOTFOUND', syscall: 'getaddrinfo' }

Please report this to https://github.com/mapbox/tilemill/issues https://github.com/mapbox/tilemill/issues OK

My Server is offline and dont have internet connection.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tilemill-project/tilemill/issues/2633, or mute the thread https://github.com/notifications/unsubscribe-auth/AAH3RCv8rFkb53elG2aJmY6QXB_VPxzRks5uovgjgaJpZM4X8Fb2.

masoudr commented 5 years ago

@csytsma Thanks. I tried to apply internet connection but this time I got this:

placenames.mss:18:6 Unrecognized rule: text-margin placenames.mss:30:6 Unrecognized rule: text-margin placenames.mss:30:6 Unrecognized rule: text-margin placenames.mss:24:6 Unrecognized rule: text-margin placenames.mss:13:4 Unrecognized rule: text-margin placenames.mss:18:6 Unrecognized rule: text-margin placenames.mss:13:4 Unrecognized rule: text-margin placenames.mss:30:6 Unrecognized rule: text-margin placenames.mss:30:6 Unrecognized rule: text-margin placenames.mss:24:6 Unrecognized rule: text-margin placenames.mss:54:4 Invalid value for text-face-name, the type font is expected. Noto Sans Italic, Noto Sans Regular, Noto Sans CJK JP Regular, Noto Sans Adlam Regular, Noto Sans Adlam Unjoined Regular, Noto Sans Balinese Regular, Noto Sans Bamum Regular, Noto Sans Batak Regular, Noto Sans Bengali UI Regular, Noto Sans Buginese Regular, ....

I don't think it uses the internet connection at all because I provided all the files manually. I only get a white screen in tilemill app.

csytsma commented 5 years ago

I see 2 errors above, which have to do with style settings in your placenames.mss file. Open placenames.mss (found in your MapBox/project/ folder) in a text editor, and search for 'text-margin' setting. Comment those lines out with '//', or just remove them. 'text-margin' is not a valid CartoCSS style.

On line 54 in your placenames.mss file, it doesn't recognize what you have for the font name. Try using 'Open sans Regular'. Here's a line from my font definition: @sans: "Open Sans Regular","DejaVu Sans Book","unifont Medium";

This will at least get you past these errors. No guarantee there won't be more. If you can't solve these errors, go ahead and post your placenames.mss file, and I can take a look.

csytsma commented 5 years ago

@masoudr Did that fix your problem? Would be great to get an update to help others.