from nominatim.errors import UsageError
from nominatim.data.place_info import PlaceInfo
from nominatim.tokenizer.base import AbstractAnalyzer, AbstractTokenizer
+from nominatim.tools import freeze
LOG = logging.getLogger()
"""
dsn = config.get_libpq_dsn()
+ with connect(dsn) as conn:
+ is_frozen = freeze.is_frozen(conn)
+ conn.close()
+
+ if is_frozen:
+ raise UsageError("Tiger cannot be imported when database frozen (Github issue #3048)")
+
with TigerInput(data_dir) as tar:
if not tar:
return 1