require python 3 for all tools used in updates

This commit is contained in:
Sarah Hoffmann
2019-07-28 20:36:35 +02:00
parent 511204c158
commit 7753ba6019
4 changed files with 7 additions and 7 deletions

View File

@@ -220,14 +220,14 @@ For a list of other methods see the output of `./utils/update.php --help`.
#### Installing the newest version of Pyosmium
It is recommended to install Pyosmium via pip. Run (as the same user who
will later run the updates):
It is recommended to install Pyosmium via pip. Make sure to use python3.
Run (as the same user who will later run the updates):
```sh
pip install --user osmium
pip3 install --user osmium
```
Nominatim needs a tool called `pyosmium-get-updates`, which comes with
Nominatim needs a tool called `pyosmium-get-updates` which comes with
Pyosmium. You need to tell Nominatim where to find it. Add the
following line to your `settings/local.php`:

View File

@@ -50,7 +50,7 @@ For running Nominatim:
For running continuous updates:
* [pyosmium](https://osmcode.org/pyosmium/)
* [pyosmium](https://osmcode.org/pyosmium/) (with Python 3)
### Hardware

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
import sys
from osmium.replication import server

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
import osmium
import sys