eryk918 / postgis_toolbox

Plugin for QGIS implementing selected PostGIS functions
GNU General Public License v3.0
3 stars 0 forks source link

Vector upload to PostGIS syntax error #5

Open nco1512 opened 7 months ago

nco1512 commented 7 months ago

Hi, I just tried to upload an point-geometry vector to our test postgis server. got this traceback:

SyntaxError: invalid syntax 
Traceback (most recent call last):
  File "C:\Users/hovenn/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\postgis_toolbox\ImportVector\UI\import_vector_ui.py", line 159, in validate_fields
    ImportVector.VectorImporter(
  File "C:\Users/hovenn/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\postgis_toolbox\ImportVector\ImportVector.py", line 42, in __init__
    exec(f"self.{var_name} = {value}")
  File "", line 1
    self.layer_types = []
                        ^
SyntaxError: invalid syntax

Python-Version: 3.9.18 (heads/master:5eba59e, Feb  1 2024, 20:02:10) [MSC v.1929 64 bit (AMD64)] 
QGIS-Version: 3.34.5-Prizren Prizren, 4b308492