mstorsjo / llvm-mingw

An LLVM/Clang/LLD based mingw-w64 toolchain
Other
1.98k stars 188 forks source link

Python in llvm-mingw:module 'zlib' has no attribute 'crc32' #463

Closed chenjie199234 closed 3 weeks ago

chenjie199234 commented 3 weeks ago

when i use the python the follow error happened

module 'zlib' has no attribute 'crc32'

  File "C:\Users\xxx\scons\scripts\..\SCons\Tool\zip.py", line 42:
    import zipfile
  File "C:\Program Files\LLVM-MinGW\python\lib\python3.11\zipfile.py", line 23:
    crc32 = zlib.crc32

release version:20241015

mstorsjo commented 3 weeks ago

The python that is a limited configuration - it does not include the zlib module.

The included python is mostly intended for LLDB integration, not a wide configuration for general purpose use (even though it mostly works for that as well).

chenjie199234 commented 3 weeks ago

@mstorsjo
i switched from MinGW-W64 to LLVM-MingGW,the python in MinGW-W64 contains this so i need to install another python?is there any way to fix this.