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

uv fails to install apache airflow #10744

Closed
gmolau opened this issue Jan 18, 2025 · 2 comments
Closed

uv fails to install apache airflow #10744

gmolau opened this issue Jan 18, 2025 · 2 comments

Comments

@gmolau
Copy link

gmolau commented Jan 18, 2025

Fresh uv install, fresh venv, trying to add the first dependency, fails:

❯ which uv
/opt/homebrew/bin/uv

❯ uv version
uv 0.5.21 (Homebrew 2025-01-17)

❯ uv python find
<project-dir>/.venv/bin/python3

❯ uv add apache-airflow
Resolved 139 packages in 33ms
  × Failed to build `google-re2==1.1.20240702`
  ├─▶ The build backend returned an error
  ╰─▶ Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit status: 1)

      [stdout]
      running bdist_wheel
      running build
      running build_py
      copying re2/__init__.py -> build/lib.macosx-11.0-arm64-cpython-313/re2
      running build_ext
      building '_re2' extension
      c++ -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness -Wno-expansion-to-defined
      -Wno-undef-prefix -fPIC -I/Users/gmolau/.cache/uv/builds-v0/.tmpqhwwua/include -I/Users/gmolau/.local/share/uv/python/cpython-3.13.1-macos-aarch64-none/include/python3.13 -c _re2.cc -o
      build/temp.macosx-11.0-arm64-cpython-313/_re2.o -fvisibility=hidden

      [stderr]
      _re2.cc:15:10: fatal error: 'absl/strings/string_view.h' file not found
         15 | #include "absl/strings/string_view.h"
            |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      1 error generated.
      error: command '/usr/bin/c++' failed with exit code 1

      hint: This usually indicates a problem with the package or the build environment.
  help: `google-re2` (v1.1.20240702) was included because `<project>` (v0.1.0) depends on `apache-airflow` (v2.10.4) which depends on `google-re2`
@charliermarsh
Copy link
Member

This isn't a uv error -- this is an error on your machine, in trying to build google-re2 from scratch. That project likely doesn't ship wheels for Python 3.13. I'd suggest using Python 3.12.

@gmolau
Copy link
Author

gmolau commented Jan 18, 2025

Thanks, with 3.12 it works. I guess the relevant upstream issue is google/re2#516

@gmolau gmolau closed this as completed Jan 18, 2025
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

2 participants