From 9c08bb2405cc798eb3ddfd5a62b5ce53ab2cccc1 Mon Sep 17 00:00:00 2001 From: Ed Swarthout Date: Mon, 3 Nov 2025 19:09:21 -0600 Subject: [PATCH 1/3] Update pip to fix build error Fixes: Successfully built tesseract langdetect antlr4-python3-runtime pypika ERROR: Exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 165, in exc_logging_wrapper status = run_func(*args) File "/usr/lib/python3/dist-packages/pip/_internal/cli/req_command.py", line 205, in wrapper return func(self, options, args) File "/usr/lib/python3/dist-packages/pip/_internal/commands/install.py", line 389, in run to_install = resolver.get_installation_order(requirement_set) File "/usr/lib/python3/dist-packages/pip/_internal/resolution/resolvelib/resolver.py", line 188, in get_installation_order weights = get_topological_weights( File "/usr/lib/python3/dist-packages/pip/_internal/resolution/resolvelib/resolver.py", line 276, in get_topological_weights assert len(weights) == expected_node_count AssertionError ERROR: process "/bin/bash -c pip install --user -r /opt/project/build/requirements.txt" did not complete successfully: exit code: 2 --- preBuild.bash | 2 ++ 1 file changed, 2 insertions(+) diff --git a/preBuild.bash b/preBuild.bash index e2866a1..acde923 100644 --- a/preBuild.bash +++ b/preBuild.bash @@ -3,3 +3,5 @@ # before any system packages or programming language specific package have been installed. # # Note: This file may be removed if you don't need to use it + +pip install --upgrade pip From 2a185f89f880e20b586916f18d04ed8b9ee7a63e Mon Sep 17 00:00:00 2001 From: Ed Swarthout Date: Mon, 3 Nov 2025 19:10:22 -0600 Subject: [PATCH 2/3] Update base to 1.0.8 - Updated Base Environment to 'nvidia/ai-workbench/python-basic:1.0.8' Note: Update removed chatui from custom webapps --- .project/spec.yaml | 48 ++++++++++------------------------------------ 1 file changed, 10 insertions(+), 38 deletions(-) diff --git a/.project/spec.yaml b/.project/spec.yaml index da99215..87224af 100644 --- a/.project/spec.yaml +++ b/.project/spec.yaml @@ -20,8 +20,8 @@ layout: environment: base: registry: nvcr.io - image: nvidia/ai-workbench/python-basic:1.0.2 - build_timestamp: "20241001182612" + image: nvidia/ai-workbench/python-basic:1.0.8 + build_timestamp: "20250729154429" name: Python Basic supported_architectures: [] cuda_version: "" @@ -32,22 +32,6 @@ environment: - python3 - jupyterlab apps: - - name: chat - type: custom - class: webapp - start_command: cd /project/code/ && PROXY_PREFIX=$PROXY_PREFIX python3 -m chatui - health_check_command: curl -f "http://localhost:8080/" - stop_command: pkill -f "^python3 -m chatui" - user_msg: "" - logfile_path: "" - timeout_seconds: 60 - icon_url: "" - webapp_options: - autolaunch: true - port: "8080" - proxy: - trim_prefix: true - url: http://localhost:8080/ - name: jupyterlab type: jupyterlab class: webapp @@ -64,26 +48,10 @@ environment: proxy: trim_prefix: false url_command: jupyter lab list | head -n 2 | tail -n 1 | cut -f1 -d' ' | grep -v 'Currently' - - name: tensorboard - type: tensorboard - class: webapp - start_command: tensorboard --logdir \$TENSORBOARD_LOGS_DIRECTORY --path_prefix=\$PROXY_PREFIX --bind_all - health_check_command: '[ \$(curl -o /dev/null -s -w ''%{http_code}'' http://localhost:\$TENSORBOARD_PORT\$PROXY_PREFIX/) == ''200'' ]' - stop_command: pkill tensorboard - user_msg: "" - logfile_path: "" - timeout_seconds: 60 - icon_url: "" - webapp_options: - autolaunch: true - port: "6006" - proxy: - trim_prefix: false - url: http://localhost:6006 programming_languages: - python3 - icon_url: "" - image_version: 1.0.2 + icon_url: https://workbench.download.nvidia.com/static/img/ai-workbench-icon-rectangle.jpg + image_version: 1.0.8 os: linux os_distro: ubuntu os_distro_release: "22.04" @@ -99,11 +67,15 @@ environment: - curl - git - git-lfs + - python3 + - gcc + - python3-dev + - python3-pip - vim - name: pip - binary_path: /usr/local/bin/pip + binary_path: /usr/bin/pip installed_packages: - - jupyterlab==4.0.7 + - jupyterlab==4.3.5 package_manager_environment: name: "" target: "" From c637f6e910bccab320fbdf8a6a507cabc09c67fe Mon Sep 17 00:00:00 2001 From: Ed Swarthout Date: Mon, 3 Nov 2025 19:10:40 -0600 Subject: [PATCH 3/3] Re-add chat app to project spec - Created app 'chat' --- .project/spec.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.project/spec.yaml b/.project/spec.yaml index 87224af..afaa538 100644 --- a/.project/spec.yaml +++ b/.project/spec.yaml @@ -92,6 +92,22 @@ execution: logfile_path: "" timeout_seconds: 120 icon_url: "" + - name: chat + type: custom + class: webapp + start_command: cd /project/code && PROXY_PREFIX=$PROXY_PREFIX python3 -m chatui + health_check_command: curl -f "http://localhost:8080/" + stop_command: pkill -f "^python3 -m chatui" + user_msg: "" + logfile_path: "" + timeout_seconds: 60 + icon_url: "" + webapp_options: + autolaunch: true + port: "8080" + proxy: + trim_prefix: true + url: http://localhost:8080/ resources: gpu: requested: 0