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 '20, 21:55 Second Couteau edited 17 May '20, 22:00 |
2 Answers:
Looks like it changed on 26th March: Instead of
do
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. answered 17 May '20, 22:07 SomeoneElse ♦ |
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. answered 17 May '20, 22:56 Second Couteau edited 17 May '20, 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 '20, 23:43) Second Couteau |
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.
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.