08-26-2017, 10:21 PM
The message you report says "none type object has no attribute e.width" but if it is more accurately "'NoneType' object has no attribute 'ewidth'" then:
- There is a place in the code where an ewidth attribute is used
- Since NoneType is the type of the object None (and there is no other object of that type) then the variable associate with ewidth has value None
- So all this points to srcTile (used in "for x in range(srcTile.ewidth):" that has become None
- None is traditionally used in Python function as the value returned when the function cannot return what is asked
- So that would be "layer.get_tile(False, j, i)" which isn't returning the requested tile for some reason.