Hi
Same issue on DGX Spark :
[16/19] RUN pip install --user -r /opt/project/build/requirements.txt:
44.50 weights = get_topological_weights(
44.50 File “/usr/lib/python3/dist-packages/pip/_internal/resolution/resolvelib/resolver.py”, line 276, in get_topological_weights
44.50 assert len(weights) == expected_node_count
44.50 AssertionError
------
Containerfile:61
--------------------
60 |
61 | >>> RUN pip install --user \
62 | >>> -r /opt/project/build/requirements.txt
63 |
--------------------
ERROR: failed to build: failed to solve: process “/bin/bash -c pip install --user -r /opt/project/build/requirements.txt” did not complete successfully: exit code: 2
==> SOLVED BY :
Adding those lines into preBuild.bash file : edit from AI Workbench console
#Upgrade pip to fix resolver issues
pip install --upgrade pip
If not enough :
add in first line into requirements.txt
pip>=23.3
=> ISSUE SOLVED
I hope the same for you !