qgisred / QGISRed

GNU General Public License v2.0
24 stars 7 forks source link

Error on create new project #103

Open massimiliano-cannata opened 1 year ago

massimiliano-cannata commented 1 year ago

Hi there, with the latest QGIS version (3.30.2) there's an error in creating the layers

image

File "C:\Users/ist/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QGISRed\tools\qgisred_utils.py", line 261, in setStyle lineSymbol.setWidthUnit(2) # Pixels TypeError: QgsLineSymbolLayer.setWidthUnit(): argument 1 has unexpected type 'int'

Versione Python: 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] Versione di QGIS: 3.30.2-'s-Hertogenbosch 's-Hertogenbosch, 0992b533

fmartine commented 1 year ago

Dear Massimiliano,

Thank you for your issue. Indeed version 3.30 of QGIS has stopped supporting some arguments in the functions used to symbolise the elements, which causes the reported error and prevents working with QGISRed.

We have already solved the problem for the next version 0.17. Until we officially release it, you can continue working with version 0.16 from QGIS 3.28. Note that you can keep both versions 3.28 and 3.30 active on your computer.