Hi,
I'm unable to pip install the simulator. I've tried both the just the simulator and after cloning the repo. It appears to fail on SDL in Pygame:
× Building wheel for pygame (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
src_c/_sdl2/sdl2.c:1237:10: fatal error: 'SDL.h' file not found
1237 | #include "SDL.h"
| ^~~~~~~
1 error generated.
Skipping Cython compilation
---
For help with compilation see:
https://www.pygame.org/wiki/MacCompile
To contribute to pygame development see:
https://www.pygame.org/contribute.html
---
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
Any hints or next steps?
Thanks - the exact output follows:
Just the simulator in a brand new virtual environment:
(.venv) prcutler@Mac-mini ~/workspace/scrollkit-sim pip install "scrollkit[simulator]"
Collecting scrollkit[simulator]
Downloading scrollkit-0.8.4-py3-none-any.whl.metadata (10 kB)
Collecting pygame>=2.0 (from scrollkit[simulator])
Using cached pygame-2.6.1.tar.gz (14.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting Pillow>=9.0 (from scrollkit[simulator])
Using cached pillow-12.3.0-cp314-cp314-macosx_11_0_arm64.whl.metadata (9.1 kB)
Collecting numpy>=1.21 (from scrollkit[simulator])
Using cached numpy-2.5.1-cp314-cp314-macosx_14_0_arm64.whl.metadata (6.6 kB)
Downloading scrollkit-0.8.4-py3-none-any.whl (463 kB)
Using cached numpy-2.5.1-cp314-cp314-macosx_14_0_arm64.whl (5.3 MB)
Using cached pillow-12.3.0-cp314-cp314-macosx_11_0_arm64.whl (4.8 MB)
Building wheels for collected packages: pygame
Building wheel for pygame (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pygame (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
src_c/_sdl2/sdl2.c:1237:10: fatal error: 'SDL.h' file not found
1237 | #include "SDL.h"
| ^~~~~~~
1 error generated.
Skipping Cython compilation
---
For help with compilation see:
https://www.pygame.org/wiki/MacCompile
To contribute to pygame development see:
https://www.pygame.org/contribute.html
---
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pygame
Failed to build pygame
[notice] A new release of pip is available: 26.1.1 -> 26.1.2
[notice] To update, run: pip install --upgrade pip
error: failed-wheel-build-for-install
× Failed to build installable wheels for some pyproject.toml based projects
╰─> pygame
(.venv) ✘ prcutler@Mac-mini ~/workspace/scrollkit-sim
Trying to install after cloning the repo in a fresh virtual environment:
✘ prcutler@Mac-mini ~/workspace/scrollkit master python3 -m venv .venv
prcutler@Mac-mini ~/workspace/scrollkit master source .venv/bin/activate
(.venv) prcutler@Mac-mini ~/workspace/scrollkit master pip install -e "
.[simulator]"
WARNING: Cache entry deserialization failed, entry ignored
Obtaining file:///Users/prcutler/workspace/scrollkit
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... done
Preparing editable metadata (pyproject.toml) ... done
Collecting pygame>=2.0 (from scrollkit==0.8.4)
Downloading pygame-2.6.1.tar.gz (14.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.8/14.8 MB 79.8 MB/s 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
WARNING: Cache entry deserialization failed, entry ignored
Collecting Pillow>=9.0 (from scrollkit==0.8.4)
Downloading pillow-12.3.0-cp314-cp314-macosx_11_0_arm64.whl.metadata (9.1 kB)
WARNING: Cache entry deserialization failed, entry ignored
Collecting numpy>=1.21 (from scrollkit==0.8.4)
Downloading numpy-2.5.1-cp314-cp314-macosx_14_0_arm64.whl.metadata (6.6 kB)
Downloading numpy-2.5.1-cp314-cp314-macosx_14_0_arm64.whl (5.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.3/5.3 MB 85.2 MB/s 0:00:00
Downloading pillow-12.3.0-cp314-cp314-macosx_11_0_arm64.whl (4.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.8/4.8 MB 47.7 MB/s 0:00:00
Building wheels for collected packages: scrollkit, pygame
Building editable for scrollkit (pyproject.toml) ... done
Created wheel for scrollkit: filename=scrollkit-0.8.4-0.editable-py3-none-any.whl size=6959 sha256=efc98f8387dec05d1bfb2cc5d3a87f9bb4dcc8d50e07861e05bb3f05653d3609
Stored in directory: /private/var/folders/yt/z402w3l11ss5wn73k7mdcr300000gn/T/pip-ephem-wheel-cache-rw5p_lyh/wheels/cc/04/1f/1751f2d0759de6a616508cb5d9a23f83876b74f4fe5e168f65
Building wheel for pygame (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pygame (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
src_c/_sdl2/sdl2.c:1237:10: fatal error: 'SDL.h' file not found
1237 | #include "SDL.h"
| ^~~~~~~
1 error generated.
Skipping Cython compilation
---
For help with compilation see:
https://www.pygame.org/wiki/MacCompile
To contribute to pygame development see:
https://www.pygame.org/contribute.html
---
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pygame
Successfully built scrollkit
Failed to build pygame
[notice] A new release of pip is available: 26.1.1 -> 26.1.2
[notice] To update, run: pip install --upgrade pip
error: failed-wheel-build-for-install
× Failed to build installable wheels for some pyproject.toml based projects
╰─> pygame
(.venv) ✘ prcutler@Mac-mini ~/workspace/scrollkit master
Hi,
I'm unable to pip install the simulator. I've tried both the just the simulator and after cloning the repo. It appears to fail on SDL in Pygame:
Any hints or next steps?
Thanks - the exact output follows:
Just the simulator in a brand new virtual environment:
Trying to install after cloning the repo in a fresh virtual environment: