Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just now downloaded a plugin named "XY tools"from fetch plugins option . I am a user of Qgis v 1.9.0.It shows me the following error: An error has occured while executing Python code:

Traceback (most recent call last):
  File "C:\Documents and Settings\15491/.qgis2/python/plugins\xytools\", line 123, in xyToolClick
    if self.layerInfo.has_key(self.layer) or self.getXyColumns(self.layer):
  File "C:\Documents and Settings\15491/.qgis2/python/plugins\xytools\", line 296, in getXyColumns
    dlg = XyToolsDialog(self.XY_COMBO_MSG, layer.dataProvider().fields(),
  File "C:\Documents and Settings\15491/.qgis2/python/plugins\xytools\", line 35, in __init__
    for field in fieldMap.values():
AttributeError: 'QgsFields' object has no attribute 'values'

Python version:
2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]

QGIS version:
1.9.0-Master Master, 1a723b4

Python path: ['C:\\Documents and Settings\\15491\\.qgis2\\python\\plugins\\GeoCoding', 'C:\\OSGeo4W\\apps\\qgis-dev\\python\\plugins\\sextante', 'C:\\Documents and Settings\\15491\\.qgis2\\python\\plugins\\GeoCoding', 'C:\\Documents and Settings\\15491/.qgis2/python/plugins\\sextante_taudem', 'C:\\Documents and Settings\\15491/.qgis2/python/plugins\\sextante_animove', 'C:\\Documents and Settings\\15491/.qgis2/python/plugins\\sextantelwgeomprovider', 'C:\\Documents and Settings\\15491/.qgis2/python/plugins\\sextanteexampleprovider', 'C:\\Documents and Settings\\15491/.qgis2/python/plugins\\permaclim', 'C:\\Documents and Settings\\15491\\.qgis2\\python\\plugins\\GeoCoding', 'C:/OSGeo4W/apps/qgis-dev/./python', 'C:\\Documents and Settings\\15491/.qgis2/python', 'C:\\Documents and Settings\\15491/.qgis2/python/plugins', 'C:/OSGeo4W/apps/qgis-dev/./python/plugins', 'C:\\OSGeo4W\\bin\\', 'C:\\OSGeo4W\\apps\\Python27\\DLLs', 'C:\\OSGeo4W\\apps\\Python27\\lib', 'C:\\OSGeo4W\\apps\\Python27\\lib\\plat-win', 'C:\\OSGeo4W\\apps\\Python27\\lib\\lib-tk', 'C:\\OSGeo4W\\bin', 'C:\\OSGeo4W\\apps\\Python27', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\PIL', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\win32', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\win32\\lib', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\Pythonwin', 'C:\\OSGeo4W\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode', 'C:\\Documents and Settings\\15491\\.qgis2\\python\\plugins\\mmqgis/forms', 'C:\\Documents and Settings\\15491\\.qgis2\\python\\plugins\\pdokbaggeocoder/forms', 'C:\\OSGeo4W\\apps\\qgis-dev\\python\\plugins\\fTools\\tools']

what is the problem?

share|improve this question
Looks like that plugin hasn't been updated to the new API yet. – Nathan W Aug 6 '13 at 4:31
You should also update your QGIS version to the latest version so that the plugin install doesn't download the older plugins. – Nathan W Aug 6 '13 at 4:32
how to update new version Qgis can you suggest? – Arun Aug 6 '13 at 4:36
You will have to go though the code to update it to the new API, or you can email the author to see if they have already done it. – Nathan W Aug 6 '13 at 4:36
sorry sorry I am new to qgis .I am unable to find code for the plugin how to go there could you please help me? – Arun Aug 6 '13 at 5:11
up vote 3 down vote accepted

If you are new to QGIS, you better take the stable Version 1.8.0 Lisboa. The development version 1.9.0 is currently undergoing massive code changes for the upcoming 2.0 version.

This also affects the plugin handling, needing every plugin to be modified.

The stable version works as normal with all plugins designed earlier.

share|improve this answer
Well the code base is in release mode now so no more major changes however plugins are yet to be updated. – Nathan W Aug 6 '13 at 5:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.