This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

ModuleNotFoundError: No module named ‘osmium.replication’

0
1

I get this module Not found error in the pyosmium-get-changes script when I execute the command $/nominatim/build/utils/update.php --init-updates

The full error message : Traceback (most recent call last): File "/usr/local/bin/pyosmium-get-changes", line 32, in <module> from osmium.replication import server as rserv ModuleNotFoundError: No module named 'osmium.replication' Cannot execute pyosmium-get-changes. Make sure you have pyosmium installed correctly and have set up CONST_Pyosmium_Binary to point to pyosmium-get-changes. ERROR: pyosmium-get-changes not found or not usable string(44) "pyosmium-get-changes not found or not usable"

Content of my /nominatim/build/settings/local.php:

// base URL of the replication service @define('CONST_Replication_Url', 'http://download.geofabrik.de/europe/great-britain-updates'); // How often upstream publishes diffs @define('CONST_Replication_Update_Interval', '86400'); // How long to sleep if no update found yet @define('CONST_Replication_Recheck_Interval', '900');

I have installed the osmium 3.6.0 through pip, If I fire an "import osmium" on python terminal, there are no errors, but if I try executing the line "from osmium.replication import server as rserv" I get the error.

I need to update my database for the entire planet.

I've been following the steps mentioned in this article, specifically step #6 onwards https://www.linuxbabe.com/ubuntu/osm-nominatim-geocoding-server-ubuntu-20-04

Any help is appreciated, thank you!

asked 22 Feb '23, 11:54

Ashish's gravatar image

Ashish
11112
accept rate: 0%

edited 22 Feb '23, 12:02

Source code available on GitHub .