QGEP / qgepqwat2ili

3 stars 3 forks source link

Error upon import VI - Library function 'postgis_svn_version' was deprecated... #127

Closed meierrom closed 1 year ago

meierrom commented 1 year ago

Hi folks,

I'm getting the following error message upon issuing the following import command:

python -m qgepqwat2ili qgep import /data/arbon/my_export_sia405_reach_min1x.xtf --log

[...] Info: driverVersion <42.2.18.jre6> failed to get PostGIS version ERROR: A stored procedure tried to use deprecated C function 'postgis_svn_version' Detail: Library function 'postgis_svn_version' was deprecated in PostGIS 3.1.0 Hint: Consider running: SELECT postgis_extensions_upgrade() Where: SQL statement "SELECT public.postgis_svn_version()" PL/pgSQL function postgis_fullversion() line 56 at SQL statement Traceback (most recent call last): File "/skole/tjener/home0/roman/.local/lib/python3.7/site-packages/qgepqwat2ili/utils/various.py", line 55, in exec [...]

Any ideas how I can fix this?

Kind regards, Roman

meierrom commented 1 year ago

Hi folks,

I'll answer this one myself.

I had some outdated libraries installed which could be fixed using:

sudo apt update sudo apt install postgresql-12-postgis-3*

Kind regards, Roman