Python example scripts fail ?

450
1
11-18-2019 09:54 PM
AlanKlys
Occasional Contributor

Hi CE and python folks,

Upfront disclaimer, I'm a python noob and seem to have forgotten most of the thing I tried and tested years ago with python & CE.

I have gone back to some posts and tutes, namely 

Overwriting attributs / using report results for further calculations 

as well as this old tutorial 

http://www.arcgis.com/home/item.html?id=e1d05298b8ee469fbe0f3256634a76a3 

All the python scripts that I run come back with the same NameError:

global name 'model' not defined

in the case of this script from tutorial 12 ...

 

so I'm wondering if it's actually something up with my setup or if I'm missing something fundamental ?

If someone could point me North I would greatly appreciate it as I'm lost as to why none of these work? 

Many thanks in advance.

Cheryl Lau

0 Kudos
1 Reply
AlanKlys
Occasional Contributor

... nevermind folks. 

I've figured out where I was going wrong, seems my python understanding was somewhat lacking.

0 Kudos