On Tue, Jun 8, 2010 at 2:17 PM, Senthil Kumaran <orsent...@gmail.com> wrote:
> On Tue, Jun 08, 2010 at 12:04:38PM +0530, Anand Balachandran Pillai wrote: > > > >>>import tarfile > > > >>>tarfile.open("*.tar.gz","r:gz") > > > > ImportError: No module named zlib > > > > I agree that the error message could be more > > descriptive. In this case looks like the tarfile module is masking > > the original error message which is a failure to import zlib module. > > Really? ImportError: No module named zlib is fine enough to say that > you don't have zlib installed. (I am talking in general and not for > OP's purpose). What could be a better error message here? > Please read the entire thread. You joined the thread later. Refer to the first message by OP and you will understand what I am talking here. > > -- > Senthil > _______________________________________________ > BangPypers mailing list > BangPypers@python.org > http://mail.python.org/mailman/listinfo/bangpypers > Regards, -- --Anand _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers