nkarasiak / dzetsaka

dzetsaka : classification plugin for Qgis
GNU General Public License v3.0
80 stars 20 forks source link

argument 1 has unexpected type 'float' #38

Closed Lahers closed 3 months ago

Lahers commented 3 months ago

Hello everyone,

I tried the dzetsaka plugin, and what an incredible discovery! However, before I could run the plugin correctly, I had to do a few things to make it work.

Context : Windows 11, QGIS 3.34.7, default installation, plugins (Quick OSM, dzetsaka, biodispersal, mergin maps, qgis2web, felt, groupstats, bee lines)

After installing the dzetsaka plugin supplements, with OSGeo4W, it gave me an error message : TypeError: setMaximum(self, maximum: int): argument 1 has unexpected type 'float'. To correct this error, I had to open the following file "progressBar.py", normally present in the plugin installation file, to then modify this line "prgBar.setMaximum(inMaxStep)", with this one "prgBar .setMaximum(int(inMaxStep))". After this modification, the plugin worked correctly and displayed the automatic classification !

I remain at your disposal if you wish to discuss it, Antoine