Opened 14 years ago
Closed 14 years ago
#2406 closed bug (fixed)
QgsRubberBand python bindings broken
Reported by: | borysiasty | Owned by: | borysiasty |
---|---|---|---|
Priority: | critical: causes crash or data corruption | Milestone: | Version 1.5.0 |
Component: | Python plugins and bindings | Version: | Trunk |
Keywords: | QgsRubberBand SIP python bindings | Cc: | |
Must Fix for Release: | Yes | Platform: | All |
Platform Version: | Awaiting user input: | no |
Description
In r12834 python bindings for QgsRubberBand have become broken. Calling some methods causes errors like "TypeError: argument 1 of QgsRubberBand.addPoint() has an invalid type". The worst case is the SelectPlus plugin crashing whole application.
Change History (4)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
Try to use the QgsRubberBand.addPoint in the python console:
from qgis.gui import * QgsRubberBand(qgis.utils.iface.mapCanvas()).addPoint(QgsPoint())
Is it working for you? I can't provide any backtrace now as I had to downgrade to the r12833. Will do it as soon as I'm able to pause the current work;)
comment:3 by , 14 years ago
(Saying "working" I mean not returning the "invalid argument type" error)
comment:4 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Just tried out your code snippet: got the invalid argument type error, removed python subdir in my build directory, built and installed again, now it works fine.
I believe this is a build problem that happens when only core or gui python module gets rebuilt and the bindings get out of sync. Should be fixed in r12854.
works fine here. Please include steps to reproduce and/or a backtrace.