Monday 19 August 2019

python - Configuring QGIS 2.18 processing script locations


I've just installed QGIS 2.18. I used the ltr version from from the advanced options of the OSGeo4W network installer. I went to set the folders where I keep my python scripts but when I click 'ok' I get the following error...


Has anyone had anything similar and know how to resolve?


An error has occurred while executing Python code: 

RuntimeError: maximum recursion depth exceeded in cmp

Traceback (most recent call last):
File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\gui\ProcessingToolbox.py", line 163, in updateProvider
item.refresh()
File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\gui\ProcessingToolbox.py", line 377, in refresh
Processing.updateAlgsList()
File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\core\Processing.py", line 184, in updateAlgsList
Processing.reloadProvider(p.getName())
File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\core\Processing.py", line 189, in reloadProvider
algList.reloadProvider(providerName)
File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\core\alglist.py", line 55, in reloadProvider

p.loadAlgorithms()
File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\core\AlgorithmProvider.py", line 56, in loadAlgorithms
self._loadAlgorithms()
File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\modeler\ModelerAlgorithmProvider.py", line 73, in _loadAlgorithms
folders = ModelerUtils.modelsFolders()
File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\modeler\ModelerUtils.py", line 46, in modelsFolders
folder = ProcessingConfig.getSetting(ModelerUtils.MODELS_FOLDER)
File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\core\ProcessingConfig.py", line 209, in getSetting
if name in ProcessingConfig.settings.keys():
RuntimeError: maximum recursion depth exceeded in cmp



Python version: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
QGIS version: 2.18.19 Las Palmas, 3a17f72ba5

Answer



It's a bug [1][2] in 2.18.19. You can can downgrade to a previous point release of 2.18, wait for the next point release 2.18.20 or manually make the changes to fix it yourself.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...