Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 23, 2025

Problem

The triton Docker build was failing with the following error:

error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment

This occurred during the test installation step where uv pip install and uv pip show were being used to verify the built triton wheel.

Solution

Added the --system flag to both uv pip commands in the Dockerfile. The uv package manager requires this flag when installing packages into the system Python environment (as opposed to a virtual environment), which is the standard setup in Docker containers.

Changes

Updated /Dockerfiles/l4t-jetpack-triton.Dockerfile:

  • Line 57: uv pip installuv pip install --system
  • Line 59: uv pip showuv pip show --system

This allows the Docker build to successfully install and verify the triton wheel without requiring a virtual environment to be created first.

Testing

The fix has been verified to:

  • Be minimal and focused (only 2 flags added)
  • Follow the error message's suggested resolution
  • Not introduce any security vulnerabilities
  • Be the only instance of uv pip commands in the repository
Original prompt

Fix the triton build

#19 440.8 removing build/bdist.linux-aarch64/wheel
#19 441.0 Successfully built /wheels/triton-3.5.0-cp310-cp310-linux_aarch64.whl
#19 DONE 441.4s
#20 [triton-build 8/8] RUN uv pip install /wheels/triton*.whl &&     python3 -c 'import triton' &&     uv pip show triton
#20 0.161 error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
#20 ERROR: process "/bin/bash -c uv pip install /wheels/triton*.whl &&     python3 -c 'import triton' &&     uv pip show triton" did not complete successfully: exit code: 2
------
 > importing cache manifest from ghcr.io/juno-ai-labs/cache-l4t-triton-3.5.0:
------
------
 > [triton-build 8/8] RUN uv pip install /wheels/triton*.whl &&     python3 -c 'import triton' &&     uv pip show triton:
0.161 error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
------
l4t-jetpack-triton.Dockerfile:57
--------------------
  56 |     # Test the installation
  57 | >>> RUN uv pip install /wheels/triton*.whl && \
  58 | >>>     python3 -c 'import triton' && \
  59 | >>>     uv pip show triton
  60 |     
--------------------
ERROR: failed to build: failed to solve: process "/bin/bash -c uv pip install /wheels/triton*.whl &&     python3 -c 'import triton' &&     uv pip show triton" did not complete successfully: exit code: 2
Error: Process completed with exit code 1.

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: adamjuhasz <757940+adamjuhasz@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix triton build and installation issues Fix triton build by adding --system flag to uv pip commands Oct 23, 2025
Copilot AI requested a review from adamjuhasz October 23, 2025 17:07
Copilot finished work on behalf of adamjuhasz October 23, 2025 17:07
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.

2 participants