2.2.2 generates: "TypeError: 'module' object is not callable"

Neal Norwitz neal at metaslash.com
Fri Jan 17 18:23:06 EST 2003


On Fri, 17 Jan 2003 15:56:59 -0500, RW wrote:

> Calls to the class dcHelper below works fine under 2.2.1 but now breaks
> under 2.2.2 with the error: "TypeError: 'module' object is not
> callable".

The code works for me after fixing the errors:

 * add import os
 * add a global diff_dirs = {}
 * fix syntax error (missing : after if stmt)

I tested with 2.2.2 and 2.3a1+.  There must be something else going on.
I suspect that object is getting set to a module somehow.

Neal




More information about the Python-list mailing list