tags:

views:

27

answers:

2

What does this error message mean ?

AttributeError: 'NoneType' object has no attribute 'tk'

thanks

+3  A: 

It means that in your code some where you are calling

x.tk

and x is None

x should have been an object that is assumed to have a attribute tk

To debug it

check out where you are obtaining x and see why it is not returning an appropriate object.

x = ....
pyfunc
A: 

It means that variable to the left of .tk is None (or null)

Aaron Digulla