Python error when creating new polygon for spectral signature
Closed this issue · 7 comments
Here's my system info:
QGIS version | 3.22.2-Białowieża | QGIS code branch | Release 3.22 |
---|---|---|---|
Qt version | 5.15.2 | ||
Python version | 3.10.0 | ||
GDAL/OGR version | 3.3.2 | ||
Compiled against PROJ | 8.2.0.%3.%4 | Running against PROJ | 8.2.1 |
EPSG Registry database version | v10.041 (2021-12-03) | ||
GEOS version | 3.9.2-CAPI-1.14.3 | ||
SQLite version | 3.36.0 | ||
PDAL version | 2.3.0 | ||
PostgreSQL client version | 13.4 | ||
SpatiaLite version | 5.0.1 | ||
QWT version | 6.1.5 | ||
QScintilla2 version | 2.13.0 | ||
OS version | Fedora Linux 35 (Workstation Edition) | ||
Active Python plugins | |||
OSMDownloader | 1.0.3 | ||
CalculateGeometry | 0.6.4 | ||
ORStools | 1.5.0 | ||
travel_time_platform_plugin | 1.5.2 | ||
AcATaMa | 19.11.21 | ||
SemiAutomaticClassificationPlugin | 7.10.5 | ||
MetaSearch | 0.3.5 | ||
db_manager | 0.1.20 | ||
grassprovider | 2.12.99 | ||
processing | 2.12.99 | ||
sagaprovider | 2.12.99 |
The problem:
When creating polygon with this tool:
I got python error that said:
2022-01-20T11:28:45 WARNING Traceback (most recent call last):
File "/home/lam/.local/share/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/dock/scpdock.py", line 2652, in clckR
self.addHighlightPolygon(cfg.lstROI, 1)
File "/home/lam/.local/share/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/dock/scpdock.py", line 2527, in addHighlightPolygon
clr.setAlpha(rT)
TypeError: setAlpha(self, int): argument 1 has unexpected type 'float'
I've tried reinstalling the plugin but still got the same results.
Hello, thank you for this information. I'll look into this issue
@semiautomaticgit I don't know if this related, but AcATaMa plugin is displaying similiar python error message.
See: SMByC/AcATaMa#12 (comment)
@semiautomaticgit I don't know if this related, but AcATaMa plugin is displaying similiar python error message. See: SMByC/AcATaMa#12 (comment)
Thank you for reporting this
It works fine on QGIS Flatpak on Fedora Silverblue 35...
Here's the system info:
QGIS version | 3.22.3-Białowieża | QGIS code branch | Release 3.22 |
---|---|---|---|
Qt version | 5.15.3 | ||
Python version | 3.9.9 | ||
GDAL/OGR version | 3.4.1 | ||
PROJ version | 8.2.0 | ||
EPSG Registry database version | v10.038 (2021-10-21) | ||
GEOS version | 3.10.2-CAPI-1.16.0 | ||
SQLite version | 3.36.0 | ||
PDAL version | 2.3.0 | ||
PostgreSQL client version | 12.2 | ||
SpatiaLite version | 5.0.1 | ||
QWT version | 6.1.5 | ||
QScintilla2 version | 2.11.6 | ||
OS version | KDE Flatpak runtime | ||
Active Python plugins | |||
SemiAutomaticClassificationPlugin | 7.10.5 | ||
MetaSearch | 0.3.5 | ||
db_manager | 0.1.20 | ||
grassprovider | 2.12.99 | ||
processing | 2.12.99 | ||
sagaprovider | 2.12.99 |
It might be because it still using python 3.9.9...
Thank you @frnmz . Yes, it seems an issue related to Python version
Hello all, I have the same issue with the latest Version of QGIS Tisler on ubuntu, but not on a windows virtual machine.
Any idea how we can fix this issue?
Hello, please update the SCP to version 7.10.7, it should fix this issue.