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?

-- 
Senthil
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to