From p666 at free.fr Sun Dec 24 10:46:22 2006 From: p666 at free.fr (p666) Date: Sun, 24 Dec 2006 10:46:22 +0100 Subject: [Email-SIG] LazyImporter not callable Message-ID: Hello, under python 2.5 mac os X the following code import email a = email.Message() raises the following exception TypeError: 'LazyImporter' object is not callable the version of email module is >>> email.__version__ '4.0.1' thanks for any advice From msapiro at value.net Sun Dec 24 20:56:59 2006 From: msapiro at value.net (Mark Sapiro) Date: Sun, 24 Dec 2006 11:56:59 -0800 Subject: [Email-SIG] LazyImporter not callable In-Reply-To: Message-ID: p666 wrote: > >under python 2.5 mac os X >the following code > >import email >a = email.Message() > > >raises the following exception > > >TypeError: 'LazyImporter' object is not callable And under prior email versions it would have raised the exception TypeError: 'module' object is not callable You want a = email.Message.Message() or per the new PEP 8 conformant naming a = email.message.Message() -- Mark Sapiro The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan