Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install fails for Python3.12 on macos #197

Open
tusharsadhwani opened this issue Jun 28, 2024 · 1 comment
Open

Install fails for Python3.12 on macos #197

tusharsadhwani opened this issue Jun 28, 2024 · 1 comment

Comments

@tusharsadhwani
Copy link

$ pip install brotlipy
Collecting brotlipy
  Using cached brotlipy-0.7.0.tar.gz (413 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting cffi>=1.0.0 (from brotlipy)
  Using cached cffi-1.16.0-cp312-cp312-macosx_11_0_arm64.whl.metadata (1.5 kB)
Collecting pycparser (from cffi>=1.0.0->brotlipy)
  Using cached pycparser-2.22-py3-none-any.whl.metadata (943 bytes)
Using cached cffi-1.16.0-cp312-cp312-macosx_11_0_arm64.whl (177 kB)
Using cached pycparser-2.22-py3-none-any.whl (117 kB)
Building wheels for collected packages: brotlipy
  Building wheel for brotlipy (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for brotlipy (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [40 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-11.0-arm64-cpython-312
      creating build/lib.macosx-11.0-arm64-cpython-312/brotli
      copying src/brotli/build.py -> build/lib.macosx-11.0-arm64-cpython-312/brotli
      copying src/brotli/__init__.py -> build/lib.macosx-11.0-arm64-cpython-312/brotli
      copying src/brotli/brotli.py -> build/lib.macosx-11.0-arm64-cpython-312/brotli
      running build_clib
      building 'libbrotli' library
      creating build/temp.macosx-11.0-arm64-cpython-312
      creating build/temp.macosx-11.0-arm64-cpython-312/libbrotli
      creating build/temp.macosx-11.0-arm64-cpython-312/libbrotli/common
      creating build/temp.macosx-11.0-arm64-cpython-312/libbrotli/dec
      creating build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc
      clang -fno-strict-overflow -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -Werror=unguarded-availability-new -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/common/dictionary.c -o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/common/dictionary.o
      clang -fno-strict-overflow -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -Werror=unguarded-availability-new -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/dec/bit_reader.c -o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/dec/bit_reader.o
      clang -fno-strict-overflow -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -Werror=unguarded-availability-new -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/dec/decode.c -o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/dec/decode.o
      clang -fno-strict-overflow -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -Werror=unguarded-availability-new -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/dec/huffman.c -o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/dec/huffman.o
      clang -fno-strict-overflow -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -Werror=unguarded-availability-new -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/dec/state.c -o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/dec/state.o
      clang -fno-strict-overflow -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -Werror=unguarded-availability-new -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/backward_references.c -o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/backward_references.o
      clang -fno-strict-overflow -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -Werror=unguarded-availability-new -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/backward_references_hq.c -o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/backward_references_hq.o
      clang -fno-strict-overflow -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -Werror=unguarded-availability-new -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/bit_cost.c -o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/bit_cost.o
      clang -fno-strict-overflow -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -Werror=unguarded-availability-new -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/block_splitter.c -o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/block_splitter.o
      clang -fno-strict-overflow -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -Werror=unguarded-availability-new -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/brotli_bit_stream.c -o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/brotli_bit_stream.o
      clang -fno-strict-overflow -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -Werror=unguarded-availability-new -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/cluster.c -o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/cluster.o
      clang -fno-strict-overflow -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -Werror=unguarded-availability-new -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/compress_fragment.c -o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/compress_fragment.o
      clang -fno-strict-overflow -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -Werror=unguarded-availability-new -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/compress_fragment_two_pass.c -o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/compress_fragment_two_pass.o
      clang -fno-strict-overflow -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -Werror=unguarded-availability-new -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/dictionary_hash.c -o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/dictionary_hash.o
      clang -fno-strict-overflow -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -Werror=unguarded-availability-new -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/encode.c -o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/encode.o
      clang -fno-strict-overflow -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -Werror=unguarded-availability-new -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/entropy_encode.c -o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/entropy_encode.o
      clang -fno-strict-overflow -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -Werror=unguarded-availability-new -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/histogram.c -o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/histogram.o
      clang -fno-strict-overflow -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -Werror=unguarded-availability-new -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/literal_cost.c -o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/literal_cost.o
      clang -fno-strict-overflow -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -Werror=unguarded-availability-new -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/memory.c -o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/memory.o
      clang -fno-strict-overflow -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -Werror=unguarded-availability-new -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/metablock.c -o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/metablock.o
      clang -fno-strict-overflow -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -Werror=unguarded-availability-new -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/static_dict.c -o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/static_dict.o
      clang -fno-strict-overflow -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -Werror=unguarded-availability-new -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/utf8_util.c -o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/utf8_util.o
      /var/folders/cj/ch2hz60x7pqftjmm9drs5dtm0000gn/T/tmpm5ecjjp2/tools/llvm/bin/llvm-ar rcs build/temp.macosx-11.0-arm64-cpython-312/liblibbrotli.a build/temp.macosx-11.0-arm64-cpython-312/libbrotli/common/dictionary.o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/dec/bit_reader.o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/dec/decode.o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/dec/huffman.o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/dec/state.o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/backward_references.o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/backward_references_hq.o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/bit_cost.o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/block_splitter.o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/brotli_bit_stream.o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/cluster.o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/compress_fragment.o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/compress_fragment_two_pass.o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/dictionary_hash.o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/encode.o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/entropy_encode.o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/histogram.o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/literal_cost.o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/memory.o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/metablock.o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/static_dict.o build/temp.macosx-11.0-arm64-cpython-312/libbrotli/enc/utf8_util.o
      error: command '/var/folders/cj/ch2hz60x7pqftjmm9drs5dtm0000gn/T/tmpm5ecjjp2/tools/llvm/bin/llvm-ar' failed: No such file or directory
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for brotlipy
Failed to build brotlipy
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (brotlipy)
@tusharsadhwani
Copy link
Author

This may be relevant for a fix: numpy/numpy#17777 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant