zpifile.py error - no crc 32 attribute

Peter Pearson pkpearson at nowhere.invalid
Wed Aug 22 12:35:01 EDT 2018


On Wed, 22 Aug 2018 13:12:59 +0200, jacob m <kgrenczuk at gmail.com> wrote:
[snip]
> That's my error:
> "    import zipfile
>   File "/home/lib/python3.7/lib/python3.7/zipfile.py", line 19, in <module>
>     crc32 = zlib.crc32
> AttributeError: module 'zlib' has no attribute 'crc32' "
>
> I have no idea what to do with that :/ I use this version of zipfile:
> https://github.com/python/cpython/blob/3.7/Lib/zipfile.py
>
> Somebody knows how to solve it?

zipfile imports zlib and expects zlib to define something called crc32.
On your system, for some reason, the zlib that's being imported doesn't
define anything called crc32.  Is there perhaps a different zlib on
your path, hiding the real zlib?

-- 
To email me, substitute nowhere->runbox, invalid->com.



More information about the Python-list mailing list