Hi, line 163 in ModuleNodes.py reads h_code.putln("Py_DECREF(module);") but should read h_code.putln("Py_DECREF(module); module = 0;") to prevent double DECREFs at the following XDECREF in the case of a type import failure. Stefan