0

Hello.

I followed several times the step-by-step building tuto of a tile server, perfect.

From mid-april, there is something that went wrong: the "get-shapefiles.py" vanished from the carto repository, hence was not anymore copied locally with carto stuff.

Therefore the tuto died there, and if I tried to bypass, nothing else worked afterwards in the tuto with tons of fatal errors.

Is there something to do ? I need to rebuild my tile server, 18.04LTS or 20.04LTS.

Regards.

EDIT: the tutos are on "switch2osm.org" of course :)

asked 17 May, 21:55

Second%20Couteau's gravatar image

Second Couteau
113
accept rate: 0%

edited 17 May, 22:00


2 Answers:
0

Looks like it changed on 26th March:

Instead of

scripts/get-shapefiles.py

do

scripts/get-external-data.py

If that works, pull requests at https://github.com/switch2osm/switch2osm.github.io welcome!

The instructions still worked for me on 4th May - presumably there's been a release since then.

permanent link

answered 17 May, 22:07

SomeoneElse's gravatar image

SomeoneElse ♦
33.0k65343778
accept rate: 16%

EDIT:

Tried to install psycopg2:

apt-get install python-psycopg2

... ... ...

I then test this installed module:

username@osm-tileserver-01:~/src/openstreetmap-carto$ python Python 2.7.17 (default, Apr 15 2020, 17:20:14) [GCC 7.5.0] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import psycopg2

quit()

Seems to be there.

Then I launch the faulty script:

username@osm-tileserver-01:~/src/openstreetmap-carto$ scripts/get-external-data.py Traceback (most recent call last): File "scripts/get-external-data.py", line 29, in <module> import psycopg2 ModuleNotFoundError: No module named 'psycopg2'

username@osm-tileserver-01:~/src/openstreetmap-carto$

Definitely BROKEN :(

Regards.

(17 May, 23:11) Second Couteau
0

Hello.

It does not work (translated from french system messages):

username@osm-tileserver-01:~/src/openstreetmap-carto$ scripts/get-shapefiles.py bash: scripts/get-shapefiles.py: no file or directory of this type

username@osm-tileserver-01:~/src/openstreetmap-carto$ scripts/get-external-data.py Traceback (most recent call last): File "scripts/get-external-data.py", line 29, in <module> import psycopg2 ModuleNotFoundError: No module named 'psycopg2'

username@osm-tileserver-01:~/src/openstreetmap-carto$

So the old script is not there, and the new one requires ..."something".

Tuto is still broken.

Regards.

permanent link

answered 17 May, 22:56

Second%20Couteau's gravatar image

Second Couteau
113
accept rate: 0%

edited 17 May, 22:57

1

EDIT, seems to work !

0) install python3-psycop2

1) install python3-pip

2) pip3 install psycopg2

3) ./scripts/get-external-data.py

(17 May, 23:43) Second Couteau

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×17
×1
×1

question asked: 17 May, 21:55

question was seen: 178 times

last updated: 18 May, 06:31

powered by OSQA