Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QgsRubberBand python bindings broken #12466

Closed
qgib opened this issue Jan 31, 2010 · 4 comments
Closed

QgsRubberBand python bindings broken #12466

qgib opened this issue Jan 31, 2010 · 4 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Jan 31, 2010

Author Name: Borys Jurgiel (@borysiasty)
Original Redmine Issue: 2406

Redmine category:python_plugins
Assignee: Borys Jurgiel


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.

@qgib
Copy link
Contributor Author

qgib commented Jan 31, 2010

Author Name: Jürgen Fischer (@jef-n)


works fine here. Please include steps to reproduce and/or a backtrace.

@qgib
Copy link
Contributor Author

qgib commented Jan 31, 2010

Author Name: Borys Jurgiel (@borysiasty)


Try to use the [[QgsRubberBand]].addPoint in the python console:

from qgis.gui import *
[QgsRubberBand].addPoint(QgsPoint())

Is it working for you? I can't provide any backtrace now as I had to downgrade to the d8e8ee4 (SVN r12834). Will do it as soon as I'm able to pause the current work;)

@qgib
Copy link
Contributor Author

qgib commented Jan 31, 2010

Author Name: Borys Jurgiel (@borysiasty)


(Saying "working" I mean not returning the "invalid argument type" error)

@qgib
Copy link
Contributor Author

qgib commented Jan 31, 2010

Author Name: Martin Dobias (@wonder-sk)


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 3476611 (SVN r12855).


  • resolution was changed from to fixed
  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins labels May 24, 2019
@qgib qgib added this to the Version 1.5.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins
Projects
None yet
Development

No branches or pull requests

1 participant