question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR: Could not build wheels for bcj-cffi, pyppmd, which is required to install pyproject.toml-based projects

See original GitHub issue

Hi, Just in the last few hours, it seems to fail to install Qt5.15.2 on macos-latest. The console output of Github Actions shows the following error. I have tried three times and the error persists.

ERROR: Could not build wheels for bcj-cffi, pyppmd, which is required to install pyproject.toml-based projects
full error stack

Run jurplel/install-qt-action@v2
  with:
    version: 5.15.2
    host: mac
    target: desktop
    dir: /Users/runner/work/goneovim/goneovim
    modules: qtcharts qtdatavis3d qtpurchasing qtvirtualkeyboard qtwebengine qtnetworkauth qtwebglplugin qtscript
    install-deps: true
    cached: false
    setup-python: true
    set-env: true
    tools-only: false
    aqtversion: ==1.2.5
    py7zrversion: ==0.16.1
  env:
    cache-version: v1
    GOPATH: /Users/runner/work/goneovim/goneovim
    QT_DIR: /Users/runner/work/goneovim/goneovim/Qt
    QT_VERSION: 5.15.2
    QT_API: 5.13.0
    QT_DEBUG: false
    GO111MODULE: off
    GOPROXY: https://goproxy.io
    QMAKE_APPLE_DEVICE_ARCHS: arm64
    SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
    GOROOT: /Users/runner/hostedtoolcache/go/1.16.13/x64
Successfully setup CPython (3.10.2)
brew install p7zip
Warning: p7zip 17.04 is already installed and up-to-date.
To reinstall 17.04, run:
  brew reinstall p7zip
python3 -m pip install setuptools wheel
Requirement already satisfied: setuptools in /Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages (58.1.0)
Collecting wheel
  Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Installing collected packages: wheel
Successfully installed wheel-0.37.1
python3 -m pip install py7zr==0.16.1
Collecting py7zr==0.16.1
  Downloading py7zr-0.16.1-py3-none-any.whl (65 kB)
