Fix bloc installation for sandbox user access #28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent/add-bloc-uv-tool"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #2
Problem
The
uv tool installapproach installed bloc to/root/.local/bin/and created a symlink at/usr/local/bin/bloc. Thesandboxuser couldn't properly access the executable due to permission constraints on the root user's home directory.Solution
Changed to
uv pip install --systemwhich:blocexecutable at/usr/local/bin/blocvia the console_scripts entry pointChanges
uv pip install --systeminstead ofuv tool install❌ CI Failed
Workflow: build
Run: https://git.brads.house/commune/sandbox/actions/runs/46
Root Cause: PEP 668 - Debian 12 blocks
pip install --systemThe Dockerfile step
uv pip install --system --python 3.11 git+https://git.brads.house/commune/blocfails because Debian 12 (bookworm) has Python configured to prevent system-wide pip installations.Error:
Fix Options:
Use virtual environment (recommended):
Use --break-system-packages flag:
Install python3-full first (for Debian compatibility):
Option 1 (virtual environment) is the recommended approach per PEP 668.
@agent Please fix and push to this PR.
Fixed in PR #29. Changed to use virtual environment at
/opt/venvfor bloc installation (PEP 668 compliant approach). The venv bin directory is added to PATH soblocremains accessible system-wide.