Skip to content

Build failure: python312Packages.pysdl2 #399851

@0xda157

Description

@0xda157

Nixpkgs version

  • Unstable (25.05)

Steps to reproduce

when I try to build it with nix build it works fine, but when rebuilding as part of my nixos system it fails (also fails on hydra).

Can Hydra reproduce this build failure?

Yes, Hydra can reproduce this build failure.

Link to Hydra build job

https://hydra.nixos.org/build/294897690

Relevant log output

Traceback (most recent call last):
  File "<string>", line 1, in <module>
    import sys; import importlib; list(map(lambda mod: importlib.import_module(mod), sys.argv[1:]))
                                  ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<string>", line 1, in <lambda>
    import sys; import importlib; list(map(lambda mod: importlib.import_module(mod), sys.argv[1:]))
                                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^
  File "/nix/store/xhq29h77qh5rhiwgcbirq1vy8j432qpr-python3-3.13.2/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/nix/store/svf0rfmac734gaaxff6qzn1fhyk15ydq-python3.13-pysdl2-0.9.17/lib/python3.13/site-packages/sdl2/__init__.py", line 2, in <module>
    from .dll import get_dll_file, _bind
  File "/nix/store/svf0rfmac734gaaxff6qzn1fhyk15ydq-python3.13-pysdl2-0.9.17/lib/python3.13/site-packages/sdl2/dll.py", line 357, in <module>
    raise ImportError(exc)
ImportError: found ['/nix/store/7491xarjy94xxjmm46yhfp353mbcbwpw-sdl2-compat-2.32.52/lib/libsdl2-compat.so'], but it's not usable for the library SDL2

Additional context

No response

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.12.23, NixOS, 25.05 (Warbler), 25.05.20250412.2631b0b
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.28.1
  • nixpkgs: /nix/store/5ds20jm3x2s4z7wn3581r6lc9ybmh45b-source

Notify maintainers

@pmiddend


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions