OK! It seems to be in my user permissions. I've fixed it, but now I see this:
Enabling Shapely speedups.
password for postgres at localhost:
[22:37:55] ## reading /opt/maps/berlin/berlin.osm.pbf
[22:37:55] coords: 1776k nodes: 35k ways: 253k relations: 1k (estimated)
[22:38:20] coords: 1713k nodes: 13k ways: 318k relations: 2k
[22:38:21] reading took 25s
Traceback (most recent call last):
File "/venv26/bin/imposm", line 8, in <module>
load_entry_point('imposm==2.5.0', 'console_scripts', 'imposm')()
File "/venv26/lib/python2.6/site-packages/imposm/app.py", line 257, in main
db = DB(db_conf)
File "/venv26/lib/python2.6/site-packages/imposm/db/config.py", line 25, in DB
return PostGISDB(db_conf)
File "/venv26/lib/python2.6/site-packages/imposm/db/postgis.py", line 42, in __init__
if self.is_postgis_2():
File "/venv26/lib/python2.6/site-packages/imposm/db/postgis.py", line 57, in is_postgis_2
cur.execute('SELECT postgis_version()')
psycopg2.ProgrammingError: function postgis_version() does not exist
LINE 1: SELECT postgis_version()
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
What am I doing wrong?