Collecting bcj-cffi<0.6.0,>=0.5.1
  Downloading bcj-cffi-0.5.1.tar.gz (35 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting brotli>=1.0.9
  Downloading Brotli-1.0.9-cp310-cp310-macosx_10_9_x86_64.whl (421 kB)
Collecting pyppmd>=0.14.0
  Downloading pyppmd-0.17.3.tar.gz (462 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting pycryptodomex>=3.6.6
  Downloading pycryptodomex-3.13.0-cp35-abi3-macosx_10_9_x86_64.whl (1.5 MB)
Collecting pyzstd<0.15.0,>=0.14.4
  Downloading pyzstd-0.14.4.tar.gz (659 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting texttable
  Downloading texttable-1.6.4-py2.py3-none-any.whl (10 kB)
Collecting multivolumefile>=0.2.3
  Downloading multivolumefile-0.2.3-py3-none-any.whl (17 kB)
Collecting cffi>=1.14.0
  Using cached cffi-1.15.0-cp310-cp310-macosx_10_9_x86_64.whl (178 kB)
Collecting pycparser
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Building wheels for collected packages: bcj-cffi, pyppmd, pyzstd
  Building wheel for bcj-cffi (pyproject.toml): started
  Building wheel for bcj-cffi (pyproject.toml): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /Users/runner/hostedtoolcache/Python/3.10.2/x64/bin/python3 /Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmp25l1wheb
       cwd: /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-install-d5wlp_4_/bcj-cffi_a3555217f70443eaae0a8a6e904419fa
  Complete output (20 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.15-x86_64-3.10
  creating build/lib.macosx-10.15-x86_64-3.10/bcj
  copying src/bcj/__init__.py -> build/lib.macosx-10.15-x86_64-3.10/bcj
  copying src/bcj/py.typed -> build/lib.macosx-10.15-x86_64-3.10/bcj
  copying src/bcj/__init__.pyi -> build/lib.macosx-10.15-x86_64-3.10/bcj
  running build_ext
  creating build/temp.macosx-10.15-x86_64-3.10
  creating build/temp.macosx-10.15-x86_64-3.10/build
  creating build/temp.macosx-10.15-x86_64-3.10/build/temp.macosx-10.15-x86_64-3.10
  creating build/temp.macosx-10.15-x86_64-3.10/src
  creating build/temp.macosx-10.15-x86_64-3.10/src/ext
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/opt/sqlite/include -I/usr/local/opt/sqlite/include -Isrc/ext -I/Users/runner/hostedtoolcache/Python/3.10.2/x64/include/python3.10 -c build/temp.macosx-10.15-x86_64-3.10/_bcj.c -o build/temp.macosx-10.15-x86_64-3.10/build/temp.macosx-10.15-x86_64-3.10/_bcj.o
  gcc: error: Failed to determine realpath of '/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk' (errno=No such file or directory)
  gcc: error: sh -c '/Applications/Xcode_13.1.app/Contents/Developer/usr/bin/xcodebuild -sdk /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -find gcc 2> /dev/null' failed with exit code 16384: (null) (errno=No such file or directory)
  xcode-select: Failed to locate 'gcc', requesting installation of command line developer tools.
  error: command '/usr/bin/gcc' failed with exit code 72
  ----------------------------------------
  ERROR: Failed building wheel for bcj-cffi
  Building wheel for pyppmd (pyproject.toml): started
  Building wheel for pyppmd (pyproject.toml): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /Users/runner/hostedtoolcache/Python/3.10.2/x64/bin/python3 /Users/runner/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmptk0nmbig
       cwd: /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-install-d5wlp_4_/pyppmd_c4d78c081b50480b94e5c9e4093a3294
  Complete output (23 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.15-x86_64-3.10
  creating build/lib.macosx-10.15-x86_64-3.10/pyppmd
  copying src/pyppmd/__init__.py -> build/lib.macosx-10.15-x86_64-3.10/pyppmd
  package init file 'src/pyppmd/c/__init__.py' not found (or not a regular file)
  creating build/lib.macosx-10.15-x86_64-3.10/pyppmd/c
  copying src/pyppmd/c/c_ppmd.py -> build/lib.macosx-10.15-x86_64-3.10/pyppmd/c
  copying src/pyppmd/__init__.pyi -> build/lib.macosx-10.15-x86_64-3.10/pyppmd
  copying src/pyppmd/py.typed -> build/lib.macosx-10.15-x86_64-3.10/pyppmd
  running build_ext
  creating build/temp.macosx-10.15-x86_64-3.10
  creating build/temp.macosx-10.15-x86_64-3.10/lib
  creating build/temp.macosx-10.15-x86_64-3.10/lib2
  creating build/temp.macosx-10.15-x86_64-3.10/src
  creating build/temp.macosx-10.15-x86_64-3.10/src/ext
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/opt/sqlite/include -I/usr/local/opt/sqlite/include -Ilib -Ilib2 -I/Users/runner/hostedtoolcache/Python/3.10.2/x64/include/python3.10 -c lib/Ppmd7.c -o build/temp.macosx-10.15-x86_64-3.10/lib/Ppmd7.o
  gcc: error: Failed to determine realpath of '/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk' (errno=No such file or directory)
  gcc: error: sh -c '/Applications/Xcode_13.1.app/Contents/Developer/usr/bin/xcodebuild -sdk /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -find gcc 2> /dev/null' failed with exit code 16384: (null) (errno=No such file or directory)
  xcode-select: Failed to locate 'gcc', requesting installation of command line developer tools.
  error: command '/usr/bin/gcc' failed with exit code 72
  ----------------------------------------
  ERROR: Failed building wheel for pyppmd
  Building wheel for pyzstd (setup.py): started
  Building wheel for pyzstd (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /Users/runner/hostedtoolcache/Python/3.10.2/x64/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-install-d5wlp_4_/pyzstd_57932576621249a496cc7e020f84549d/setup.py'"'"'; __file__='"'"'/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-install-d5wlp_4_/pyzstd_57932576621249a496cc7e020f84549d/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-wheel-4_kl_zny
       cwd: /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-install-d5wlp_4_/pyzstd_57932576621249a496cc7e020f84549d/
  Complete output (27 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.15-x86_64-3.10
  creating build/lib.macosx-10.15-x86_64-3.10/pyzstd
  copying src/__init__.py -> build/lib.macosx-10.15-x86_64-3.10/pyzstd
  package init file 'src/c/__init__.py' not found (or not a regular file)
  creating build/lib.macosx-10.15-x86_64-3.10/pyzstd/c
  copying src/c/c_pyzstd.py -> build/lib.macosx-10.15-x86_64-3.10/pyzstd/c
  copying src/__init__.pyi -> build/lib.macosx-10.15-x86_64-3.10/pyzstd
  copying src/py.typed -> build/lib.macosx-10.15-x86_64-3.10/pyzstd
  running build_ext
  building 'pyzstd.c._zstd' extension
  creating build/temp.macosx-10.15-x86_64-3.10
  creating build/temp.macosx-10.15-x86_64-3.10/lib
  creating build/temp.macosx-10.15-x86_64-3.10/lib/common
  creating build/temp.macosx-10.15-x86_64-3.10/lib/compress
  creating build/temp.macosx-10.15-x86_64-3.10/lib/decompress
  creating build/temp.macosx-10.15-x86_64-3.10/lib/dictBuilder
  creating build/temp.macosx-10.15-x86_64-3.10/src
  creating build/temp.macosx-10.15-x86_64-3.10/src/bin_ext
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/opt/sqlite/include -I/usr/local/opt/sqlite/include -DZSTD_MULTITHREAD -Ilib -Ilib/dictBuilder -I/Users/runner/hostedtoolcache/Python/3.10.2/x64/include/python3.10 -c lib/common/debug.c -o build/temp.macosx-10.15-x86_64-3.10/lib/common/debug.o
  gcc: error: Failed to determine realpath of '/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk' (errno=No such file or directory)
  gcc: error: sh -c '/Applications/Xcode_13.1.app/Contents/Developer/usr/bin/xcodebuild -sdk /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -find gcc 2> /dev/null' failed with exit code 16384: (null) (errno=No such file or directory)
  xcode-select: Failed to locate 'gcc', requesting installation of command line developer tools.
  error: command '/usr/bin/gcc' failed with exit code 72
  ----------------------------------------
  ERROR: Failed building wheel for pyzstd
  Running setup.py clean for pyzstd
Failed to build bcj-cffi pyppmd pyzstd
ERROR: Could not build wheels for bcj-cffi, pyppmd, which is required to install pyproject.toml-based projects
Error: The process 'python3' failed with exit code 1

In my project, I am using this project with the following code.

    - name: Install Qt for macOS
      uses: jurplel/install-qt-action@v2
      with:
        version: ${{ matrix.qtversion }}
        host: mac
        target: desktop
        dir: ${{ github.workspace }}
        modules: 'qtcharts qtdatavis3d qtpurchasing qtvirtualkeyboard qtwebengine qtnetworkauth qtwebglplugin qtscript'

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:23 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
LorenDBcommented, Aug 8, 2022

Welcome back, @jurplel! With the very latest commits in place, macOS builds (and Windows and Linux builds, too) seem to be working fine!

1reaction
arximboldicommented, Mar 25, 2022

Pasting here the relevant parts (it’s from a private project):

name: test
on:
  pull_request:
  push:
    branches:
      - master
    tags:
      - 'v*'

jobs:
  build-macos:
    runs-on: macos-10.15
    steps:
      - run: echo "GIT_BRANCH_OR_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
        if: ${{ startsWith(github.ref, 'refs/tags') }}
      - run: echo "GIT_BRANCH_OR_TAG=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV
        if: ${{ ! startsWith(github.ref, 'refs/tags') }}
      - run: echo "RELEASE_VERSION=`echo ${{ env.GIT_BRANCH_OR_TAG }} | tr / -`_`echo ${{ github.sha }} | head -c 7`" >> $GITHUB_ENV
      - run: echo "RELEASE_FILE=my-project_macos_${{ env.RELEASE_VERSION }}.dmg" >> $GITHUB_ENV

      - uses: apple-actions/import-codesign-certs@v1
        with:
          p12-file-base64: ${{ secrets.MACOS_CERTIFICATE }}
          p12-password: ${{ secrets.MACOS_CERTIFICATE_PASSWORD }}
      - run: security find-identity signing_temp.keychain
      - uses: shimataro/ssh-key-action@v2
        with:
          key: ${{ secrets.SSH_KEY }}
          known_hosts: ${{ secrets.KNOWN_HOSTS }}

      - uses: actions/checkout@v2
        with:
          submodules: true
      - uses: cachix/install-nix-action@v16
        with:
          nix_path: nixpkgs=channel:nixos-unstable
      - uses: cachix/cachix-action@v10
        with:
          name: bronze-ai
          authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
      - name: ccache
        uses: hendrikmuhs/ccache-action@v1
        with:
          key: my-project-ccache-mac-Release

      - name: Install Qt
        uses: jurplel/install-qt-action@v2
        with:
          version: '5.14.2'
          modules: 'qtwebengine'
          setup-python: 'false'

  ...
Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not build wheels for onnx, which is required to install ...
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for onnx. Failed to...
Read more >
Could not build wheels for pandas, which is required to install ...
Pandas doesn't require Anaconda to work, but based on python310-32 in your output, you're using a 32-bit build of Python.
Read more >
could not build wheels for ta-lib, which is required to install ...
When I try to install pyprojects.toml-based projects, it sais: ERROR: ... ERROR: Could not build wheels for bcj-cffi, pyppmd, which is required to...
Read more >
UNSOLVED ERROR: Could not build wheels for TTS, which is ...
UNSOLVED ERROR : Could not build wheels for TTS, which is required to install pyproject. toml-based projects.
Read more >
Error: Could not build wheels for pandas in Python | bobbyhadz
ERROR : Failed building wheel for pandas Failed to build pandas ERROR: Could not ... for pandas, which is required to install pyproject.toml-based...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found