[Qgis-developer] [Processing] AttributeError: 'NoneType' object has no attribute 'update'

Niccolò Marchi sciurusurbanus at hotmail.it
Sun Jun 5 09:30:01 PDT 2016


Hi all,
adding a tool to the the graphical modeler I got the error “AttributeError: 'NoneType' object has no attribute 'update' ”. In other discussions on the web it seems due to an algorithm not properly working within the sequence.

I tried then:

-          to remove the last tool

-          To substitute the algoritms with similar ones,

-          removing one tool a time,
but still the error persists.

any idea?

Thank you in advance!
All the best,

Nic



AttributeError: 'NoneType' object has no attribute 'update'
Traceback (most recent call last):
  File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\modeler\ModelerDialog.py", line 247, in runModel
    alg = self.alg.getCopy()
  File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\modeler\ModelerAlgorithm.py", line 201, in getCopy
    newone.algs = copy.deepcopy(self.algs)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 298, in _deepcopy_inst
    state = deepcopy(state, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 298, in _deepcopy_inst
    state = deepcopy(state, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 190, in deepcopy
    y = _reconstruct(x, rv, 1, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 334, in _reconstruct
    state = deepcopy(state, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 230, in _deepcopy_list
    y.append(deepcopy(a, memo))
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 298, in _deepcopy_inst
    state = deepcopy(state, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 190, in deepcopy
    y = _reconstruct(x, rv, 1, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 334, in _reconstruct
    state = deepcopy(state, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 190, in deepcopy
    y = _reconstruct(x, rv, 1, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 334, in _reconstruct
    state = deepcopy(state, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 190, in deepcopy
    y = _reconstruct(x, rv, 1, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 334, in _reconstruct
    state = deepcopy(state, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 190, in deepcopy
    y = _reconstruct(x, rv, 1, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 334, in _reconstruct
    state = deepcopy(state, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 190, in deepcopy
    y = _reconstruct(x, rv, 1, memo)
  File "C:\OSGEO4~1\apps\Python27\lib\copy.py", line 343, in _reconstruct
    y.__dict__.update(state)
AttributeError: 'NoneType' object has no attribute 'update'

Python version: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
QGIS version: 2.14.3-Essen Essen, cf2ebb8
Python Path:
-                      C:/OSGEO4~1/apps/qgis/./python/plugins\processing
-                      C:/OSGEO4~1/apps/qgis/./python
-                      C:/Users/NM/.qgis2/python
-                      C:/Users/NM/.qgis2/python/plugins
-                      C:/OSGEO4~1/apps/qgis/./python/plugins
-                      C:\OSGEO4~1\apps\Python27\lib\site-packages\matplotlib-1.3.1-py2.7-win-amd64.egg
-                      C:\OSGEO4~1\apps\Python27\lib\site-packages\nose-1.3.3-py2.7.egg
-                      C:\OSGEO4~1\apps\Python27\lib\site-packages\tornado-4.0.1-py2.7-win-amd64.egg
-                      C:\OSGEO4~1\apps\Python27\lib\site-packages\backports.ssl_match_hostname-3.4.0.2-py2.7.egg
-                      C:\OSGEO4~1\apps\Python27\lib\site-packages\certifi-14.05.14-py2.7.egg
-                      c:\osgeo4~1\apps\python27\lib\site-packages\python_dateutil-2.1-py2.7.egg
-                      C:\OSGEO4~1\bin\python27.zip
-                      C:\OSGEO4~1\apps\Python27\DLLs
-                      C:\OSGEO4~1\apps\Python27\lib
-                      C:\OSGEO4~1\apps\Python27\lib\plat-win
-                      C:\OSGEO4~1\apps\Python27\lib\lib-tk
-                      C:\OSGEO4~1\bin
-                      C:\OSGEO4~1\apps\Python27
-                      C:\OSGEO4~1\apps\Python27\lib\site-packages
-                      C:\OSGEO4~1\apps\Python27\lib\site-packages\PIL
-                      C:\OSGEO4~1\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg
-                      C:\OSGEO4~1\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win-amd64.egg
-                      C:\OSGEO4~1\apps\Python27\lib\site-packages\pytz-2012j-py2.7.egg
-                      C:\OSGEO4~1\apps\Python27\lib\site-packages\win32
-                      C:\OSGEO4~1\apps\Python27\lib\site-packages\win32\lib
-                      C:\OSGEO4~1\apps\Python27\lib\site-packages\Pythonwin
-                      C:\OSGEO4~1\apps\Python27\lib\site-packages\wx-2.8-msw-unicode
-                      C:/Users/NM/.qgis2//python
C:\OSGEO4~1\apps\qgis\python\plugins\fTools\tools
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160605/7682df70/attachment-0001.html>


More information about the Qgis-developer mailing list