[Qgis-developer] Python renderer problem with 2.0.1 in OSGEO
Chris Crook
ccrook at linz.govt.nz
Sat Sep 21 11:55:10 PDT 2013
Hi All
I'm having problems with getting a python plugin (Vector Field Renderer) running on 2.0.1 in the standalone windows version (installed onto windows 7).
The plugin implements a custom vector layer renderer to draw arrows based on object attributes. It is used by selecting the renderer in the vector properties style tab. It then should display the configuration widget. This all works fine on Ubuntu 12.04, but under windows it just comes up with the message "This renderer does not implement a graphical user interface", or words to that effect.
I'm looking for ideas on how to debug this. I've tried creating the configuration widget from the python console, and it appears to do this successfully (I did have to make relative module imports explicit to do this - ie change from
from VectorFieldRenderer import VectorFieldRenderer
to
from .VectorFieldRenderer import VectorFieldRenderer
But once I'd done that I could create the widget in the console. However it still isn't appearing in the layer properties dialog.
I can't see any significant version differences between the libraries on windows and ubuntu installations - only differences are in minor versions where windows is ahead of my ubuntu installation.
So I'm looking for any insights as to what could be different and why this might not be working ...
Thanks
Chris
This message contains information, which is confidential and may be subject to legal privilege. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify us immediately (Phone 0800 665 463 or info at linz.govt.nz) and destroy the original message. LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ. Thank You.
More information about the Qgis-developer
mailing list