uv build system issue, AttributeError #5648

Closed
opened 2026-01-27 16:44:59 +00:00 by hl · 3 comments
Contributor
sync hooks: ✔️ (pre-commit, ci-checks)
(fsfe-website) uv run build --sites fsfe.org
2026-01-27 16:40:56 - fsfe_website_build.build - INFO - Starting phase 0 - Global Conditional Setup
2026-01-27 16:40:56 - fsfe_website_build.phase0.global_symlinks - INFO - Creating global symlinks
2026-01-27 16:40:56 - fsfe_website_build.build - INFO - Processing fsfe.org
Traceback (most recent call last):
  File "/home/hl/git/fsfe-website/.venv/bin/build", line 10, in <module>
    sys.exit(build())
             ~~~~~^^
  File "/home/hl/git/fsfe-website/build/fsfe_website_build/build.py", line 220, in build
    _run_build(global_build_config)
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/home/hl/git/fsfe-website/build/fsfe_website_build/build.py", line 163, in _run_build
    if not site.exists():
           ^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'exists'
(fsfe-website) pwd
/home/hl/git/fsfe-website

The website repo is up to date, I am in the nix shell

I was able to isolate the issue to the argument --site fsfe.org argument. Without it, all works fine.

@delliott can you help here?

``` sync hooks: ✔️ (pre-commit, ci-checks) (fsfe-website) uv run build --sites fsfe.org 2026-01-27 16:40:56 - fsfe_website_build.build - INFO - Starting phase 0 - Global Conditional Setup 2026-01-27 16:40:56 - fsfe_website_build.phase0.global_symlinks - INFO - Creating global symlinks 2026-01-27 16:40:56 - fsfe_website_build.build - INFO - Processing fsfe.org Traceback (most recent call last): File "/home/hl/git/fsfe-website/.venv/bin/build", line 10, in <module> sys.exit(build()) ~~~~~^^ File "/home/hl/git/fsfe-website/build/fsfe_website_build/build.py", line 220, in build _run_build(global_build_config) ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ File "/home/hl/git/fsfe-website/build/fsfe_website_build/build.py", line 163, in _run_build if not site.exists(): ^^^^^^^^^^^ AttributeError: 'str' object has no attribute 'exists' (fsfe-website) pwd /home/hl/git/fsfe-website ``` The website repo is up to date, I am in the nix shell I was able to isolate the issue to the argument `--site fsfe.org` argument. Without it, all works fine. @delliott can you help here?
Member

Oh, yeah. I ran into that and have a patch in one of my current prs, forgot which.

Oh, yeah. I ran into that and have a patch in one of my current prs, forgot which.
Member

This commit needs to be split out 9b0d849494

This commit needs to be split out https://git.fsfe.org/FSFE/fsfe-website/commit/9b0d849494747f182ead9b3cc432ce6c78bfa843
delliott added a new dependency 2026-01-28 11:07:24 +00:00
delliott removed a dependency 2026-01-28 11:07:38 +00:00
delliott added a new dependency 2026-01-28 11:07:55 +00:00
Member

closed by #5650

closed by https://git.fsfe.org/FSFE/fsfe-website/pulls/5650
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Depends on
Reference: FSFE/fsfe-website#5648