Compilation of nose 1.3.7 on fails on python 3.12 due to changes in syntax of "except" statements. See: https://stackoverflow.com/questions/70648404/syntaxerror-multiple-exception-types-must-be-parenthesized All statements with this syntax: except NameError, nameerror: Need to be reset as: except NameError(nameerror):