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

home-assistant build failure for geventhttpclient #372632

Open
bobrippling opened this issue Jan 10, 2025 · 1 comment
Open

home-assistant build failure for geventhttpclient #372632

bobrippling opened this issue Jan 10, 2025 · 1 comment
Labels
0.kind: bug Something is broken

Comments

@bobrippling
Copy link
Contributor

Describe the bug

When building home-assistant, an error is produced:

error: builder for '/nix/store/0n6dyw3hmmmpp7fl92ch8bqgn7bs0ckp-python3.13-geventhttpclient-2.3.1.drv' failed with exit code 4;
       last 25 log lines:
       > stripping (with command strip and flags -S -p) in  /nix/store/0l49mg32pa45cn9bwx5wndznq4l1bd1z-python3.13-geventhttpclient-2.3.1/lib
       > shrinking RPATHs of ELF executables and libraries in /nix/store/4c49kwwh6x7z5ggdirnvhgqcg8q48a76-python3.13-geventhttpclient-2.3.1-dist
       > checking for references to /build/ in /nix/store/4c49kwwh6x7z5ggdirnvhgqcg8q48a76-python3.13-geventhttpclient-2.3.1-dist...
       > patching script interpreter paths in /nix/store/4c49kwwh6x7z5ggdirnvhgqcg8q48a76-python3.13-geventhttpclient-2.3.1-dist
       > Executing pythonRemoveTestsDir
       > Finished executing pythonRemoveTestsDir
       > Running phase: installCheckPhase
       > no Makefile or custom installCheckPhase, doing nothing
       > Running phase: pythonCatchConflictsPhase
       > Running phase: pythonRemoveBinBytecodePhase
       > Running phase: pythonImportsCheckPhase
       > Executing pythonImportsCheckPhase
       > Check whether the following modules can be imported: geventhttpclient
       > Running phase: pytestCheckPhase
       > Executing pytestCheckPhase
       > ImportError while loading conftest '/build/source/tests/conftest.py'.
       > tests/conftest.py:3: in <module>
       >     gevent.monkey.patch_all()  # make sure all tests run monkey patched
       > /nix/store/rmia02qvfb4mlgvifb8kwfzds9l6dxm1-python3.13-gevent-24.2.1/lib/python3.13/site-packages/gevent/monkey.py:1219: in patch_all
       >     patch_thread(Event=Event, _warnings=_warnings)
       > /nix/store/rmia02qvfb4mlgvifb8kwfzds9l6dxm1-python3.13-gevent-24.2.1/lib/python3.13/site-packages/gevent/monkey.py:187: in ignores
       >     return func(*args, **kwargs)
       > /nix/store/rmia02qvfb4mlgvifb8kwfzds9l6dxm1-python3.13-gevent-24.2.1/lib/python3.13/site-packages/gevent/monkey.py:826: in patch_thread
       >     main_thread.__real_tstate_lock = main_thread._tstate_lock
       > E   AttributeError: '_MainThread' object has no attribute '_tstate_lock'
       For full logs, run 'nix-store -l /nix/store/0n6dyw3hmmmpp7fl92ch8bqgn7bs0ckp-python3.13-geventhttpclient-2.3.1.drv'.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Add home-assistant to configuration.nix
  2. nixos-rebuild switch

Expected behavior

A successful build of HA

Additional context

Looks like an issue with the upstream python test code, possibly

Metadata

  • system: "aarch64-linux"
  • host os: Linux 6.6.69, NixOS, 25.05 (Warbler), 25.05beta733374.8f3e1f807051
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.11
  • channels(root): "nixos"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Notify maintainers

@Mic92
@mweinelt
@fabaff

@bobrippling bobrippling added the 0.kind: bug Something is broken label Jan 10, 2025
@mweinelt
Copy link
Member

mweinelt commented Jan 10, 2025

Fix was to upgrade gevent, which needs to pass through staging. #370782

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

2 participants