north-road / qgis-processing-r

QGIS Processing R Provider Plugin
https://north-road.github.io/qgis-processing-r/
GNU General Public License v3.0
63 stars 14 forks source link

ImportError: cannot import name 'QgsProcessingParameterColor' #105

Closed tohka closed 2 years ago

tohka commented 2 years ago

There was a report in the Japanese forum that an error occurred when running in QGIS 3.8.

Processing R Provider version 3.1.0 states that it supports QGIS 3.4 or higher, but QGIS 3.4 does not yet have QgsProcessingParameterColor.

Gustry commented 2 years ago

The plugin might be compatible QGIS 3.4. But then it depends what kind of R parameter your are adding in your script. QgsProcessingParameterColor has been introduced in 3.10.

JanCaha commented 2 years ago

We should probably raise the supported version to 3.16 or something like that. Both 3.4 and 3.8 are really old.

nyalldawson commented 2 years ago

Both 3.4 and 3.8 are really old.

True, but in this case it's trivial to fix support for these versions (just need to gracefully catch an ImportError). I lean toward only dropping support for older reasons when there's a significantly justifiable reason for doing this