[Qgis-developer] Qgis : synchronized view for photo-interpretation?

Gino Pirelli luipir at gmail.com
Tue Oct 22 11:20:36 PDT 2013


Hi, I'm maintaining this plugin

I tested the code:
settings=QSettings()
a=settings.value( "/qgis/zoom_factor", 2, type=int )

in the python console and it works... the error message says that

cannot convert QVariant metaType = 10 (QString) in QVariant metaType = 2
(Int)... so probabily in your settings zoom_factor is set as string
value... e.g "2" instead of 2

try to check in your Qgis setting

if this is not the case, please create an issue here:

http://hub.qgis.org/projects/dockablemirrormap/issues

explaining the context and if possibile a data set to allow me to reproduce
the error?

thank you


On 22 October 2013 19:47, Zirneklitis <eko at lanet.lv> wrote:

> What could be missing? DockableMirrorMap plugin could not be started:
>
> ==============================**=========================
>
> An error has occured while executing Python code:
>
> Traceback (most recent call last):
>   File "/home/karlo/.qgis2/python/**plugins/DockableMirrorMap/**dockableMirrorMapPlugin.py",
> line 79, in runDockableMirror
>     wdg = DockableMirrorMap(self.iface.**mainWindow(), self.iface)
>   File "/home/karlo/.qgis2/python/**plugins/DockableMirrorMap/**dockableMirrorMap.py",
> line 39, in __init__
>     self.mainWidget = MirrorMap(self, iface)
>   File "/home/karlo/.qgis2/python/**plugins/DockableMirrorMap/**mirrorMap.py",
> line 40, in __init__
>     self.setupUi()
>   File "/home/karlo/.qgis2/python/**plugins/DockableMirrorMap/**mirrorMap.py",
> line 65, in setupUi
>     zoomFactor = settings.value( "/qgis/zoom_factor", 2, type=int )
> TypeError: unable to convert a QVariant of type 10 to a QMetaType of type 2
>
> Python version:
> 2.7.3 (default, Aug  9 2012, 17:23:57)
> [GCC 4.7.1 20120720 (Red Hat 4.7.1-5)]
>
>
> QGIS version:
> 2.1.0-Master Master, exported
>
> Python path: ['/usr/share/qgis/python/**plugins/processing',
> '/usr/share/qgis/python', u'/home/karlo/.qgis2/python',
> u'/home/karlo/.qgis2/python/**plugins', '/usr/share/qgis/python/**plugins',
> '/usr/lib64/python27.zip', '/usr/lib64/python2.7',
> '/usr/lib64/python2.7/plat-**linux2', '/usr/lib64/python2.7/lib-tk',
> '/usr/lib64/python2.7/lib-old'**, '/usr/lib64/python2.7/lib-**dynload',
> '/usr/lib64/python2.7/site-**packages', '/usr/lib64/python2.7/site-**packages/PIL',
> '/usr/lib64/python2.7/site-**packages/geos', '/usr/lib64/python2.7/site-**packages/gst-0.10',
> '/usr/lib64/python2.7/site-**packages/gtk-2.0',
> '/usr/lib64/python2.7/site-**packages/wx-2.8-gtk2-unicode',
> '/usr/lib/python2.7/site-**packages', '/usr/lib/python2.7/site-**
> packages/setuptools-0.6c11-**py2.7.egg-info', '/home/karlo/.qgis2/python/*
> *plugins/DigitizingTools/tools'**, '/usr/share/qgis/python/**
> plugins/fTools/tools']
>
>
> ==============================**=========================
>
> Best regards,
> Karlis
>
> Paolo Cavallini wrote:
>
>> ..
>>
>> http://plugins.qgis.org/**plugins/DockableMirrorMap/<http://plugins.qgis.org/plugins/DockableMirrorMap/>
>> enjoy
>> ..
>>
> ______________________________**_________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/qgis-**developer<http://lists.osgeo.org/mailman/listinfo/qgis-developer>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20131022/a8885d03/attachment.html>


More information about the Qgis-developer mailing list