]> git.openstreetmap.org Git - nominatim.git/commitdiff
Ubuntu 22 doesn't have psycopg yet
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 13 Jul 2024 20:52:49 +0000 (22:52 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 29 Jul 2024 06:54:18 +0000 (08:54 +0200)
vagrant/Install-on-Ubuntu-22.sh

index aa23128aef4f7400bd855f4daf2e58fd4ca4d6c9..d02ea0a74e36c4582a8070c71b88e2deeaa23e83 100755 (executable)
@@ -26,10 +26,14 @@ export DEBIAN_FRONTEND=noninteractive #DOCS:
                         nlohmann-json3-dev postgresql-14-postgis-3 \
                         postgresql-contrib-14 postgresql-14-postgis-3-scripts \
                         libicu-dev python3-dotenv \
-                        python3-psycopg python3-psutil python3-jinja2 \
+                        python3-pip python3-psutil python3-jinja2 \
                         python3-sqlalchemy python3-asyncpg \
                         python3-icu python3-datrie python3-yaml git
 
+# Some of the Python packages that come with Ubuntu 22.04 are too old,
+# so install the latest version from pip:
+
+    pip3 install --user psycopg[binary]
 
 #
 # System Configuration