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

Failed to download and build patchelf==0.17.2.1 #3

Open
bassamsdata opened this issue Dec 7, 2024 · 0 comments
Open

Failed to download and build patchelf==0.17.2.1 #3

bassamsdata opened this issue Dec 7, 2024 · 0 comments

Comments

@bassamsdata
Copy link

Thank you for the book, it's really enajoyable to read,

I encountered an issue following the book's steps after running uv sync. The problem seems related to patchelf.

Using CPython 3.12.7 interpreter at: /usr/local/opt/[email protected]/bin/python3.12
Creating virtual environment at: .venv
Resolved 192 packages in 22ms
 × Failed to download and build `patchelf==0.17.2.1`
  ╰─▶ Build backend failed to build wheel through `build_wheel` (exit status: 1)

      [stdout]
      [ 11%] Performing patch step for 'build_patchelf'

      [stderr]
      ./bootstrap.sh: line 2: autoreconf: command not found
      make[2]: ***
      [build_patchelf-prefix/src/build_patchelf-stamp/build_patchelf-patch]
      Error 127
      make[1]: *** [CMakeFiles/build_patchelf.dir/all] Error 2
      make: *** [all] Error 2
      Traceback (most recent call last):
        File
      "~/.cache/uv/builds-v0/.tmpBcRguU/lib/python3.12/site-packages/skbuild/setuptools_wrap.py",
      line 668, in setup
          cmkr.make(make_args, install_target=cmake_install_target, env=env)
        File
      "~/.cache/uv/builds-v0/.tmpBcRguU/lib/python3.12/site-packages/skbuild/cmaker.py",
      line 696, in make
          self.make_impl(clargs=clargs, config=config, source_dir=source_dir,
      install_target=install_target, env=env)
        File
      "~/.cache/uv/builds-v0/.tmpBcRguU/lib/python3.12/site-packages/skbuild/cmaker.py",
      line 741, in make_impl
          raise SKBuildError(msg)

      An error occurred while building with CMake.
        Command:
          /usr/local/bin/cmake --build . --target install --config Release --
        Install target:
          install
        Source directory:

      ~/.cache/uv/sdists-v6/pypi/patchelf/0.17.2.1/KILSp9dUu-mSOTZ2D8OEu/src
        Working directory:

      ~/.cache/uv/sdists-v6/pypi/patchelf/0.17.2.1/KILSp9dUu-mSOTZ2D8OEu/src/_skbuild/macosx-13.0-x86_64-3.12/cmake-build
      Please check the install target is valid and see CMake's output for more
      information.


  help: `patchelf` (v0.17.2.1) was included because
        `python-polars-the-definitive-guide` (v1.0.0) depends on `patchelf`

I tried deleting the entire repository and cloning it again, but the issue persists. I even installed the three packages mentioned in the error using Homebrew, but that didn’t resolve it either. After a bit of research, I found that patchelf is specifically designed for Linux, though I’m not entirely sure if that’s the root cause.

Here are the details:

  • uv version: uv 0.5.6 (Homebrew 2024-12-03)
  • macOS: 13.7.1

Thank you

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