dzetsaka
dzetsaka copied to clipboard
TypeError: setMaximum(self, maximum: int): argument 1 has unexpected type 'float'
I'm trying to sort items in a stack of images, but when I run it the following error appears: How do I resolve it?
`Um erro ocorreu enquanto executava o código Python:
TypeError: setMaximum(self, maximum: int): argument 1 has unexpected type 'float' Traceback (most recent call last): File "C:\Users/IRTM/AppData/Roaming/QGIS/QGIS3\profiles\IRTM/python/plugins\dzetsaka\dzetsaka.py", line 750, in runMagic temp.initPredict( File "C:\Users/IRTM/AppData/Roaming/QGIS/QGIS3\profiles\IRTM/python/plugins\dzetsaka\scripts\mainfunction.py", line 701, in initPredict predictedImage = self.predict_image( ^^^^^^^^^^^^^^^^^^^ File "C:\Users/IRTM/AppData/Roaming/QGIS/QGIS3\profiles\IRTM/python/plugins\dzetsaka\scripts\mainfunction.py", line 850, in predict_image progress = pB.progressBar('Predicting model...', total / 10) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users/IRTM/AppData/Roaming/QGIS/QGIS3\profiles\IRTM/python/plugins\dzetsaka\scripts\progressBar.py", line 38, in init prgBar.setMaximum(inMaxStep) TypeError: setMaximum(self, maximum: int): argument 1 has unexpected type 'float'
Versão do Python: 3.12.4 (main, Jun 10 2024, 12:48:35) [MSC v.1938 64 bit (AMD64)] Versão do QGIS: 3.34.8-Prizren Prizren, 91642333
Caminho do Python: C:\Users/IRTM/AppData/Roaming/QGIS/QGIS3\profiles\IRTM/python/plugins\OpenTopography-DEM-Downloader C:/PROGRA~1/QGIS33~1.8/apps/qgis-ltr/./python C:/Users/IRTM/AppData/Roaming/QGIS/QGIS3\profiles\IRTM/python C:/Users/IRTM/AppData/Roaming/QGIS/QGIS3\profiles\IRTM/python/plugins C:/PROGRA~1/QGIS33~1.8/apps/qgis-ltr/./python/plugins C:\PROGRA~1\QGIS33~1.8\apps\grass\grass83\etc\python C:\Users\IRTM\Documents C:\Program Files\QGIS 3.34.8\bin\python312.zip C:\PROGRA~1\QGIS33~1.8\apps\Python312\DLLs C:\PROGRA~1\QGIS33~1.8\apps\Python312\Lib C:\Program Files\QGIS 3.34.8\bin C:\PROGRA~1\QGIS33~1.8\apps\Python312 C:\PROGRA~1\QGIS33~1.8\apps\Python312\Lib\site-packages C:\PROGRA~1\QGIS33~1.8\apps\Python312\Lib\site-packages\win32 C:\PROGRA~1\QGIS33~1.8\apps\Python312\Lib\site-packages\win32\lib C:\PROGRA~1\QGIS33~1.8\apps\Python312\Lib\site-packages\Pythonwin C:/Users/IRTM/AppData/Roaming/QGIS/QGIS3\profiles\IRTM/python C:\Users\IRTM\AppData\Roaming\QGIS\QGIS3\profiles\IRTM\python\plugins\kmltools\libs D:/CursoGEOPRO/projetos '