Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am trying to figure out the generate lines from objects options in the new labeling. I believe that I first need to apply the easy labeling option prior to using it, but I get the following error. Thoughts?

An error has occured while executing Python code:

Traceback (most recent call last): File "C:/Users/Chad M. Wade/.qgis//python/plugins\EasyCustomLabeling\EasyCustomLabeling.py", line 335, in run zCentroideLayer = QgsMapLayerRegistry.instance().addMapLayer(centro, True) # adds centro to map registry AttributeError: 'QgsMapLayerRegistry' object has no attribute 'addMapLayer'

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, 7e29d7c

Python path: ['C:\Users\Chad M. Wade\.qgis\python\plugins\GeoCoding', 'C:\Users\Chad M. Wade\.qgis\python\plugins\GeoCoding', 'C:/Users/Chad M. Wade/.qgis//python/plugins\sextante', 'C:\Users\Chad M. Wade\.qgis\python\plugins\GeoCoding', 'C:/OSGeo4W/apps/qgis-dev/./python', 'C:/Users/Chad M. Wade/.qgis//python', 'C:/Users/Chad M. Wade/.qgis//python/plugins', 'C:/OSGeo4W/apps/qgis-dev/./python/plugins', 'C:\OSGeo4W\bin\python27.zip', '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:\OSGeo4W\apps\qgis-dev\python\plugins\fTools\tools']

share|improve this question
Have you tried if it works with 1.8? The Python API has changed between 1.8 and the current dev version. (The 1.9 you are using is not a release version.) – underdark Jan 8 at 18:51
That did it, thanks. its tough to decide which version to work in. everybody tells you to go to the newest version, but not everything is working fully. – LandArch Jan 8 at 19:12
If you don't encounter any specific problems with 1.8, I wouldn't advise to switch to the development version right now. – underdark Jan 8 at 19:31
@LandArch generally you run with 1.8 and test with the latest build. You can run the latest build side by side. – Nathan W Jan 8 at 22:01
I'll close this for now since it works with the current release and will most likely be updated for the next one too. – underdark Jan 8 at 22:36

closed as too localized by underdark Jan 8 at 22:36

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.