Python 2.7.9 (default, Apr 2 2015, 15:33:21) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import zipfile >>> s=zipfile.ZipFile('random.zip') >>> s.extractall(pwd='getlost') Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.7/zipfile.py", line 1040, in extractall self.extract(zipinfo, path, pwd) File "/usr/lib/python2.7/zipfile.py", line 1028, in extract return self._extract_member(member, path, pwd) File "/usr/lib/python2.7/zipfile.py", line 1082, in _extract_member with self.open(member, pwd=pwd) as source, \ File "/usr/lib/python2.7/zipfile.py", line 1007, in open raise RuntimeError("Bad password for file", name) RuntimeError: ('Bad password for file', ) >>> # i created file using getlost as password ... # the above zipfile is compressed using Archive Manager comes with ubuntu ... # when i try to extract file created from terminal using same password it works ... # i think it should not show Bad Password for file ... # i should show encoding is different or what