Skip to content

Add ninja to requirements.txt - #6

Open
andybiar wants to merge 1 commit into
nigelhartman:mainfrom
andybiar:patch-1
Open

Add ninja to requirements.txt#6
andybiar wants to merge 1 commit into
nigelhartman:mainfrom
andybiar:patch-1

Conversation

@andybiar

Copy link
Copy Markdown

I tried running the setup instructions on my local Mac, but got an import error:

ImportError: cannot import name 'csrc' from 'gsplat' (/Users/andy.biar/Projects/splat_analyzer/third_party/gsplat-mps/gsplat/init.py)

After consulting with my local Claude instance, Claude determined that this line was supposed to fail, so that backend.py could catch the issue and JIT-compile the MPS extension at runtime. However, ninja needs to be installed to get this working. Without ninja installed, we see this error following the previous error:

File "/Users/andy.biar/Projects/splat_analyzer/.venv/lib/python3.14/site-packages/torch/utils/cpp_extension.py", line 2451, in verify_ninja_availability
raise RuntimeError("Ninja is required to load C++ extensions (pip install ninja to get it)")
RuntimeError: Ninja is required to load C++ extensions (pip install ninja to get it)

After installing ninja, I'm able get splat analyzer running.

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

Successfully merging this pull request may close these issues.

1 participant