I am trying to use a python module on a N95 phone that has PyS60 v1.4.2
I am getting a error on this line
At the top of the module file there is
if type(rules) not in (NoneType, DictType):
NameError: global name 'NoneType' is not defined
that should include everything from the types.py file that is in the PyS60 distribution (I have checked).
from Types import *
I have tried several things to get this to work, for example to include the types like this
(Then I got a error that this could not be imported)
from types import NoneType
from types import DictType
Also to change the input like this
and have the if condition like
but then I get
if type(rules) not in (types.NoneType, types.DictType):
Anyone who knows what I am doing wrong or how this could be fixed.
AttributeError: 'module' object has no attribute 'NoneType'
Magnus Agust Skulason