[Qgis-developer] Re: problems with SDA4PP plugin

Giovanni Manghi giovanni.manghi at gmail.com
Fri May 28 05:26:35 EDT 2010


Hi Volkan,


> latest revision is 0.189. please update the plugin and have fun.



thanks!





>         *) under linux (ubuntu 10.04) the tools keeps telling
>         
>         "the plugin does not support unicode characters, Please..."
>         
>         even when there are no unicode chars, I used for instance your
>         sample
>         dataset.


> I could not replicate this error.




 
I tested again on another 10.04 machine and I didn't had problems. But
the machine where it gives this error has Ubuntu localized in PT_PT
instead of EN. Could this be related considering that is seems to be a
problem with encoding? Do you want me to do further tests?





> I think it is a bug or not setting proper backward compatibility in
> the pyqt. I am using the designer to form all GUIs.
> I upgraded the pyqt from 4.4.3-1 to 4.7.3-1 in windows xp. This error
> may be related with this upgrade.
> In the pyqt 4.4.3.1, it is; self.spinBoxF.setProperty("value",
> QtCore.QVariant(0.1))
> where as in 4.7.3-1, it is; self.spinBoxF.setProperty("value", 0.1).
> QtCore.QVariant() is added so the error should be fixed. 
> the similar code is also added in the ui_graphics.py, where for
> example  in line 106, it is: self.dSpinBoxHeight.setProperty("value",
> 600.0)
> 
> by the way I tested these guis with and without
> adding QtCore.QVariant() in ubuntu 9.10 (4.6-1) and
> 10.04(4.7.2-0ubuntu1), and all is working. so this is only valid for
> ubuntu 9.04
> I do not have ubuntu 9.04. last week upgraded to 9.10 and I do not
> want to install it again. so do you confirm that these errors are
> fixed when QtCore.QVariant() is added.
> if you confirmed this solution, we should report this issue to pyqt
> community, shouldn't we?



it gives another error now (see below), but if want to drop 9.04 support
no problem, I'm dropping too 9.04 this weekend :)



cheers


-- Giovanni --



Traceback (most recent call last):
  File "/home/gio/.qgis/python/plugins/SDA4PP/sda4pp.py", line 270, in
doAdaptiveTool
    d = adaptive.AdaptiveTool(self.iface)
  File "/home/gio/.qgis/python/plugins/SDA4PP/adaptive.py", line 42, in
__init__
    self.setupUi(self)
  File "/home/gio/.qgis/python/plugins/SDA4PP/ui_adaptive.py", line 143,
in setupUi
    self.progressBar.setProperty("value", 0)
TypeError: argument 2 of QObject.setProperty() has an invalid type





More information about the Qgis-developer mailing list