Skip to content

Fix Apptainer recipe build: tiny-cuda-nn build isolation, dataclass-wizard pin - #92

Merged
georghess merged 1 commit into
georghess:mainfrom
YuvrajPuyam:fix/apptainer-recipe
Sep 3, 2026
Merged

georghess merged 1 commit into
georghess:mainfrom
YuvrajPuyam:fix/apptainer-recipe

Conversation

@YuvrajPuyam

Copy link
Copy Markdown
Contributor

Two things I hit building the current apptainer_recipe (Apptainer 1.4.5, on Purdue's Gilbreth cluster):

  1. tiny-cuda-nn: ModuleNotFoundError: No module named 'pkg_resources' during "Getting requirements to build wheel". Its setup.py imports pkg_resources, which setuptools >= 81 dropped, and pip builds it in an isolated env with the newest setuptools, so the setuptools<70 pin on line 43 never reaches it. --no-build-isolation (with ninja and wheel installed) fixes it. I also capped the compile parallelism because the build got killed on a shared login node the first time around; harmless elsewhere.

  2. dataclass-wizard isn't pinned and now resolves to 1.0, which removed JSONSerializable. Both nerfstudio/configs and zod import it, so every ns-train dies at import. Pinned to <0.23 here; a pin in pyproject would be the better home if you'd rather have it there.

With both, the recipe builds end to end and SplatAD trains on PandaSet. The cu12x torch resolution mentioned in #81 didn't reproduce for me with the explicit --extra-index-url in place.

Closes #81.

georghess#81)

tiny-cuda-nn fails with "No module named 'pkg_resources'": its setup.py
imports pkg_resources (gone in setuptools >= 81) and pip builds it in an
isolated env with the newest setuptools, so the recipe's setuptools<70 pin
never applies. Build it with --no-build-isolation, with ninja/wheel
installed, and cap the compile parallelism so shared login nodes don't
kill it.

dataclass-wizard was unpinned and now resolves to 1.0, which removed
JSONSerializable; nerfstudio and zod both import it and every ns-train
died at import. Pin to <0.23.
@georghess

Copy link
Copy Markdown
Owner

lgtm, thanks for your contribution :)

@georghess
georghess merged commit 8ba9b51 into georghess:main Sep 3, 2026
1 check failed
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.

build Error with official apptainer_recipe file

2 participants