Replies: 1 comment
-
Please add more information: Nominatim version, Postgresql version, Operating system, which instructions or tutorial you followed. Is it a "real" server or virtual machine? Is the database local or a managed service on another system? Which commands did you run that produce the error? If you login to postgresql as a superuser can you run "CREATE EXTENSION postgis"? Does it print an error, too? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
When importin DB gets this error, however postgis 3.2 is installed
Any clues?
2024-06-27 18:16:12: Creating database Traceback (most recent call last): File "/usr/local/bin/nominatim", line 12, in <module> exit(cli.nominatim(module_dir='/usr/local/lib/nominatim/module', ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/nominatim/lib-python/nominatim/cli.py", line 228, in nominatim return get_set_parser().run(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/nominatim/lib-python/nominatim/cli.py", line 121, in run return args.command.run(args) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/nominatim/lib-python/nominatim/clicmd/setup.py", line 96, in run database_import.setup_database_skeleton(args.config.get_libpq_dsn(), File "/usr/local/lib/nominatim/lib-python/nominatim/tools/database_import.py", line 97, in setup_database_skeleton cur.execute('CREATE EXTENSION IF NOT EXISTS postgis') File "/usr/local/lib/nominatim/lib-python/nominatim/db/connection.py", line 36, in execute super().execute(query, args) File "/usr/lib/python3/dist-packages/psycopg2/extras.py", line 146, in execute return super().execute(query, vars) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ psycopg2.errors.UndefinedFile: could not access file "$libdir/postgis-2.5": No such file or directory
Beta Was this translation helpful? Give feedback.
All reactions