'zipFile returns zipfile.BadZipfile: File is not a zip file

I have this Python code:

if '.zip' in add:
    print 'Found ' + add + ' archive. We will do nothing.'
    unZipFileName = add
    z = zipfile.ZipFile(unZipFileName) // here i got the error
    for name in z.namelist():
        outpath = unZipFileName + '/'
        z.extract(name, outpath)

I printed os.path.isfile(add) and returns True.
I use same code on Windows and it's works.
It's a problem if archive is maked on Windows and I try to unpack on Linux?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source