Tandoor Fails to Update #465

Closed
opened 2026-02-04 19:03:36 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @Telesphoreo on GitHub (Feb 9, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

Tandoor

📂 What was the exact command used to execute the script?

update

📝 Provide a clear and concise description of the issue.

When running update, it fails on the pip3 install -r requirements.txt
[ERROR] in line 41: exit code 0: while executing command pip3 install -r requirements.txt > /dev/null 2>&1

When running the command manually, I get this error

error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
    
    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.
    
    See /usr/share/doc/python3.11/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

As it advises, I am able to add --break-system-packages to the command and it works. I just ran the rest of the commands manually.

I don't see how that's a downside, since it's an LXC and there shouldn't be anything else on there

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

🔄 Steps to reproduce the issue.

Run the update command on a Tandoor LXC

Paste the full error output (if available).

See above for errors

🖼️ Additional context (optional).

No response

Originally created by @Telesphoreo on GitHub (Feb 9, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Tandoor ### 📂 What was the exact command used to execute the script? update ### 📝 Provide a clear and concise description of the issue. When running `update`, it fails on the `pip3 install -r requirements.txt` [ERROR] in line 41: exit code 0: while executing command pip3 install -r requirements.txt > /dev/null 2>&1 When running the command manually, I get this error ``` error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install. If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed. If you wish to install a non-Debian packaged Python application, it may be easiest to use pipx install xyz, which will manage a virtual environment for you. Make sure you have pipx installed. See /usr/share/doc/python3.11/README.venv for more information. note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification. ``` As it advises, I am able to add `--break-system-packages` to the command and it works. I just ran the rest of the commands manually. I don't see how that's a downside, since it's an LXC and there shouldn't be anything else on there ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 🔄 Steps to reproduce the issue. Run the update command on a Tandoor LXC ### ❌ Paste the full error output (if available). See above for errors ### 🖼️ Additional context (optional). _No response_
Author
Owner

@michelroegl-brunner commented on GitHub (Feb 9, 2025):

search in disscussions for python externaly managed for solution.

@michelroegl-brunner commented on GitHub (Feb 9, 2025): search in disscussions for python externaly managed for solution.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#465