mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 05:14:07 +00:00
require python 3 for all tools used in updates
This commit is contained in:
@@ -220,14 +220,14 @@ For a list of other methods see the output of `./utils/update.php --help`.
|
|||||||
|
|
||||||
#### Installing the newest version of Pyosmium
|
#### Installing the newest version of Pyosmium
|
||||||
|
|
||||||
It is recommended to install Pyosmium via pip. Run (as the same user who
|
It is recommended to install Pyosmium via pip. Make sure to use python3.
|
||||||
will later run the updates):
|
Run (as the same user who will later run the updates):
|
||||||
|
|
||||||
```sh
|
```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
|
Pyosmium. You need to tell Nominatim where to find it. Add the
|
||||||
following line to your `settings/local.php`:
|
following line to your `settings/local.php`:
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ For running Nominatim:
|
|||||||
|
|
||||||
For running continuous updates:
|
For running continuous updates:
|
||||||
|
|
||||||
* [pyosmium](https://osmcode.org/pyosmium/)
|
* [pyosmium](https://osmcode.org/pyosmium/) (with Python 3)
|
||||||
|
|
||||||
### Hardware
|
### Hardware
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python3
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from osmium.replication import server
|
from osmium.replication import server
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python3
|
||||||
|
|
||||||
import osmium
|
import osmium
|
||||||
import sys
|
import sys
|
||||||
|
|||||||
Reference in New Issue
Block a user